Giter Club home page Giter Club logo

Comments (5)

jspunda avatar jspunda commented on July 28, 2024

I'm not sure what you mean. Both original .csv files are opened in 'read' mode. Then the new file is written with a different name: ProstateX-Images-Train-NEW.csv

Maybe I'm missing something...

from prostatex.

schelv avatar schelv commented on July 28, 2024

That is what the description in csv_fix.py says. Then I read the code...

from prostatex.

schelv avatar schelv commented on July 28, 2024

Can you give an example of how the data loading works?
For example I want:
X,y with X being the 2d tumor slices, and y the label.

from prostatex.

jspunda avatar jspunda commented on July 28, 2024

If you mean a cutout of the lesion from a particular slice, there is no functionality for it as of yet. You could however create a query object like the example code in h5 query.py. Let's say for all the ADC series. That will give you a subset of the data containing just the full dicom images and the lesion information.

The print result function in h5_query shows how to traverse this subset. At the very end it extracts one lesion attribute named 'ijk'. To get the label for that lesion, the attribute name should be changed to 'ClinSig' . If you want to access the raw dicom pixel data, it would look something like result[patient_id][dcm_series name]['pixel_array'][:]

from prostatex.

schelv avatar schelv commented on July 28, 2024

works great!

from prostatex.

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.