Failed to allocate memory Error

I was trying to execute the DeformableRegistration15.cxx on two brain CT images.
Pixel Type is short. I get this error when i execute it.
Please help me with thins.

I’m sorry I don’t have the answer, but I just wonder:

  1. How large are these two CT images? How large are the actual CT files?
  2. Did you compile for 32-bit (x86) or 64-bit (x64)? Debug or Release?
  3. Which version of ITK do you use?

Good luck!


That error message indicates that the images are too big for your computer’s memory. You could try increasing your swap file size.

1 Like