Giter VIP home page Giter VIP logo

Comments (4)

teaghan avatar teaghan commented on May 12, 2024

I have the same request. Is it possible to trace these coordinates back to the original .dcm files as well? One issue may be that some of the orders are inverted in step1_preprocess_ndsb.py
Also, is there a straight forward translation between the diameter_mm and the number of pixels?
Thanks

from kaggle_ndsb2017.

teaghan avatar teaghan commented on May 12, 2024

so I believe that the helper.pecentage_to_pixels() function is designed to make this translation, @juliandewit is that correct? Something like:

import helpers
px, py, pz = helpers.percentage_to_pixels(0.1834, 0.5272, 0.71179, patient_pixel_image_array)

but I am unsure whether or not this will create problems if the order of images were reversed in step1_preprocess_ndsb.py

from kaggle_ndsb2017.

juliandewit avatar juliandewit commented on May 12, 2024

Hello,
You guys are right.
percentage to pixels takes a 3d volumne and finds the xyz locations given the xyz percentages.

And yes.. you need to take into account flipping and scaling to go back to de dicom.
I did not do/try this. I dumped the images (for debugging) right from the patient_pixel_image_array.

from kaggle_ndsb2017.

WendyDong avatar WendyDong commented on May 12, 2024

Has anyone already solved this problem?
Iā€˜m new to it.
Can you share the solution?
Thank you very much!

from kaggle_ndsb2017.

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.