Posted by
Schebique on
Aug 10, 2010; 9:26am
URL: http://imagej.273.s1.nabble.com/Compare-two-gray-value-pictures-tp3687310p3687317.html
Hi.
May be this macro can do a job for you. This is just recorded steps. For
you, important are the second and third part of the macro.
//1) open sample image and simulate thin stripes
run("Bridge (174K)");
run("Duplicate...", "title=bridge-1.gif");
newImage("lines", "8-bit Black", 512, 512, 1);
makeLine(65, 80, 445, 80);
setForegroundColor(128, 128, 128); // here you can lower or increase
(0-255) the intensity of the stripe! try 5,5,5 and check Result of
bridge.gif
run("Draw");
imageCalculator("OR", "bridge-1.gif","lines");
selectWindow("lines");
close();
selectWindow("bridge-1.gif");
run("Add Specified Noise...", "standard=2"); //specific noise simulate a
difference between two shots of the same place in experiment due to the
noise
//2) comparison of two similar images....
imageCalculator("Difference create", "bridge.gif","bridge-1.gif");
selectWindow("Result of bridge.gif");
run("Enhance Contrast", "saturated=0.35");
//3) make RGB image with line marked with red color.
run("Options...", "iterations=1 count=1 black edm=Overwrite");
setAutoThreshold("Yen dark");
run("Convert to Mask");
run("Red");
selectWindow("bridge-1.gif");
run("RGB Color");
imageCalculator("Add create", "bridge-1.gif","Result of bridge.gif");
Best wishes. Ondrej Sebesta
Dne 9.8.2010 19:02, AnnaKlaus napsal(a):
> I am sorry, I do not wanted to seem unthankful! Your description was perfect.
> My problem is...that there are really very thin lines on the pictures and I
> want so see if they are removed after an experiment. And if I do your
> process not only the removed lines are in red, but also a main part of the
> background, and I cannot distinguish between background and
> line........aaaah, it is very difficult to explain! Mmmh, probably my whole
> idea is wrong but I really do not know how to do it better!
> Again thank you very mucg for your help!
>
>
>
> Prichozi zprava neobsahuje viry.
> Zkontrolovano AVG - www.avg.cz
> Verze: 8.5.441 / Virova baze: 271.1.1/3061 - Datum vydani: 08/09/10 18:35:00
>
--
------------------------------------------
Mgr. Ondřej Šebesta
Laboratory of Confocal and Fluorescence Microscopy
Faculty of Science, Charles University in Prague
Vinicna 7
128 44 Prague
Czech Republic
Phone: +420 2 2195 1943
e-mail:
[hidden email]