Hi Gregory,
I'm still here...the new installation works via command line, but if I call plastimatch in Matlab, with the comman system('plastimatch convert --input --output-img') I get a wrong result.
With the same image, from command line I get:
The directory:
.../Anonymous/CT
Contains the following DICOM Series:
1.2.826.0.1.3680043.2.1322.2.6043718.36103110489.1.13.750000512512
Now reading series:
1.2.826.0.1.3680043.2.1322.2.6043718.36103110489.1.13.750000512512
Setting PIH from M_IMG
PIH is:
Origin = -150 -150 -135.34
Size = 512 512 93
Spacing = 0.585938 0.585938 3.26999
Direction = 1 0 0 0 1 0 0 0 1
Rtds_warp: Saving m_img (ct.mha)
Trying to write image to ct.mha
Rtds_warp: warp and save ss.
Finished!
while, converting the same image in Matlab i get:
system('plastimatch convert --input .../Anonymous/CT --output-img ct.mha')
The directory:
.../Anonymous/CT
Contains the following DICOM Series:
1.2.826.0.1.3680043.2.1322.2.6043718.36103110489.1.13.750000512512
Now reading series:
1.2.826.0.1.3680043.2.1322.2.6043718.36103110489.1.13.750000512512
Setting PIH from M_IMG
PIH is:
Spacing = 1 1 1
Direction = 1 0 0 0 1 0 0 0 1
Rtds_warp: Saving m_img (ct.mha)
Trying to write image to ct.mha
ITK exception writing image file.
itk::ExceptionObject (0x101eb2f30)
Location: "void itk::ImageFileWriter<TInputImage>::Write() [with TInputImage = itk::Image<short int, 3u>]"
File: /Users/lauracecypanizzi/Desktop/Topo/TesiMagistrale/InsightToolkit-3.20.1/Code/IO/itkImageFileWriter.txx
Line: 271
Description: itk::ERROR: ImageFileWriter(0x101eb1f00): Largest possible region does not fully contain requested paste IO regionPaste IO region: ImageIORegion (0x7fff5fbfe2d0)
Dimension: 3
Index: 0 0 0
Size: 0 0 93
Largest possible region: ImageRegion (0x7fff5fbfe390)
Dimension: 3
Index: [0, 0, 0]
Size: [0, 0, 93]
Rtds_warp: warp and save ss.
Finished!
With the previous version of ITK/plastimatch I didn't have this problem.
Well, I did something in installation? Is It solvable or can I use plastimatch only from command line?
Thanks very much,
Laura