[ITK] [ITK-users] help- find position of seed-levelset segmentation/connected treshold

Matt McCormick matt.mccormick at kitware.com
Fri Jun 6 08:34:26 EDT 2014


Hi Sindhoor,

In your previous mail, you described taking sub-regions, which changes
index positions.  To sample a value from a physical position, use an
itk::InterpolateImageFunction.

The apparent flip may be due to a difference in the direction and
location of the Y-axis in your visualization programs.

Hope this helps,
Matt

On Fri, Jun 6, 2014 at 1:03 AM, Sindhoor Bhat <bhatsindhoor at ymail.com> wrote:
> Thanks Matt for your suggestion.
> *But I've tried with that too. It is not considering the index/seed position
> that I write in program.
> When I  added   below code to get selected seed position, it shows
> completely different point than what I had written(using image J --->
> physical coordinates )
>                std::cout <<  filter->GetOutput()->GetPixel( Position1 ) <<
> std::endl;
> *seed point doesn't appear between selected thresholds ( say: (85,300) &
> seep position will be like 45 etc)
>
> *Also, I should mention that my dicom images appear in reverse order(
> flipped). Is this affecting my seed selection?
>        (I tried subtracting Y coordinate from maxY etc.)
>
> Can you pls tell what is wrong? thank you.
>
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list