[ITK-users] Radius in itkVectorGradientMagnitudeImageFilter

Dženan Zukić dzenanz at gmail.com
Thu Dec 3 17:40:23 EST 2015


Hi Kevin,

Using an offset other than 1 makes little sense to me. Can you check what
is done in regular (non-vector) gradient magnitude?

Regards,
Dženan

On Wed, Dec 2, 2015 at 2:49 PM, Kevin H. Hobbs <hobbsk at ohio.edu> wrote:

> For the attached program I see no difference in the output between
>
>   radius[0] = 1;
>   radius[1] = 1;
>   radius[2] = 1;
>
> and
>
>   radius[0] = 8;
>   radius[1] = 8;
>   radius[2] = 8;
>
> The RadiusType m_NeighborhoodRadius is set, printed, and used to expand
> the requested region but the gradient calculations use central
> differences only between pixels adjacent to the neighborhood center :
>
>   d_phi_du[i][j] = ... it.GetNext(i)[j] - it.GetPrevious(i)[j]...
>
> Should these be :
>
>   NeighborhoodIndexType ri = m_NeighborhoodRadius[i];
>   d_phi_du[i][j] = ... it.GetNext(i,ri)[j] - it.GetPrevious(i,ri)[j]...
>
> ?
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20151203/3e6bd3a0/attachment.html>


More information about the Insight-users mailing list