3
d>                 @   s   d Z ddlmZmZmZmZmZmZmZm	Z	m
Z
mZ ddlZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deZG dd deZdS )zuAutogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator.    )
CommandLineCommandLineInputSpecSEMLikeCommandLineTraitedSpecFile	Directorytraits	isdefinedInputMultiPathOutputMultiPathNc               @   sx   e Zd ZeddddZejeje ddddZej	d	d
dZ
ejdddZejdddZejdddZejdddZdS )DicomToNrrdConverterInputSpeczDirectory holding Dicom seriesTz--inputDicomDirectory %s)descexistsargstrFz(Directory holding the output NRRD formatz--outputDirectory %s)
hash_filesr   r   z Output filename (.nhdr or .nrrd)z--outputVolume %s)r   r   zIf a gradient magnitude is greater than 0 and less than smallGradientThreshold, then DicomToNrrdConverter will display an error message and quit, unless the useBMatrixGradientDirections option is set.z--smallGradientThreshold %fa4  Write the protocol gradients to a file suffixed by '.txt' as they were specified in the procol by multiplying each diffusion gradient direction by the measurement frame.  This file is for debugging purposes only, the format is not fixed, and will likely change as debugging of new dicom formats is necessary.z--writeProtocolGradientsFile zMAdjust all the gradients so that the measurement frame is an identity matrix.z--useIdentityMeaseurementFrame zFill the nhdr header with the gradient directions and bvalues computed out of the BMatrix. Only changes behavior for Siemens data.z--useBMatrixGradientDirections N)__name__
__module____qualname__r   ZinputDicomDirectoryr   EitherBooloutputDirectoryStroutputVolumeZFloatZsmallGradientThresholdZwriteProtocolGradientsFileZuseIdentityMeaseurementFrameZuseBMatrixGradientDirections r   r   E/tmp/pip-build-7vycvbft/nipype/nipype/interfaces/slicer/converters.pyr      s0   
r   c               @   s   e Zd ZedddZdS )DicomToNrrdConverterOutputSpecz(Directory holding the output NRRD formatT)r   r   N)r   r   r   r   r   r   r   r   r   r   7   s   r   c               @   s$   e Zd ZdZeZeZdZddiZ	dS )DicomToNrrdConvertera.  title: DICOM to NRRD Converter

    category: Converters

    description: Converts diffusion weighted MR images in dicom series into Nrrd format for analysis in Slicer. This program has been tested on only a limited subset of DTI dicom formats available from Siemens, GE, and Phillips scanners. Work in progress to support dicom multi-frame data. The program parses dicom header to extract necessary information about measurement frame, diffusion weighting directions, b-values, etc, and write out a nrrd image. For non-diffusion weighted dicom images, it loads in an entire dicom series and writes out a single dicom volume in a .nhdr/.raw pair.

    version: 0.2.0.$Revision: 916 $(alpha)

    documentation-url: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DicomToNrrdConverter

    license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt

    contributor: Xiaodong Tao (GE), Vince Magnotta (UIowa), Hans Johnson (UIowa)

    acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.  Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.
    zDicomToNrrdConverter r   N)
r   r   r   __doc__r   
input_specr   output_spec_cmd_outputs_filenamesr   r   r   r   r   =   s
   r   c            7   @   s   e Zd ZedAddddZejeje dBdddd	Zej	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?5Z
d@S )COrientScalarVolumeInputSpec   zInput volume 1Tz%s)positionr   r   r      FzThe oriented volume)r$   r   r   r   ZAxialZCoronalZSagittalZRIPZLIPZRSPZLSPZRIAZLIAZRSAZLSAZIRPZILPZSRPZSLPZIRAZILAZSRAZSLAZRPIZLPIZRAIZLAIZRPSZLPSZRASZLASZPRIZPLIZARIZALIZPRSZPLSZARSZALSZIPRZSPRZIARZSARZIPLZSPLZIALZSALZPIRZPSRZAIRZASRZPILZPSLZAILZASLzOrientation choicesz--orientation %s)r   r   N)r   r   r   r   ZinputVolume1r   r   r   r   EnumZorientationr   r   r   r   r"   U   s|   r"   c               @   s   e Zd ZeddddZdS )OrientScalarVolumeOutputSpecr%   zThe oriented volumeT)r$   r   r   Nr'   )r   r   r   r   r   r   r   r   r   r)      s   r)   c               @   s$   e Zd ZdZeZeZdZddiZ	dS )OrientScalarVolumea  title: Orient Scalar Volume

    category: Converters

    description: Orients an output volume. Rearranges the slices in a volume according to the selected orientation. The slices are not interpolated. They are just reordered and/or permuted. The resulting volume will cover the original volume. NOTE: since Slicer takes into account the orientation of a volume, the re-oriented volume will not show any difference from the original volume, To see the difference, save the volume and display it with a system that either ignores the orientation of the image (e.g. Paraview) or displays individual images.

    version: 0.1.0.$Revision: 19608 $(alpha)

    documentation-url: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/OrientImage

    contributor: Bill Lorensen (GE)

    acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.
    zOrientScalarVolume r   zoutputVolume.niiN)
r   r   r   r   r"   r   r)   r   r    r!   r   r   r   r   r*      s
   r*   )r   Znipype.interfaces.baser   r   r   r   r   r   r   r	   r
   r   osr   r   r   r"   r)   r*   r   r   r   r   <module>   s   0"C