[Insight-developers] Adding ValueType to itk::Image
Luis Ibanez
luis.ibanez@kitware.com
Thu, 21 Feb 2002 15:06:04 -0500
I could be convenient to add this type to itk::PointSet too,
again as ValueType = PixelType.
So it can be used when PointSet are connected via the
adaptors the the Statistical classes.
Luis
--------------------------------------------
Miller, James V (CRD) wrote:
>Adding ValueType to be same as PixelType is fine in Image.
>
>
>-----Original Message-----
>From: Jisung Kim [mailto:bahrahm@yahoo.com]
>Sent: Thursday, February 21, 2002 2:40 PM
>To: insight-dev-list
>Subject: [Insight-developers] Adding ValueType to itk::Image
>
>
>Hi.
>
>While I was working with Sayan to create common base
>class for SampleClassifier and ImageClassifier. We
>encountered a problem with a typedef. Currently, any
>Sample classes has MeasurementVectorType for its
>element type and Image class has PixelType for the
>same purpose. The ClassifierBase class needs a typedef
>for MembershipFunction and MembershipFunction is
>templated over MeasurementVector. By adding ValueType
>(alias of MeasurementVectorTyp in Sample, and
>PixelType in Image), we can remove all template
>arguments except the data container class type (Sample
>or Image).
>
>I think ValueType might not mean anything in the
>context of an image. However, if we think itk::Image
>as a special case (accessible through n-dimensional
>index) of generic container, I think having ValueType
>in Image class makes perfect sense.
>
>Having ValueType in Image makes life of me and Sayan
>easier. What is you opinion on this?
>
>Thank you,
>
>Jisung.
>
>
>=====
>Jisung Kim
>bahrahm@yahoo.com
>106 Mason Farm Rd.
>129 Radiology Research Lab., CB# 7515
>Univ. of North Carolina at Chapel Hill
>Chapel Hill, NC 27599-7515
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Sports - Coverage of the 2002 Olympic Games
>http://sports.yahoo.com
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
>