[Insight-developers] Handling Multiband Images
Miller, James V (CRD)
millerjv at crd.ge.com
Thu Sep 28 16:39:40 EDT 2000
itkVector uses a vnl_vector_fixed as its implementation, which is a fixed length vector. Another
itkVector class could be made to use the standard vnl_vector which can vary in size.
The only issue is that this requires runtime checking for sizes. One of the "design decisions" with
itk was to do as much as possible at compile time. But if we offer this second version of itkVector
as an option (as long as it is not the only option) then I think we are still satisfying the goals.
So there shouldn't be a problem adding another itkVector class, maybe call it itkVectorN? itkNVector?
?
-----Original Message-----
From: Sayan Pathak [mailto:spathak at statsci.com]
Sent: Thursday, September 28, 2000 2:47 PM
To: insight-developers at public.kitware.com
Subject: [Insight-developers] Handling Multiband Images
Hi,
I am treating each pixel of a multiband dataset as a vector. The itkVector.h
provides me with the necessary set/get and basic operations such as the +
/ - operations. However, it requires that the vectors be statically
allocated.
This is not possible in many cases such as with multiband data sets. In such
image sets, the number of bands in an data set is only available during
runtime. While using std::vectors allow dynamic allocation, it does not
allow setvector/getvector type operations which are very useful for image
processing tasks.
Are there any plans to extend the current itk::vector class implementation
to support dynamic allocation. Or if someone has already figured out a way
to address this issue, please let me know.
Thanks,
Sayan
-----------------------
Sayan D. Pathak,
MathSoft, Inc.
1700 Westlake Ave. N
Seattle, WA 98109
206.283.8802 x 298
206.283.6310 (fax)
-----------------------
_______________________________________________
Insight-developers mailing list
Insight-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list