[Insight-users] Sample along Vector

Kishore Mosaliganti kishoreraom at gmail.com
Thu Nov 26 11:40:43 EST 2009


Hi Sebastien,

You can use a gradient function such as a derivative of a Gaussian
(doG) that can be evaluated at a point index and then compute its
projection along the normal.

For example:

 typedef GaussianDerivativeImageFunction<InputImageType> DoGFunctionType;
 typename DoGFunctionType::Pointer DoGFunction = DoGFunctionType::New();
 DoGFunction->SetInputImage(inputImage);
 DoGFunction->SetSigma(m_SigmaGradient);

........
 // Get a index of point
DoGFunctionType::VectorType grad = DoGFunction->EvaluateAtIndex(
image_it.GetIndex() );

.......
//Compute the projection of the gradient vector grad with the normal of the mesh
// This will give you the gradient magnitude along the normal



Kishore

On Thu, Nov 26, 2009 at 5:28 AM, Sebastian Kiunke <kiunke86 at hotmail.com> wrote:
> Hello ITK-Users,
>
> I have an 3D MR Image as itk::Image and a surface from an Objekt as
> itk::Mesh.
> Now I want to calculate the normal at each Point and store it as
> itk::CovariantVector.
> Along the normal vector I want to sample the gradient of the image, in order
> to deform the mesh.
>
> My question is how can I sample the vector along a specific profile length?
>
>
> Thanks
> Sebastian
> ________________________________
> Große Daten übertragen? Ganz einfach - mit dem Messenger!
> _____________________________________
> 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.html
>
> 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 Insight-users mailing list