Return a specific contour which encompasses a point
Closed this issue · 4 comments
GoogleCodeExporter commented
I think one useful thing to add would be allowing the user the ability to
return the outer contour of the polygon of a specific blob which contains a
point the user passes in. Something like the following could exist in
ManyBlobs.java:
public Polygon getSpecificBlobContour(int x, int y){
for(int i = 0; i < blobsList.size(); i++){
if(blobsList.get(i).getOuterContour().contains(x, y);
return blobsList.get(i).getOuterContour();
}
return null;
}
I currently do this in the code I am using your plugin with, but it would be
nice if it was done for me, especially if I had multiple blobs I wanted to pull
at different points, it would save me from having to have to same loop over and
over or having to implement my own method in my code.
Original issue reported on code.google.com by 1.stephe...@gmail.com
on 22 May 2013 at 5:04
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
It would also be good to overload with a Point parameter since a lot of ImageJ
users maintain Point data
public Polygon getSpecificBlobContour(Point p){
return getSpecificBlobContour(p.x, p.y);
}
Original comment by 1.stephe...@gmail.com
on 22 May 2013 at 5:08
GoogleCodeExporter commented
That is good idea. But I think it would be better if the whole blob instead of
its contour will be returned. I will add this method and release a new version
in the next days.
Thank you for your suggestion!
Kind Regards
Thorsten
Original comment by tho...@posteo.de
on 22 May 2013 at 6:40
- Changed state: Started
GoogleCodeExporter commented
IJBlob 1.1.1 add the proposed feature!
Original comment by tho...@posteo.de
on 23 May 2013 at 3:35
- Changed state: Fixed