Giter VIP home page Giter VIP logo

itkiofdf's Introduction

ITKIOFDF

PyPI License

Overview

This is a module for the Insight Toolkit (ITK) to read or write the FDF image format.

It contains an ImageIO class to read or write the FDF image format.

This module is available in the ITK source tree as a Remote module. To enable it, set:

Module_IOFDF:BOOL=ON

in ITK's CMake build configuration.

Install the Python package with:

pip install itk-iofdf

License

This software is distributed under the Apache 2.0 license. Please see the LICENSE file for details.

Acknowledgements

Initial work was done by Glenn Pierce; the code was brought up to current ITK standards by Nicholas Tustison; and it was converted to an ITK Remote module by Kent Williams.

itkiofdf's People

Contributors

blowekamp avatar dzenanz avatar glehmann avatar hjmjohnson avatar jcfr avatar jhlegarreta avatar mseng10 avatar tbirdso avatar thewtex avatar zachary-williamson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

itkiofdf's Issues

Issue caused by carriage returns

I've been trying to use the module to read some .fdf files that I have but was getting errors regarding value type. After much debugging I realized that the problem is with the headers. For some reason, each line in the header ends with a carriage return and a new line, i.e. \r\n. So when they are parsed and tokenized, there are now 5 tokens, the last being the \r. The code that reads the header then ignores each line as it only looks at lines with exactly 4 items after tokenization. I confirmed that adding the line "line = RemoveCharacters(line, '\r');" [here] (

line = RemoveCharacters(line, '*');
line = RemoveCharacters(line, '\"');
line = RemoveCharacters(line, '[');
line = RemoveCharacters(line, ']');
) resolves the issue, so I was hoping you could make that fix. I could submit a PR if you would prefer that.

No matching distribution in python 3.10

Hi, I am trying to install the python package but it seems that there is no distribution for python 3.10 pip 22.1.2. I am trying in a Windows10 OS the following:

$ pip --version
pip 22.1.2 from C:\Users\xxxxx\Miniconda3\envs\xx\lib\site-packages\pip (python 3.10)
$ pip install itk-io-fdf
ERROR: Could not find a version that satisfies the requirement itk-io-fdf (from versions: none)
ERROR: No matching distribution found for itk-io-fdf

However it is possible to install in python 3.6

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.