<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} P{margin-top:0;margin-bottom:0;}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello,</p>
<p><br>
</p>
<p>I am wanting to work with a 50 GB LSM file (3D).  The first step is to be able to get the image info: width, height and depth.  I have code that works on a small LSM file</p>
<p><br>
</p>
<p>    im_u16 = reader->GetOutput();<br>
    width = im_u16->GetLargestPossibleRegion().GetSize()[0];<br>
    height = im_u16->GetLargestPossibleRegion().GetSize()[1];<br>
    depth = im_u16->GetLargestPossibleRegion().GetSize()[2];<br>
</p>
<p><br>
</p>
<p>but I see that to do this the whole image must be loaded into memory.  When I start the program running with the big file I can see that it is going to exceed the host machine's 32 GB.  Is there a way to get the image dimensions without loading the whole
 image?  What I am hoping to do is split the file into 2D TIFF files - is there any way to extract a 2D slice without reading the whole image?  Or will I be forced to run on a  machine with more than 50 GB of RAM?</p>
<p><br>
</p>
<p>Thanks in advance for any suggestions.</p>
<p><br>
</p>
<p>Best regards</p>
<p>Gib<br>
</p>
</body>
</html>