Coder Social home page Coder Social logo

Comments (2)

neurolabusc avatar neurolabusc commented on August 16, 2024

I have added a patch to the development version that should fix this issue:

git clone --branch development https://github.com/rordenlab/dcm2niix.git
cd dcm2niix
mkdir build && cd build
cmake ..
make

In the past, an error was generated, and I believe this terminates Dcm2Bids
printError("Photometric Interpretation 'PALETTE COLOR' not supported\n");
the new version should simply generate a warning and skip these images:
printWarning("Photometric Interpretation 'PALETTE COLOR' not supported\n");
Palette colors are always low precision, and do not have a direct equivalent in NIfTI. One could convert these to RGB images which do exist in NIfTI, but few NIfTI tools handle these and the precision remains low. In my experience, palette colors are only used for derived images, and therefore you want to skip these files and convert the high-precision raw data (which should yield better derived values after processing).

In my experience, palette colors is exceptionally rare. You may want to work out the providence of these images and see if there is a way to store them in more common format.

from dcm2bids.

nmarkowitz avatar nmarkowitz commented on August 16, 2024

I think I resolved this. I think it was the dicoms (possibly the way they were retrieved, stored, downloaded, not sure). It now works. There are a lot of derivatives that are included with the dicoms so I filter out using -i switch in dcm2niix. Thanks for all the help

from dcm2bids.

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.