[Insight-users] Mutual Information Error
Jordan Soet
jds at interchange.ubc.ca
Fri May 27 17:24:48 EDT 2005
Thanks for your help, Luis
For both images the dimension is 3, index [0,0,0], size [163,159,101],
spacing [1,1,1], origin [0,0,0]. It's like that because I read in the
files in a 'bad' way so that I could have some test data to work with
for now. The ultrasound gives the data in a *.V00 format which ITK
doesn't read, so I just basically read it in as a raw file and ignored
the header so that I could try some stuff out with ITK. Anyways, thanks
for your help, but I guess this means I'll actually have to work on
getting the images read in properly.
Thanks again,
Jordan
Luis Ibanez wrote:
>
> Hi Jordan,
>
>
> This message is typically produced when the Transform is such that
> the Moving image is mapped outside the extent of the Fixed image.
>
> The lack of overlap between the Fixed image and the mapped Moving
> image makes impossible to compute the Metric, and therefore an
> Exception is thrown.
>
>
> Please post to the list the characteristics of your two images.
>
> - Number of pixels along each dimension
> - Pixel spacing
> - Origin
>
>
>
> You can get spacing and origing very easily by just invoking
>
>
> fixedImageReader->GetOutput()->Print( std::cout );
> movingImageReader->GetOutput()->Print( std::cout );
>
> [after having invoked the Update() methods of the readers]
>
>
>
>
> It is very likely that the origin of your images is such that
> initializing the Transform as an Identity is not appropriate.
>
>
>
> In that case, you may want to use the Transform Initializer, as
> illustrated in the ITK Software Guide
>
>
> http://www.itk.org/ItkSoftwareGuide.pdf
>
>
> Chapter 8,
>
>
>
> Regards,
>
>
>
> Luis
>
>
>
> --------------------------
> Jordan Soet wrote:
>
>> I'm working the mutual information metric on 3D ultrasound images,
>> and as a quick test I tried using ImageRegistration11 on it with the
>> dimension changed to 3 (and the parameters for the transform changed
>> as well). However, when I try and run it I get the following error:
>>
>> $ ./ImageRegistration11.exe I0000005.hdr I0000006.hdr
>> ExceptionObject caught !
>>
>> itk::ExceptionObject (0xa05c370)
>> Location: "Unknown"
>> File:
>> /home/Jordan/InsightToolkit-2.0.1/Code/Algorithms/itkMattesMutualInformationImageToImageMetric.txx
>>
>> Line: 623
>> Description: itk::ERROR:
>> MattesMutualInformationImageToImageMetric(0xa0528a0): Too many
>> samples map outside moving image buffer: 0 / 10000
>>
>> I'd guess that it's something to do with the regions, however, the
>> images are the same size, and I didn't change anything from the
>> example, so I don't know what the matter is... Does anyone know what
>> the problem is?
>>
>>
>> Thanks,
>>
>> Jordan
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
>
More information about the Insight-users
mailing list