[Insight-users] GradientRecursiveGaussianImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Sun Jan 24 10:06:01 EST 2010
Hi Joanna,
Please put the call to Update() inside a try/catch block
and post to the list the message produced by the
Exception.
You will find many examples on how to do this in the
ITK Software Guide:
http://www.itk.org/ItkSoftwareGuide.pdf
The code will look like:
try
{
gradientFilter->Update();
}
catch( itk::ExceptionObject & excp )
{
std::cerr << excp << std::endl;
}
---
If you only need to compute derivative in
certain points of the image, you may want
to use one of the following classes:
* ./Common/itkGaussianDerivativeImageFunction.h
* ./Common/itkGaussianDerivativeSpatialFunction.h
* ./Review/itkDiscreteGaussianDerivativeImageFunction.h
Regards,
Luis
-----------------------------------
On Sun, Jan 24, 2010 at 5:05 AM, joanna ZHU <joannajello at gmail.com> wrote:
> Hello, dear all.
>
> I am trying to use GradientRecursiveGaussianImageFilter, but there is
> exception while running. I am thinking may be it is out of memory since the
> size of the image is 512*512*272. I am wondering is there any other filters
> that I could use instead of this one. Actually, I just want to use the
> gradient vector of a few points. Is there a better way to calculate the
> gradient vector. Thanks a lot.
>
> Best Regards,
>
> Joanna
>
>
> _____________________________________
> 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