<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div class="" style="">Hi Matt /ITK</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span class="" style=""><br class="" style=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">Using <span style="font-family: monospace; font-size: 13px;" class="">TransformPhysicalPointToIndex I was able to get pixel index.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: monospace; font-style: normal; background-color: transparent;"><span style="font-family: monospace; font-size: 13px;" class="">But in Z direction I've got negative
 value </span><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;">44, 61, <span style="font-weight: bold;">-157</span></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;">I want to use this point as seed. But When I use this am getting black screen as output.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px;
 font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;">Is it ok to use -ve Z or should I do changes?</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px;
 font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">Also image index is not at the bottom left corner as mentioned in ITK manual. it is somewhere near mid bottom end</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">Can you pls give some light on this?</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">thanks</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color:
 transparent;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;
 background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent;"><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class=""> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Sunday, 8 June 2014 8:34 AM, Sindhoor Bhat <bhatsindhoor@ymail.com> wrote:<br class="" style=""> </font> </div>  <br class="" style=""><br class="" style=""> <div class="" style=""><div id="yiv2297624867" class="" style=""><div class="" style=""><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;" class=""><div class="" style=""><span class="" style="">thanks
 Matt. Will try this.</span></div> <div class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""></div><div class="" id="yiv2297624867yqt46543" style=""><div class="" style="display:block;"> <div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt;" class=""> <div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Sunday, 8 June 2014 1:09 AM, Matt McCormick <matt.mccormick@kitware.com> wrote:<br clear="none" class="" style=""> </font> </div>  <br clear="none" class="" style=""><br clear="none" class="" style=""> <div class="" style="">Hi Sindoor,<br clear="none" class="" style=""><br clear="none" class="" style="">itk::Image contains methods like TransformPhysicalPointToIndex [1]<br clear="none" class="" style="">that can be helpful.<br clear="none" class="" style=""><br
 clear="none" class="" style="">Matt<br clear="none" class="" style=""><br clear="none" class="" style="">[1] <a rel="nofollow" shape="rect" target="_blank" href="http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#af4a7c9c3787e9fdafbaaade2e02efa25" class="" style="">http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#af4a7c9c3787e9fdafbaaade2e02efa25</a><br clear="none" class="" style=""><div class="" id="yiv2297624867yqtfd55871" style=""><br clear="none" class="" style="">On Sat, Jun 7, 2014 at 7:09 AM, Sindhoor Bhat <<a rel="nofollow" shape="rect" ymailto="mailto:bhatsindhoor@ymail.com" target="_blank" href="mailto:bhatsindhoor@ymail.com" class="" style="">bhatsindhoor@ymail.com</a>> wrote:<br clear="none" class="" style="">> Dear Matt/itk users,<br clear="none" class="" style="">> Now I'm able to pick world coordinates using vtk point picker widget.<br clear="none" class="" style="">> But for seed input to itk, we need
 index.  I'm really struck. can you pls<br clear="none" class="" style="">> help me how to move further? using itk-vtk interaction for seed selection?<br clear="none" class="" style="">><br clear="none" class="" style="">> Also, to call vtk window for point selection which command should i use? (is<br clear="none" class="" style="">> it call-back function in
 vtk? But from itk how to call ?)<br clear="none" class="" style="">><br clear="none" class="" style="">> thank you<br clear="none" class="" style="">><br clear="none" class="" style="">><br clear="none" class="" style="">> On Friday, 6 June 2014 6:04 PM, Matt McCormick <<a rel="nofollow" shape="rect" ymailto="mailto:matt.mccormick@kitware.com" target="_blank" href="mailto:matt.mccormick@kitware.com" class="" style="">matt.mccormick@kitware.com</a>><br clear="none" class="" style="">> wrote:<br clear="none" class="" style="">><br clear="none" class="" style="">><br clear="none" class="" style="">> Hi Sindhoor,<br clear="none" class="" style="">><br clear="none" class="" style="">> In your previous mail, you described taking sub-regions, which changes<br clear="none" class="" style="">> index positions.  To sample a value from a physical position, use an<br clear="none" class="" style="">>
 itk::InterpolateImageFunction.<br clear="none" class="" style="">><br clear="none" class="" style="">> The apparent flip may be due to a difference in the direction and<br clear="none" class="" style="">> location of the Y-axis in your visualization programs.<br clear="none" class="" style="">><br clear="none" class="" style="">> Hope this helps,<br clear="none" class="" style="">>
 Matt<br clear="none" class="" style="">><br clear="none" class="" style="">> On Fri, Jun 6, 2014 at 1:03 AM, Sindhoor Bhat <<a rel="nofollow" shape="rect" ymailto="mailto:bhatsindhoor@ymail.com" target="_blank" href="mailto:bhatsindhoor@ymail.com" class="" style="">bhatsindhoor@ymail.com</a>><br clear="none" class="" style="">> wrote:<br clear="none" class="" style="">>> Thanks Matt for your suggestion.<br clear="none" class="" style="">>> *But I've tried with that too. It is not considering the index/seed<br clear="none" class="" style="">>> position<br clear="none" class="" style="">>> that I write in program.<br clear="none" class="" style="">>> When I  added  below code to get selected seed position, it shows<br clear="none" class="" style="">>> completely different point than what I had written(using image J ---><br clear="none" class="" style="">>> physical coordinates )<br
 clear="none" class="" style="">>>                std::cout <<  filter->GetOutput()->GetPixel( Position1 ) <<<br clear="none" class="" style="">>> std::endl;<br clear="none" class="" style="">>> *seed point
 doesn't appear between selected thresholds ( say: (85,300) &<br clear="none" class="" style="">>> seep position will be like 45 etc)<br clear="none" class="" style="">>><br clear="none" class="" style="">>> *Also, I should mention that my dicom images appear in reverse order(<br clear="none" class="" style="">>> flipped). Is this affecting my seed selection?<br clear="none" class="" style="">>>        (I tried subtracting Y coordinate from maxY etc.)<br clear="none" class="" style="">>><br clear="none" class="" style="">>> Can you pls tell what is wrong? thank you.<br clear="none" class="" style="">>><br clear="none" class="" style="">><br clear="none" class="" style="">><br clear="none" class="" style=""></div><br clear="none" class="" style=""><br clear="none" class="" style=""></div>  </div> </div>  </div></div> </div></div></div><br class="" style=""><br class=""
 style=""></div>  </div> </div>  </div> </div></body></html>