[Insight-developers] m_DataBuffer in itk::Neighborhood

Miller, James V (GE, Research) millerjv at crd.ge.com
Wed Sep 13 15:44:14 EDT 2006


Neighborhood::m_DataBuffer is an array local to the neighborhood to
store the values for the neighborhood.  When Neighborhoods are used for
convolution, the entries in m_DataBuffer would be the values of the
convolution kernel.  When Neighborhoods are used as iterators
(ConstNeighborhoodIterator is a subclass of Neighborhood), m_DataBuffer
holds pointers to pixels (so a 3x3 NeighborhooIterator would hold
pointers to 9 pixels).

The memory for m_DataBuffer is established in the
Neighborhood::Allocate() method.

The pixel pointers for the NeighborhoodIterators are set up in
ConstNeighborhoodIterator::SetPixelPointers()

 

-----Original Message-----
From: insight-developers-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-developers-bounces+millerjv=crd.ge.com at itk.org] On
Behalf Of Henning Meyer
Sent: Wednesday, September 13, 2006 3:51 AM
To: insight-developers at itk.org
Subject: [Insight-developers] m_DataBuffer in itk::Neighborhood

Hello,

just again, in hope to get a quick answer:
While trying to convert ImportImageContainer to use std::vector, I
stumbled upon . I don't get where m_DataBuffer is initialized, and what
it is used for. Is it a copy of the original image data? Or just a
proxy?

Please help....

Henning
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list