Hi Plastimatch community and Greg
I've tried to simply register the following two images:
Fixed: pixel size:0.00862mm isotropic, 8bit, matrix size: 900x600x1000
Moving: pixel size:0.02mm isotropic, 16bit , matrix size: 400x300x500
they are same subject and the same anatomical part of the body. I've done histogram matching to bring them to the same intensity distribution, however I didn't use normalized image filter since I'm using mse metric for now.
I tried plastimatch Bspline registration and I get the following error:
//////////////////////////////////////////////////
Loading fixed image: 20um-cropped.mha
Loading moving image: 8um_lightsource.mha
ITK exception reading image file: 8um_lightsource.mha!
itk::MemoryAllocationError (0028EC10)
Location: "short *__thiscall itk::ImportImageContainer<unsigned long,short>::All
ocateElements(unsigned long,bool) const"
File: d:\insighttoolkit-4.7.2\modules\core\common\include\itkImportImageContaine
r.hxx
Line: 199
Description: Failed to allocate memory for image.
//////////////////////////////////////////////
Following is Plastimatch command I use:
/////////////////////
[GLOBAL]
fixed=20um-cropped.mha
moving=8um_lightsource.mha
img_out=warped.mha
vf_out=vector_field.mha
[STAGE]
xform=bspline
optim=lbfgsb
impl=plastimatch
metric=mse
max_its=100
convergence_tol=5
grad_tol=1.5
res=4 4 2
grid_spac=3 3 3
regularization_lambda=0.00001
//////////////////////////////////
My PC has 64GB RAM, no other processes running. I was wondering, do you think it is really because the application cannot allocate the memory to the fixed image that could be a huge image (136MB) or there could be another problem?
I appreciate your help.
Thanks.
Sadegh