Code Monkey home page Code Monkey logo

mridata-recon's People

Contributors

jychengmri avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

sjames40

mridata-recon's Issues

2D or 3D FSE?

Hi,

on your README.md page, it points to an mridata.org dataset for which the recon_fse_2d.py script should work.
However, that link redirects to

http://mridata.org/list?project=Stanford%20Fullysampled%203D%20FSE%20Knees

Which is the 3D case as you can see.. So my next question is... assuming that there is a typo in the link. Do you also have a script to convert the 3D-FSE .h5 data to an image?

Also, why isnt there an easy setup.py script to install these pieces of code as a library that can be imported?

-p PNG not working properly

imageio error:
ValueError: Could not find a format to write the specified file in mode 'i'

In Windows:

FSE phase correction...
Transforming k-space data to image domain...
Writing files...
Writing example png...
Traceback (most recent call last):
  File "D:\projects\mridata-recon-master\recon_2d_fse.py", line 265, in <module>
    file_png=args.png, verbose=args.verbose)
  File "D:\projects\mridata-recon-master\recon_2d_fse.py", line 247, in dataset_to_cfl
    imageio.imwrite(file_png, image_out.astype(np.uint8))
  File "C:\Program Files\Python35\lib\site-packages\imageio\core\functions.py", line 244, in imwrite
    writer = get_writer(uri, format, 'i', **kwargs)
  File "C:\Program Files\Python35\lib\site-packages\imageio\core\functions.py", line 170, in get_writer
    'in mode %r' % mode)
ValueError: Could not find a format to write the specified file in mode 'i'

In Linux:

Transforming k-space data to image domain...
Writing files...
Writing example png...
Traceback (most recent call last):
File "/Data2/sruser/projects/mridata-recon-master/recon_2d_fse.py", line 265, in <module>
file_png=args.png, verbose=args.verbose)
File "/Data2/sruser/projects/mridata-recon-master/recon_2d_fse.py", line 247, in dataset_to_cfl
imageio.imwrite(file_png, image_out.astype(np.uint8))
File "/Data2/sruser/PycharmProjects/superres/venv/lib/python3.5/site-packages/imageio/core/functions.py", line 244, in imwrite
writer = get_writer(uri, format, 'i', **kwargs)
File "/Data2/sruser/PycharmProjects/superres/venv/lib/python3.5/site-packages/imageio/core/functions.py", line 170, in get_writer
'in mode %r' % mode)
ValueError: Could not find a format to write the specified file in mode 'i'

any ideas?

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.