Code Monkey home page Code Monkey logo

Comments (3)

hadim avatar hadim commented on August 30, 2024

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 0

when 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.

hadim avatar hadim commented on August 30, 2024

Should be fixed.

from read-roi.

scottclowe avatar scottclowe commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.