<div dir="ltr">Hi Lowekamp<div>    I think I may get your meaning: I have to define something before I can use this filter in python? I so glad to get your reply, but could not figure out how to achieve your suggestion: <span style="font-size:13px;font-family:arial,sans-serif"> Poke around itk.</span><span style="font-size:13px;font-family:arial,sans-serif">BinaryImageToLabelMapFilter's dict interface, </span><span style="font-family:arial,sans-serif;font-size:13px">some method along the lines 'keys()' should give you a list of the types that have been compiled and can be created.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">    <img src="cid:1C4@goomoji.gmail" goomoji="1C4" style="margin: 0px 0.2ex; vertical-align: middle;"></span></div><div>    </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 7:09 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>2) I believe that is the error message when the the filter hasn't been instantiated with that template argument. Poke around itk.BinaryImageToLabelMapFilter's dict interface, some method along the lines 'keys()' should give you a list of the types that have been compiled and can be created.</div><div><br></div><div>hope this helps,</div><div>Brad</div><div><br><div><div><div class="h5"><div>On Sep 15, 2014, at 1:04 PM, gowith king <<a href="mailto:gowithking@googlemail.com" target="_blank">gowithking@googlemail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div dir="ltr"><div><div class="h5"><div><div>Hi, my Itk friends,<br></div>      I am using python warped ITK to write my first itk process to analysis series of  mhd images, I test my procedure in slicer4 first to make sure it works well. Then I start the programming. However, two problem block me for a whole day. <br></div><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><p><br></p><ul><li>     I need to get a label map with simply threshold method, and then make few statistics with LabelStatisticsImageFilter. So the BinaryImageToLabelMapFilter is taken. but then the key error occurs:  </li></ul><div> LabelFilter = itk.BinaryImageToLabelMapFilter[IUC3].New()<br>  File "/usr/local/lib/ITK-4.7/Python/itkTemplate.py", line 263, in __getitem__<br>    (str(parameters), self.__name__))<br>KeyError: "itkTemplate : No template [<class 'itkImagePython.itkImageUC3'>] for the itk::BinaryImageToLabelMapFilter class"<br><br><br></div><div>       What should I do to achieve the LabelStatisticsImageFilter ?<br></div></div></div><div>      Thank you in advance<span><330.gif></span><br></div></div>
_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br></blockquote></div><br></div></div></blockquote></div><br></div>