CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
175 stars 63 forks source link

Calling registration with folder as output causes crash in Greedy #1293

Closed sarthakpati closed 4 years ago

sarthakpati commented 4 years ago

Describe the bug When passing a directory to -o during registration, there is a crash in Greedy.

To Reproduce Steps to reproduce the behavior:

C:\CaPTk_Full\1.8.0.Beta\bin> .\Preprocessing.exe -reg Deformable -rIS 1 -o C:/Downloads/test_reg -rFI ..\data\sri24\atlastImage.nii.gz -i "C:\Downloads\movingImage" -d 1

Results in following output:

[SNIP!]
ABORTING PROGRAM DUE TO RUNTIME EXCEPTION -- e:\libscaptk\itk-source\modules\io\imagebase\include\itkimagefilewriter.hxx:151:
 Could not create IO object for writing file C:/Users/sarth/Downloads/test_reg
  Tried to create one of the following:
    BMPImageIO
    BioRadImageIO
    Bruker2dseqImageIO
    GDCMImageIO
    GE4ImageIO
    GE5ImageIO
    GiplImageIO
    HDF5ImageIO
    JPEGImageIO
    LSMImageIO
    MGHImageIO
    MINCImageIO
    MRCImageIO
    MetaImageIO
    NiftiImageIO
    NrrdImageIO
    PNGImageIO
    StimulateImageIO
    TIFFImageIO
    VTKImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.

Something went wrong when calling Greedy Reslice Deform.

Expected behavior Check if a directory is getting passed to -o.

CaPTk Version 1.8.0.Beta

sarthakpati commented 4 years ago

Done.