[Insight-users] Reducing the footprint of GetVectorDistanceMap() in SignedDanielssonDistanceMapImageFilter

Ramón Casero Cañas rcasero at gmail.com
Sun Sep 30 07:06:33 EDT 2012


On 30 September 2012 11:28, Ramón Casero Cañas <rcasero at gmail.com> wrote:
>
> and OffsetType are, in this case, 3 elements of type signed long.
>
> That is, in a 64-bit architecture, a 648x494x1648 image allocates
> memory for 3x648x494x1648 elements of type "signed long" (4 bytes
> each), almost 6 GB of RAM.

Sorry, a small correction. Actually, on linux 64-bit it seems that
OffsetValueType is int64_T, which is worse, because now we are using 8
bytes per vector element instead of 4, 12 GB RAM, when we could do
with 4 times less memory.

Cheers,

Ramon.

-- 
Dr. Ramón Casero Cañas

Oxford e-Research Centre (OeRC)
University of Oxford
7 Keble Rd
Oxford OX1 3QG

tlf     +44 (0) 1865 610739
web     http://www.cs.ox.ac.uk/people/Ramon.CaseroCanas
photos  http://www.flickr.com/photos/rcasero/


More information about the Insight-users mailing list