[ITK-users] Question

suneeza hanif suneezahanif02 at gmail.com
Wed Dec 23 09:45:31 EST 2015


Hello Dženan,

The problem was that my images were in float and the mask I generated was
in unsigned char. So in registration process, no overlapping region was
found. When I changed my image type and mask type to unsigned short it
worked then.

Best Regards,
Suneeza

On Wed, Dec 23, 2015 at 3:27 PM, Dženan Zukić <dzenanz at gmail.com> wrote:

> Hi Suneeza,
>
> maybe you should explain what was the problem, so if someone else comes
> across this thread it can help him.
>
> Regards
>
> On Wed, Dec 23, 2015 at 6:07 AM, suneeza hanif <suneezahanif02 at gmail.com>
> wrote:
>
>> Hello Dženan,
>>
>> Finally It worked. I am really grateful for your help.
>>
>> Best Regards,
>> Suneeza
>>
>> On Wed, Dec 23, 2015 at 11:05 AM, suneeza hanif <suneezahanif02 at gmail.com
>> > wrote:
>>
>>> Hello Dženan,
>>>
>>> I have three images fixed image , mask image and moving image. If I
>>> remove mask image and perform registration it works fine. But if add mask
>>> image it generates this sort of warning and does not perform registration.
>>> So I need to align mask image with moving image or fixed image?
>>>
>>> Secondly If I run same code with images (.png) provided in the example
>>> it works fine. Images I am using are dicom images  and in this case it does
>>> not work.
>>>
>>> Thanks in advance.
>>>
>>> Best Regards,
>>> Suneeza
>>>
>>> On Tue, Dec 22, 2015 at 5:40 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>
>>>>
>>>> On Tue, Dec 22, 2015 at 10:47 AM, suneeza hanif <
>>>> suneezahanif02 at gmail.com> wrote:
>>>>
>>>>> Hello Dženan,
>>>>>
>>>>> Thanks a lot for your help. :)
>>>>>
>>>>> I have one more question. When I applied spatial mask I got this
>>>>> warning and registration was not performed.
>>>>>
>>>>>
>>>>> *" WARNING: In ..\....\itkObjectToObjectMetric.hxx, line
>>>>> 529MeanSquaresImageToImageMetricv4 (00FDCC00): No valid points were found
>>>>> during metric evaluation. For image metrics, verify that the images overlap
>>>>> appropriately. For instance, you can align the image centers by
>>>>> translation. For point-set metrics, verify that the fixed points, once
>>>>> transformed into the virtual domain space, actually lie within the virtual
>>>>> domain."*
>>>>>
>>>> ​You need to give initial transform which transforms the moving image
>>>> so there is some overlap.​
>>>>
>>>> ​Mathematical formulation: l
>>>> ​Local optimization methods need a to have a starting point which is
>>>> inside the domain of the cost function. ​
>>>> ​Take a look at this example
>>>> <http://www.itk.org/Doxygen46/html/RegistrationITKv4_2ImageRegistration12_8cxx-example.html>,
>>>> ​which is also included with ITK's source code.
>>>>
>>>>>
>>>>> For spatial mask is it necessary that both mask and image have same
>>>>> number of bits?
>>>>>
>>>> ​It is not necessary.​
>>>>
>>>>>
>>>>> Regards,
>>>>> Suneeza
>>>>>
>>>>>
>>>> ​HTH​
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20151223/6bce980b/attachment.html>


More information about the Insight-users mailing list