GithubHelp home page GithubHelp logo

Comments (4)

jakirkham avatar jakirkham commented on July 23, 2024 1

Maybe a follow up item here is adding this to the docs

from cucim.

gigony avatar gigony commented on July 23, 2024

@jakirkham @thewtex

The dimension order of the origin is crucial for 3D images, such as CT/MRI images.

There has been some discussion on origin, spacing, and direction at ITK's board: https://discourse.itk.org/t/images-in-physical-space-in-python/2124/15.
I don't recall the conclusion of the discussion, but it appears that establishing a standard for image metadata across Python image libraries is important.

cuCIM operates with a plugin system, where the primary plugin is the cuSlide plugin.
The cuMed plugin is intended to handle CT/MRI volumetric data, but its implementation is not yet planned; currently, we have only a stub plugin implementation for this.

Currently, for Whole Slide Images, the origin metadata is not extensively utilized and is always set to [(0.0, 0.0, 0.0)]
(

std::pmr::vector<float> origin({ 0.0, 0.0, 0.0 }, &resource);
).

from cucim.

jakirkham avatar jakirkham commented on July 23, 2024

Thanks Gigon! 🙏

When does this origin get set in CuImage construction? Is this part of the parse call here?

is_loaded_ = image_format_->image_parser.parse(file_handle_.get(), image_metadata_);

Or does it happen somewhere else?

from cucim.

gigony avatar gigony commented on July 23, 2024

Thanks Gigon! 🙏

When does this origin get set in CuImage construction? Is this part of the parse call here?

is_loaded_ = image_format_->image_parser.parse(file_handle_.get(), image_metadata_);

Or does it happen somewhere else?

@jakirkham
Correct, the method call would call static bool CUCIM_ABI parser_parse(CuCIMFileHandle_ptr handle_ptr, cucim::io::format::ImageMetadataDesc* out_metadata_desc) method here (

std::pmr::vector<float> origin({ 0.0, 0.0, 0.0 }, &resource);
)

from cucim.

Related Issues (20)

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.