<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 5:31 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: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">Thanks McCormick , I use the dir(itk,Image) and dir(itk.LabelMap) and dir(to get some information : UC3 is included in itk.image then it is good. <div>Then I tried all the other dir() for each of my filter , made lots of correction , now the pepline works perfect <img src="cid:330@goomoji.gmail" goomoji="330" style="margin: 0px 0.2ex; vertical-align: middle;"> Thank you again .</div><div><br></div><div>But I still could not get my result ... </div><div>because of the filters I may not really understand.</div><div><br></div><div>I have three filters </div><div>BinaryThresholdImageFilter # to get a binary image for now I get only two values 1 and 100 it works well. I what the labelmap contains both two parts of them<br></div><div>BinaryImageToLabelMapFilter #I have no idea if it works well or not <br></div><div>LabelMapToLabelImageFilter   # returns a empty image <br></div><div><br></div><div>Do you have any idea about this ?</div></div></blockquote><div><br></div><div>Perhaps SetInputForegroundValue [1] needs to be set?</div><div><br></div><div>HTH,</div><div>Matt</div><div><br></div><div>[1] <a href="http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToLabelMapFilter.html#a5c56958ec0ae8d3a9bf7ae759c680c4a">http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToLabelMapFilter.html#a5c56958ec0ae8d3a9bf7ae759c680c4a</a></div><div><br></div><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 class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 10:12 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: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><div><div><div><div>Hi gowith,<br><br></div>To see the available types for itk.Image, run<br><br></div>  dir(itk.Image)<br><br></div>If a type is not available that is desired, enable the option in CMake for that pixel type.  For unsigned short, set<br><br></div>  ITK_WRAP_unsigned_short<br><br>to ON.<br><br></div>Hope this helps,<br>Matt<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 2:19 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: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">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><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: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">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><div><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: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 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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>