<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
What's happening here is this:<br>
Cut and paste are currently ImageJ 1.0 functions.<br>
<br>
In the legacy layer, I run the ImageJ 1.0 plugin,
ThresholdToSelection with a ByteProcessor that holds the mask. For
now, I'm flattening the mask rather than trying to distribute it
among different planes in the stack, mostly because I don't know how
any of that works. So ThresholdToSelection makes a composite
ShapeROI composed of lots of polygons and that becomes the
ImagePlus's ROI.<br>
<br>
Going in the other direction, some of the objects are polygons and
some are freehand rois. Each of them is transformed into its own
overlay, so it's as if the original overlay was broken into pieces.<br>
<br>
The legacy layer is very challenging. On the surface, a composite
ROI might seem to be a union of polygons and beziers that are found
by using the path iterator, but it's more complicated since some of
them are subtractions placed on top of a larger shape (that's how
you get a hole in something). On top of that, there's an issue of
intent. Sometimes the user has drawn two rectangles and the
composite is intended to be decomposed into two rectangles. But in
cases such as this, the composite was never intended to be
decomposed and should be rendered as a bitmask in ImageJ 2.0.<br>
<br>
Hope you all understand why it's all not quite working yet.<br>
--Lee<br>
<br>
On 6/9/2011 3:41 PM, Grant B. Harris wrote:
<blockquote cite="mid:4DF12201.807@mbl.edu" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
For anyone who is unaware, Lee committed some nice overlay stuff
today. I tried it out and I found something interesting... Just
for the heck of it, I selected the thresholded binary overlay in
the OrganOfCorti image.
<div> </div>
<div><img src="cid:part1.01040909.03000204@netscape.com"
border="0"></div>
<div> </div>
<div>and I copy/paste-ed to a 32-bit ramped NewImage, and I got
this:</div>
<div> </div>
<div> </div>
<div><img src="cid:part2.06020807.07040703@netscape.com"
border="0"></div>
<div>It took a while, but it drew all those overlays into the
image.<br>
<br>
</div>
<div>Is this what it is supposed to do?<br>
<br>
-- Grant<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ImageJ-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ImageJ-devel@imagejdev.org">ImageJ-devel@imagejdev.org</a>
<a class="moz-txt-link-freetext" href="http://imagejdev.org/mailman/listinfo/imagej-devel">http://imagejdev.org/mailman/listinfo/imagej-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>