AlanWei,Thanks,
This is due to a bug in ShapeWorksGroom. I've fixed some bugs with the crop tool recently. Are you using the most recent git changes? If so, is there any way you can point us to your data?
On Tue, Jun 24, 2014 at 3:50 PM, Wei Liu <weiliu620@gmail.com> wrote:
Dear Shapeworks users,I started to run ShapeWorksGroom on some real data. I have 5 binary segmentation images, each with size 512x512xZ, where Z varies from 200 to 350. I got "failed to allocate memory" errors that I attached at the end of this email. It seems the error happened when auto_cropping the second volume. I tried both the ShapeWorksGroom binary built with "OMP" on and off, and get the same error. When observing the memory usage while the code is running, I didn't see a point where memory is used up. My input volumes are all in char, in case the internal data structure depends on the input data.Did I miss anything? I appreciate your help.Here is the output with the errors:===============================weiliu@lando:/scratch/experiments/shapeworks> /scratch/packages/shapeworks.git/build/ShapeWorksGroom/ShapeWorksGroom lung.preprocess1.xml isolate hole_fill center auto_cropisolatePE105.nii.gzPE900.nii.gzPE908.nii.gzPE916.nii.gzPE919.nii.gzhole_fillPE105DT.nii.gzPE900DT.nii.gzPE908DT.nii.gzPE916DT.nii.gzPE919DT.nii.gzcenterPE105DT.nii.gzorigin = [-200.9, -156.5, -228.75]new origin = [-183, -183, -110.312]PE900DT.nii.gzorigin = [-172.2, -201.4, -285]new origin = [-173.5, -173.5, -156.25]PE908DT.nii.gzorigin = [-173.6, -200, -305]new origin = [-200, -200, -153.125]PE916DT.nii.gzorigin = [-126, -119.8, -262.25]new origin = [-140.5, -140.5, -130.625]PE919DT.nii.gzorigin = [-198.8, -206.5, -298.5]new origin = [-220, -220, -160.625]---------------1 0 0 -22.39280 1 0 37.83770 0 1 -123.7060 0 0 11 0 0 66.04960 1 0 -35.38460 0 1 -132.1320 0 0 11 0 0 18.88810 1 0 1.027130 0 1 -151.5330 0 0 11 0 0 5.903160 1 0 13.37880 0 1 -136.4080 0 0 11 0 0 18.32760 1 0 30.12350 0 1 -132.1540 0 0 1auto_cropWARNING! Assumes objects are centered in each image!reading PE105DT.nii.gzImageRegion (0x7fffe48f4210)Dimension: 3Index: [75, 132, 8]Size: [366, 240, 344]reading PE900DT.nii.gzImageRegion (0x7fffe48f4210)Dimension: 3Index: [145, 96, 34]Size: [197, 296, 187]
reading PE908DT.nii.gzImageRegion (0x7fffe48f4210)Dimension: 3Index: [84, 110, 33]Size: [380, 270, 197]reading PE916DT.nii.gzImageRegion (0x7fffe48f4210)Dimension: 3Index: [27, 116, 4]Size: [457, 276, 204]reading PE919DT.nii.gzImageRegion (0x7fffe48f4210)Dimension: 3Index: [100, 137, 12]Size: [299, 207, 239]crop size is [468, 330, 354]cropping PE105DT.nii.gzthisidx = [0, 0, 0]thissz = [512, 512, 353]lb = 18446744072788810304lb = 65534lb = 2WARNING: In /scratch/packages/InsightToolkit-3.20.1/Code/Common/itkImageBase.txx, line 289Image (0x11832a0): Not executing UpdateOutputData due to zero pixel condition RequestedRegion:ImageRegion (0x1183480)Dimension: 3Index: [0, 0, 0]Size: [0, 512, 353]BufferedRegion: ImageRegion (0x11834b8)Dimension: 3Index: [0, 0, 0]Size: [512, 512, 353]itk::ExceptionObject (0x7f2928000c90)Location: "TElement* itk::ImportImageContainer<TElementIdentifier, TElement>::AllocateElements(itk::ImportImageContainer<TElementIdentifier, TElement>::ElementIdentifier) const [with TElementIdentifier = long unsigned int; TElement = unsigned char; itk::ImportImageContainer<TElementIdentifier, TElement>::ElementIdentifier = long unsigned int]"File: /scratch/packages/InsightToolkit-3.20.1/Code/Common/itkImportImageContainer.txxLine: 188Description: Failed to allocate memory for image.==========================================And here is the xml file I used:==============================<?xml version="1.0" ?><!-- Preprocessing parameters 1 for Torus example --><!-- Value of background pixels in the image --><background> 0.0 </background><!-- Value of foreground pixels in the image --><foreground> 1.0 </foreground><!-- Number of background pixels to pad the edges of the cropped volume --><pad> 10 </pad><!-- filename to store transforms generated during preprocessing --><transform_file> lung.translations </transform_file><!-- Output progress information --><verbose> 1 </verbose><!-- Set of input files to process --><inputs>PE105.nii.gzPE900.nii.gzPE908.nii.gzPE916.nii.gzPE919.nii.gz</inputs><!-- Output filenames to use --><outputs>PE105DT.nii.gzPE900DT.nii.gzPE908DT.nii.gzPE916DT.nii.gzPE919DT.nii.gz</outputs>===============================
Archive powered by MHonArc 2.6.18.