Coder Social home page Coder Social logo

harishanand95 / jsrt-parser Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 5.0 1.42 MB

This is a data parser to obtain images and descriptions from JSRT database in a uniform format for deep learning applications.

License: MIT License

Python 100.00%
data-parser deep-learning tensorflow jsrt-database

jsrt-parser's Introduction

jsrt-parser's People

Contributors

harishanand95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jsrt-parser's Issues

size error

First of all
Thanks for your help, I could manage JSRT dataSet.

I try to crop the image by using yours but there is a problem
(I put all image into the All247images folder and CSV file into the Clinical_Information folder )

when i try your sample code below,

jsrtdata = Jsrt().load_images("./All247images/")
nodule_images = jsrtdata.get_images(num_of_images=1, has_nodule=True)

# crop out from image a picture of size 1200 at location 0,0 as center.
image = nodule_images[0].crop(1200, 0, 0)     

plt.imshow(image, cmap=plt.get_cmap('gray'))
plt.show()

I got an error like below
→ ValueError: cannot reshape array of size 851869 into shape (2048,2048)

The image that I have is also 2048*2048 size
Is there anything that I missed?

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.