NIH LISTSERV
NIH LISTSERV
IMAGEJ archives -- July 2004 (#19)

Go to: Previous Message | Next Message
Previous in Topic | Next in Topic
Previous by Same Author | Next by Same Author
Previous Page (July 2004) | Back to Main IMAGEJ Page


Options: Reply | Post a New Message | Join or Leave IMAGEJ, or Change Options | Search
View: Chronologically | Most Recent First | Wrap Text (Proportional Font) | Don't Wrap Text (Non-proportional Font)
*

References: <[log in to unmask]>
            <[log in to unmask]>
            <[log in to unmask]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-ID:  <[log in to unmask]>
Date:         Fri, 2 Jul 2004 10:03:42 -0500
Reply-To:     ImageJ Interest Group <[log in to unmask]>
Sender:       ImageJ Interest Group <[log in to unmask]>
From:         Wayne Rasband <[log in to unmask]>
Subject:      Re: Masks for ROI (Re: "find similar" or equivalent)
In-Reply-To:  <[log in to unmask]>

> Quite right, that is why I specified "well behaved" > particles etc. Unfortunately I don't have the coding > expertise to generate the plugin myself (yet), but I > wondered if the procedure would work. Where in the code > does the Wand function detect the <SHIFT> key, and composite > the ROI's? Would it be possible to "hardcode" that into the > plugin so that it continues adding regions until it runs out > of centroids? > > I still think a "select by color" would be the safest way to > convert binary to selection, but I am not quite sure how to > go about it. Any ideas? Here is a macro that converts a binary mask to a composite selection. // This macro creates a composite selection from a mask requires("1.33c"); // setKeyDown() added in v1.33c run("Set Measurements...", "area perimeter circularity decimal=3"); run("Analyze Particles...", "minimum=1 maximum=999999 show=Nothing clear record"); for (i=0; i<nResults; i++) { x = getResult('XStart', i); y = getResult('YStart', i); if (i>0) setKeyDown("shift"); doWand(x,y); } -wayne




Back to: Top of message | Previous page | Main IMAGEJ page

NIH LISTSERV Home Page

CIT
Center for Information Technology
National Institutes of Health
Bethesda, Maryland 20892
301 594 6248 (v) 301 496 8294 (TDD)
Comments and Assistance
Accessibility wheelchair icon