|
Hi,
I have a good working Segmentation jython script giving me the nuclei as PolygonRois. I want to extend this nuclear Roi to measure stuff inside the cytoplasm. My Idea is to first fit an Ellipse to the nuclear Rois, which works very good with ImageJs EllipseFitter and gives me an EllipseRoi centered at the nucleus. Now I want to create a new EllipseRoi which is still centered at the nucleus but has a little bit bigger major and minor axes. From the EllipseFitter I get the center coordinates and also the major and minor axes of the nuclei. I drawed this nuclear Rois over my Image and it looks very good. Now when I want to construct a new EllipseRoi, I do not understand its Constructor as it is
EllipseRoi(double x1, double y1, double x2, double y2, double aspectRatio)
how do I get an Ellipse which is has the center and the major and minor axes according to the results from the EllipseFitter? I also tried the EllipseFitter.makeRoi(ip) method, but it returns (also in accordance to the API) nothing?!
In the end my Idea then is to subtract the smaller nuclear Roi from the bigger EllipseRoi giving me an elliptical stripe ROI in the cytoplasm to measure stuff. Roi subtraction will somehow work I guess?
All the best,
Gregor
|