Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Polygon as Example #73

Open
julien2424 opened this issue Apr 4, 2022 · 3 comments
Open

Adding Polygon as Example #73

julien2424 opened this issue Apr 4, 2022 · 3 comments
Assignees

Comments

@julien2424
Copy link

Hello!

We are currently running Weka Segmentation successfully, but are only able to add Rectangles as ROIs for the examples. We thought we might be able to add Polygons (as they are both java.awt) but it seems like the ROI constructor only accepts Rectangles. How do you recommend we get around this? Thanks!

roi_constr

@iarganda iarganda self-assigned this Apr 6, 2022
@iarganda
Copy link
Collaborator

iarganda commented Apr 6, 2022

I'll have a look. I haven't changed anything and Polygons used to work (if I remember well) so it might have to do with an update in the ImageJ core.

@julien2424
Copy link
Author

@iarganda Okay let me know what you find. Is there any way you can think of to get around this?

@imagejan
Copy link
Member

@julien2424 do I get it right that you want to add a polygon ROI programmatically (i.e. not using the Polygon selection tool and your mouse)?

In this case, please use ij.gui.PolygonRoi which extends ij.gui.Roi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants