[Insight-users] to divide images
David Llanos
gva02 at elai.upm.es
Mon May 24 12:29:15 EDT 2004
Hi Zach,
Good news! I have been able to eliminate the errors, including the bookstore
directly in my code and modifying it in some parts.
Indeed, now it compiles and it executes perfectly, but I continue without
obtaining clear results: It is appreciated clearly like it get obtaining
each object and it leaves creating their corresponding image, since the file
of exit of the image goes changing size according to the object. But what I
go obtaining is only images black.
I attach you the new code, the original image and the four exit images that
I obtain. Maybe to you not you of this problem, or maybe it finds that to
modify something of the code of the function GetsMasks, in which case it
would be I of great favor your help.
Thanks in advange and regards,
David.
----- Original Message -----
From: "Zachary Pincus" <zpincus at stanford.edu>
To: "David Llanos" <gva02 at elai.upm.es>
Cc: "ITK" <insight-users at itk.org>
Sent: Thursday, May 20, 2004 7:07 PM
Subject: Re: [Insight-users] to divide images
> 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 at stanford.edu>
> > To: "David Llanos" <gva02 at 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>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etiquetar.cxx
Type: application/octet-stream
Size: 9637 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/etiquetar-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binar.png
Type: image/png
Size: 1211 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/binar-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submascara1.png
Type: image/png
Size: 400 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/submascara1-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submascara2.png
Type: image/png
Size: 433 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/submascara2-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submascara3.png
Type: image/png
Size: 298 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/submascara3-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submascara4.png
Type: image/png
Size: 405 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040524/05fa6d13/submascara4-0001.png
More information about the Insight-users
mailing list