Posted by
Krs5 on
Aug 12, 2015; 9:25pm
URL: http://imagej.273.s1.nabble.com/How-to-analyse-a-pattern-of-holes-tp5013892p5014007.html
Dear Bill,
Is it possible that your original files are not jpg files? The test file is a jpg and the code works on it. If it is something else you have to change the 'jpg' part of this code.
You could use the find maxima option (Process > Find Maxima... ) with a tolerance of 25, output 'Single Points' and 'Light background' selected. After OK you can draw your own ROI, clear everything outside the ROI (Edit > Clear Outside; take care that background colour is black) and use the macro code from line 16: run("Analyze Particles...", "size=2-50 circularity=0.00-1.00 add"); only change the 2-50 to 1-50.
If you use the recorder (Plugins > Macros > Record) you can collect code to change the start of the macro.
Hope this makes sense.
Best wishes
Kees
________________________________________
From: ImageJ Interest Group [
[hidden email]] on behalf of BillyWu [
[hidden email]]
Sent: 10 August 2015 13:17
To:
[hidden email]
Subject: Re: How to analyse a pattern of holes?
The error message is as follows;
"Image not found in line 5.
imageCalculator ("Subtract create 32-bit" , title , title2 + <"-1.jpg"> ) ;"
Yes, I want to include the holes I want in the circle and exclude the
others. The others are ones that are significantly outside of the dispersion
area and are counted as 'flyers'; shot pellets that are significantly
off-course and not an accurate representation of the shot pattern.
Yes, the paper in the image is 507mm. The image has been cropped from it's
original size to exclude the black background I used to photograph my
samples over.
--
View this message in context:
http://imagej.1557.x6.nabble.com/How-to-analyse-a-pattern-of-holes-tp5013892p5013965.htmlSent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html