<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:10.0pt;
        margin-left:0cm;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi guys,<o:p></o:p></p>
<p class="MsoNormal">I am using an open-source library named Plastimatch which uses the ITK libraries. I have built my Plastimatch (and also ITK) in debug mode. I am using a cropping method in Plastimach which simply crops an image. Plastimatch uses ITK libraries
 to read the image. I have a labelmap image named Prostate_MR_Labelmaps.mha, this image loads in 3DSlicer (for visualization) just fine! But when I am using Plastimach to read the image and crop it (which uses ITK::ImageFileReader function) I get the following
 error: <o:p></o:p></p>
<p class="MsoNormal"><b><i>Unhandled exception at 0x000000013fbb9c13 in plastimatch.exe: 0xC0000005: Access violation reading location 0xffffffffffffffff.<o:p></o:p></i></b></p>
<p class="MsoNormal">However, I also have built the Plastimatch and ITK libraries in Release mode and I did not receive this error and it read the image perfectly!<o:p></o:p></p>
<p class="MsoNormal">Are there any thoughts out there to what could be the cause of this problem?<o:p></o:p></p>
<p class="MsoNormal">I am using Windows 7, 64 bits, ITK version 3.20.2 if that helps.<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance for your help!<o:p></o:p></p>
<p class="MsoNormal">Amir<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><b><i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black">This e-mail is intended only for the named recipient(s) and may contain confidential, personal and/or health
 information (information which may be subject to legal restrictions on use, retention and/or disclosure).  No waiver of confidence is intended by virtue of communication via the internet.  Any review or distribution by anyone other than the person(s) for whom
 it was originally intended is strictly prohibited.  If you have received this e-mail in error, please contact the sender and destroy all copies.</span></i></b><span style="font-size:10.5pt;
font-family:"Calibri","sans-serif";mso-fareast-font-family:"Times New Roman";
color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</body>
</html>