<div dir="ltr">Hi All,<div><br></div><div>I am trying to read information from different images using the Unknown Image Type Example (<a href="http://itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType">http://itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a>) but I am getting an Access violation error. The three main lines of code (which compile without issues) I am using are:</div><div><br></div><div><div>itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(argv[3], itk::ImageIOFactory::ReadMode );</div><div>imageIO->SetFileName(std::string(argv[3]));</div><div>imageIO->ReadImageInformation();</div><div><br></div></div><div>I am getting the error in the second line. I am using CMake to generate project files as described in the example so the include directories and libraries are all taken care of. I tried to read different files (.nii, .dcm, .png, .jpg) but all of them give the same error.</div><div><br></div><div>Any suggestions regarding what I am doing wrong? </div><div><br></div><div>Thanks in advance,</div><div>Sarthak</div></div>