<div dir="ltr">Hi McCormick <div> I think you give me a hint for the key error problem: I tried few other types in my python such as US , UI, SI ... most of them could not work well . another keyerror pops out for the template lose: when I try itk.Image[itk.SI, 3]</div><div><div>KeyError: 'itkTemplate : No template (<itkCType signed int>, 3) for the itk::Image class'</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 8:11 PM, gowith king <span dir="ltr"><<a href="mailto:gowithking@googlemail.com" target="_blank">gowithking@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi McCormick <div> Thank you so much for your suggestion, when I use US it pops out a keyerror , not template for the us3 <img src="cid:33A@goomoji.gmail" goomoji="33A" style="margin:0px 0.2ex;vertical-align:middle">. But then I change to SS it works well for now. </div><div> any suggestion for the second issue ? </div><div> I dig for really long time for this keyerror problem , but have no clue at all</div><div> </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 7:54 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div></div></blockquote><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><ul><li> The imagetype of itk.Image.UC3 should be used for 16 bit image in all the itk instructions. But in my case it only has a range of 0-255. Then I take itk.Image.F3, then it get a range of '-3.40282346639e+38 3.40282346639e+38' . The grey value of my image is 0-9000 . How could I read it proprietorially?</li></ul></div></blockquote></span><div>itk.Image.UC3 is an itk::Image with unsigned char pixels (range 0-255) and with three dimension. For the correspondence between mangled names and basic types see [1]. For a 16 bit image use 'US' or 'SS'.</div><div><br></div><div>HTH,</div><div>Matt</div><div><br></div><div>[1] <a href="http://itk.org/gitweb?p=ITK.git;a=blob;f=Wrapping/WrapBasicTypes.cmake;h=f303a1c245a541e702674f969dac8209b12f2e93;hb=HEAD" target="_blank">http://itk.org/gitweb?p=ITK.git;a=blob;f=Wrapping/WrapBasicTypes.cmake;h=f303a1c245a541e702674f969dac8209b12f2e93;hb=HEAD</a></div><div><br></div><div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>