Posted by
Cammer, Michael on
Nov 25, 2015; 5:10pm
URL: http://imagej.273.s1.nabble.com/Select-window-tp5015022p5015032.html
There are a few ways to do this.
Here is one we use.
originalTitle = getTitle();
run("Split Channels");
selectWindow(originalTitle + " (green)");
close();
selectWindow(originalTitle + " (red)"); // this is used to select green pixels
setThreshold(0, 127);
run("Measure");
selectWindow(originalTitle + " (blue)"); // this is area of entire tissue
setThreshold(0, 147);
run("Measure");
=========================================================================
Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center
Cell: 914-309-3270 ** Office: Skirball 2nd Floor main office, back right **
http://ocs.med.nyu.edu/microscopy &
http://microscopynotes.com/-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of JP Dustin
Sent: Tuesday, November 24, 2015 1:45 PM
To:
[hidden email]
Subject: Select window
I have been trying to find a solution to this, but have been having little success.
I am running an RGB split and need to keep the green channel from the resulting split. How can I get my macro to select the green channel image, and close the red and blue? I would like to do this for all subsequent images with differing image names.
Thank you,
JP
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html