Posted by
Stephan Saalfeld on
Sep 20, 2010; 1:45pm
URL: http://imagej.273.s1.nabble.com/Filter-a-color-tp3686882p3686883.html
The color being so obvious, you could also find it in HSB. This is a
simple macro that creates a mask of that pink circle:
setForegroundColor(0, 20, 0);
newImage("green", "RGB Black", 250, 187, 1);
run("Select All");
run("Fill", "slice");
imageCalculator("Add create", "Colour0010.png","green");
run("HSB Stack");
run("Next Slice [>]");
run("Delete Slice");
run("Next Slice [>]");
run("Delete Slice");
setThreshold(0, 200);
run("Convert to Mask");
run("Despeckle");
Best,
Stephan
On Mon, 2010-09-20 at 04:38 -0700, AnnaKlaus wrote:
> Hello dear community,
>
> I made vidoes to understand the flow better in a shear chamber.
> Already converting the images in grayframes, I tried to analyse them in
> Matlab. But it didn' work that fine.
> So, I though about filtering the pink color. See the image below.
>
>
http://imagej.588099.n2.nabble.com/file/n5550044/Colour0010.png
>
> The problem is I have no idea how to do this:(!
> I would be really grateful about any help, because I really work since some
> days on it, but can not get a good solution!
>
> Thank you very much!!!!!!!!!!!!!!!