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