[ITK] [ITK-users] Registration with Spatial Masking

suneeza hanif suneezahanif02 at gmail.com
Wed Mar 9 13:02:56 EST 2016


Hello Brad,

Yes Registration is working fine if I remove mask.

Currently, I am using only one mask.

I am using Centered Rigid2D Transform.

Error occurs when registration->Update() is called and yes I am using
iteration callbacks.

Best Regards,
Suneeza

On Wed, Mar 9, 2016 at 6:58 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>
wrote:

> Hello,
>
> Does you registration work without utilizing the mask? Are you trying to
> use 2 or 1 mask?
>
> How did you initialize your transforms?
>
> When does this error occur? Do you have iteration callbacks?
>
> Brad
>
>
> On Mar 9, 2016, at 12:49 PM, suneeza hanif <suneezahanif02 at gmail.com>
> wrote:
>
> Hello Dženan,
>
> Thank you for your response.
>
> I have tried with larger mask but I get same error.
>
> Secodly, when I use itk::ImageSpatialObject instead of itk::ImageMaskSpatialObject
> I do not get this error but then mask is not activated because even when I
> take mask of size (0,0) registration process still keeps on running.
>
> Best Regards,
> Suneeza
>
>
> On Wed, Mar 9, 2016 at 6:39 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>
>> Hi Suneeza,
>>
>> I would say that your mask is too small, so the masked part does not
>> contain sample points. It could be also that your initialization is not
>> good, so there is no overlap between fixed and moving images.
>>
>> Regards
>>
>> On Wed, Mar 9, 2016 at 11:10 AM, suneeza hanif <suneezahanif02 at gmail.com>
>> wrote:
>>
>>> Hello Everyone,
>>>
>>> I have problem while applying spatial masking.
>>>
>>> When I apply spatial mask I get this error.
>>>
>>> *"itk::ExceptionObject (0038D8CC)*
>>>
>>> *Location: "void __thiscall itk::ImageToImageMetricv4<class
>>> itk::Image<float,2>,class
>>> itk::Image<float,2>,classitk::Image<float,2>,double,class
>>> itk::DefaultImageToImageMetricTraitsv4<class itk::Image<float,2>,class
>>> itk::Image<float,2>,class
>>> itk::Image<float,2>,double>>::MapFixedSampledPointSetToVirtual(void)"*
>>>
>>>
>>> *File:
>>> c:\itk\src\modules\registration\metricsv4\include\itkImageToImageMetricv4.hxx*
>>>
>>> *Line: 532*
>>>
>>> *Description: itk::ERROR:
>>> MattesMutualInformationImageToImageMetricv4(060914C0):*
>>> *Fixed Sample point set is empty."*
>>>
>>> Does anyone know how to solve this?
>>>
>>> Best Regards,
>>> Suneeza
>>>
>>> _____________________________________
>>> 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
>>>
>>>
>>
> _____________________________________
> 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/community/attachments/20160309/d980aba3/attachment.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list