[Insight-users] to divide images
Zachary Pincus
zpincus@stanford.edu
Thu May 20 18:07:17 EDT 2004
David,
Unfortunately, this project compiles perfectly for me.
(I did have to add a "SET(ITK_DIR "my/path/to/itk/")" command in the
CMakeLists, but that shouldn't matter. If cmake couldn't find the itk
dir, it would complain and you'd never get the makefiles or visual
studio project with which to compile.)
It appears that your compiler can't find the appropriate
pointer-casting methods for smart pointers to images. Yet you've
included the proper headers. You might want to CVS update again to see
if maybe you got a bad copy of itkImage.h or something?
Sorry I can't be more helpful...
Zach
On May 20, 2004, at 7:49 AM, David Llanos wrote:
> Hi Zach,
>
> I also hope we can get that this works. Once again, thank you for your
> attention. Here I attach you all the files of my application, and next
> the
> errors:
>
> ------------------------------------------------------
> Compiling...
> etiquetar.cxx
> E:\Etiquetar\etiquetar.cxx(25) : error C2665: 'GetMasks' : none of the
> 2
> overloads can convert parameter 1 from type 'class itk::Image<unsigned
> char,2> *'
> E:\Etiquetar\etiquetar.cxx(33) : error C2664: 'SetInput' : cannot
> convert
> parameter 1 from 'const class itk::SmartPointer<class
> itk::Image<unsigned
> char,2> >' to 'const class itk::Image<unsigned char,2> *'
> No user-defined-conversion operator available that can perform
> this
> conversion, or the operator cannot be called
> Error executing cl.exe.
>
> etiquetar.exe - 2 error(s), 0 warning(s)
> ------------------------------------------------------
>
> Regards,
>
> David.
>
> ----- Original Message -----
> From: "Zachary Pincus" <zpincus@stanford.edu>
> To: "David Llanos" <gva02@elai.upm.es>
> Sent: Wednesday, May 19, 2004 9:26 PM
> Subject: Re: [Insight-users] to divide images
>
>
>> David,
>>
>> This is quite odd, indeed. Could you send me again the *exact* code
>> you're trying to compile, along with the errors?
>>
>> I am very surprised that it won't compile for you. Hopefully we can
>> get
>> this working.
>>
>> Zach
> <GetConnectedMasks.h><GetConnectedMasks.txx><binar.png><etiquetar.cxx><
> CMakeLists.txt>
More information about the Insight-users
mailing list