Login  Register

Re: Filter a color

Posted by Gluender-4 on Sep 21, 2010; 9:56am
URL: http://imagej.273.s1.nabble.com/Filter-a-color-tp3686882p3686888.html

Gabriel,

having taken the opportunity to try your PlugIn "thresholdcolour"
just for the reason of pure curiosity, I should like to tell you that
I judge it an excellent piece of software.

Thanks

                   Herbie

          ------------------------
          <http://www.gluender.de>

>On Monday 20 Sep 2010  17:14:29 you wrote:
>>  but the thing is that I specially want to see the pink ring!
>>  Because it gives me information how fast the ring gets bigger during the
>>  rotation of the device.
>>  I am sorry that I could not explain my problem very well!
>>  ...Do you thing there is an opportunity to do this?
>
>You can try the Threshold_Colour in my page (not the one built in IJ because
>it cannot record macros).
>
>http://www.dentistry.bham.ac.uk/landinig/software/thresholdcolour.zip
>
>With that, I recorded this, whcih may help:
>
>// Colour Thresholding v1.12-------
>// Autogenerated macro, single images only!
>// G Landini 19/Dec/2009.
>//
>min=newArray(3);
>max=newArray(3);
>filter=newArray(3);
>a=getTitle();
>run("HSB Stack");
>run("Convert Stack to Images");
>selectWindow("Hue");
>rename("0");
>selectWindow("Saturation");
>rename("1");
>selectWindow("Brightness");
>rename("2");
>min[0]=194;
>max[0]=241;
>filter[0]="pass";
>min[1]=38;
>max[1]=255;
>filter[1]="pass";
>min[2]=140;
>max[2]=255;
>filter[2]="pass";
>for (i=0;i<3;i++){
>   selectWindow(""+i);
>   setThreshold(min[i], max[i]);
>   run("Convert to Mask");
>   if (filter[i]=="stop")  run("Invert");
>}
>imageCalculator("AND create", "0","1");
>imageCalculator("AND create", "Result of 0","2");
>for (i=0;i<3;i++){
>   selectWindow(""+i);
>   close();
>}
>selectWindow("Result of 0");
>close();
>selectWindow("Result of Result of 0");
>rename(a);
>// Colour Thresholding-------------