Comments (3)
Another person got the same issue:
I have just found your program and it is just what I need, but I am having problems with a particular imageJ ROI type called "composite". I can see from the ROI manager description:
1 Roi_name Composite 124 98 35 44 none none 0 17 0 17 0when I read it using your program:
{'Roi_name': {'type': 'rectangle', 'left': 124, 'top': 98, 'width': 35, 'height': 44, 'arc_size': 0, 'name': '
Roi_name', 'position': 17}}
I imagine that the "composite" type is not in the ROI_TYPE posibilities and the rectangle is selected when an unknown is found. I would assume that the properties of the composite should be the same as the freehand. I have attached an example in order to help you.
If anyone wants to submit a PR about it, I would be happy to review and merge it.
from read-roi.
Should be fixed.
from read-roi.
Thanks for reporting this, @OSchoppe. Full support for composite ROIs was added in v1.6.0.
Composite ROIs have a 'paths'
dictionary key, which contains a list of all the paths in the composite ROI. Each path is a list of co-ordinates for the nodes along the path. As per the .roi file contents, the paths are not closed, so you will have to repeat the starting co-ordinate at the end of each path if you wish to close the path. Each path begins at its top-most point, and I believe the paths are listed in order of their top-most point but I am not sure on this. The nesting of the paths is left for the user to determine. Each outermost path describes a region of pixels which are included in the ROI, whereas a path immediately inside this describes pixels which are excluded (and a path inside that describes pixels to be included again).
from read-roi.
Related Issues (14)
- an integer is required (got type str) HOT 6
- Add docstrings HOT 3
- Big values (above 32768) for Coordinates HOT 2
- how to write roi from np array HOT 2
- converting shapes to areas HOT 4
- New release HOT 7
- How can I save the rois into a zip file, which imageJ can open. HOT 3
- read-roi doesn't work in python 3.6 HOT 4
- Is it possible to add reading each ROI Group HOT 1
- TypeError: an integer is required when loading roi zip HOT 1
- Adding save_rois function
- unclosed ROIs are found HOT 3
- Polygon and freehand ROIs (partly) read in incorrectly HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from read-roi.