[Insight-users] Re:My Registration problem

Raghavendra Chandrashekara rc3 at doc . ic . ac . uk
Wed, 10 Dec 2003 10:25:14 +0000


Jessica de Ryk wrote:

>Attached is the code I am having trouble with and the error file. I wish to
>take two grayscale images which share a 20% overlap region, segment out the
>common overlaping region, register the overlaped sections and apply the
>transform to the original color images such that they are stitched together
>to form one image. As mentioned previously I have tested the sections
>seperately and the ImageCrop filter produced a blurr issue do to the spacing
>(The images are originally captured from the microscope+CCD as Bitmaps and I
>convert them to PNG format, I am currently altering the capture to PNG
>format so hopefully that will help with the spacing issue)
>For the final joining of the two color images, I am currently reverting to
>MATLAB as I get errors about converting from two to three dimensions (Can
>resample filter only be applied to grayscale images or am I not initializing
>something correctly?)
>
>Thanks
>Jessica
>
>----- Original Message ----- 
>From: "Luis Ibanez" <luis . ibanez at kitware . com>
>To: "Jessica de Ryk" <jessica-deryk at uiowa . edu>
>Cc: <Insight-users at public . kitware . com>
>Sent: Monday, December 08, 2003 9:47 PM
>Subject: Re: [Insight-users] An overlap invariant mutual information metric
>
>
>  
>
>>Hi Jessica,
>>
>>You declarations for the RegionOfInterestImageFilter
>>look fine.
>>
>>You don't have any variable named sizeF, or startF though...
>>
>>Are you still having trouble with this code ?
>>
>>If so, could you please post the current file along
>>with the error messages ?
>>
>>
>>    
>>
>
>  
>
>>    
>>
>
>  
>
>------------------------------------------------------------------------
>
>--------------------Configuration: Reg2ImageConstruct - Win32 Debug--------------------
>Compiling...
>Reg2ImageConstruct.cxx
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(179) : error C2065: 'startF' : undeclared identifier
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(180) : error C2065: 'sizeF' : undeclared identifier
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(184) : error C2065: 'startM' : undeclared identifier
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(185) : error C2065: 'sizeM' : undeclared identifier
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(400) : error C2664: 'SetTransform' : cannot convert parameter 1 from 'class itk::SmartPointer<class itk::TranslationTransform<double,2> >' to 'class itk::Transform<double,3,3> *'
>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(403) : error C2440: 'initializing' : cannot convert from 'class itk::Image<float,3> *' to 'class itk::SmartPointer<class itk::Image<unsigned short,2> >'
>        No constructor could take the source type, or constructor overload resolution was ambiguous
>D:\Projects\Registration\TotalImageConstruct\Reg2ImageConstruct.cxx(406) : error C2664: 'SetSize' : cannot convert parameter 1 from 'const class itk::Size<2>' to 'const class itk::Size<3>'
>        No constructor could take the source type, or constructor overload resolution was ambiguous
>Error executing cl.exe.
>
>ALL_BUILD - 7 error(s), 0 warning(s)
>  
>
Hi Jessica,

Could you also post an example of the images that you are trying to 
register. We will have a look to see what might be going wrong.

Thanks,

Raghavendra