Posted by
gankaku on
Oct 01, 2015; 9:51am
URL: http://imagej.273.s1.nabble.com/Compare-Images-to-Quantify-Cleaning-Performance-tp5014503p5014516.html
Hi Frank,
joining the opinion and statement of Peter, I would also suggest to try to
improve imaging as much as possible for equal conditions.
Having said this, the following macro does the job quite well. I would run
it in Fiji since you need the Linear Stack alignment with SIFT plugin from
Stephan Saalfeld, thus using SIFT as suggested by Peter which is installed
by default in Fiji.
It aligns the images scale and orientation wise. Note, this affects pixels
to some extend. So, I would be careful afterwards with absolute pixel
intensity or color difference comparison (avtually I wouldn't do it).
Nevertheless, this method enables you to see where you have objects left or
washed off the plate. The difference will show you changes between the
plates. It does not distinguish if something was present first and then
washed off or was not present but appeared after treatment (which I guess
in your case is rather unlikely).
How to:
open the two images you want to compare (and only those two since the macro
is not adjusted to run on specifically selected images so far)
Copy the macro in Fijis' scripting editor (>Plugins >New >Macro) and hit
the run button.
//macro start ------------------------
run("Images to Stack", "method=[Copy (center)] name=Stack title=[]");
run("Linear Stack Alignment with SIFT", "initial_gaussian_blur=1.60
steps_per_scale_octave=3 minimum_image_size=64 maximum_image_size=1024
feature_descriptor_size=4 feature_descriptor_orientation_bins=8
closest/next_closest_ratio=0.92 maximal_alignment_error=1 inlier_ratio=0.05
expected_transformation=Affine interpolate");
run("Duplicate...", "duplicate");
run("Stack to Images");
imageCalculator("Difference", "Aligned-0001","Aligned-0002");
close("Aligned-0002");
//macro end ------------------------
Hope this helps you a little further.
Kind regards,
Jan
2015-10-01 10:11 GMT+02:00 Frank Robson <
[hidden email]>:
--
CEO: Dr. rer. nat. Jan Brocher
phone: +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html