[Insight-users] VectorImage::ValueType should be TPixel or PixelType?
Karthik Krishnan
karthik.krishnan at kitware.com
Wed Jun 4 11:43:25 EDT 2008
Dear Ahmed Saad:
You are right. Thank you very much for the bug report. It was just
fixed in CVS. Please update
/cvsroot/Insight/Insight/Code/Common/itkVectorImage.h
new revision: 1.19; previous revision: 1.18
----------------------------
revision 1.19
date: 2008-06-04 15:38:35 +0000; author: karthik; state: Exp;
lines: +3 -3; commitid: hxBMBIbE2xJD5E5t;
BUG: Typedef of the ValueType was incorrect. It should typedef to the
facade pixel: VariableLengthVector<TPixel> rather than the internal
pixel type: TPixel
----------------------------
Thanks again
--
karthik
On Wed, Jun 4, 2008 at 8:52 AM, ahmed saad <ahmedalysaad2004 at yahoo.com> wrote:
> Hello,
> In itkVectorImage.h, I think the definition of the valuetype should be
>
> typedef PixelType ValueType ;
>
> instead of
>
> typedef TPixel ValueType ;
>
> I faced compilation errors when I tried to use the vectorimage with the
> ImageClassifierBase and DistanceToCentroidMembershipFunction as it seems
> they look for the valuetype of the input image which returns TPixel (i.e.
> float or double) instead of the VariableLengthVector< TPixel >
>
> your help is really appreciated.
>
> Best regards,
> Ahmed Saad
>
>
>
> _______________________________________________
> 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