[Insight-users] indices and iterators

David Fuentes fuentesdt at gmail.com
Tue Feb 3 17:49:48 EST 2009


I know this goes against the ITK philosophy, but I am interfacing
ITK w/ Petsc's Structured grid solvers. Are there any iterator classes
that provide i,j,k access to an ITK pixel buffer?

if not,

would I be able to use something like

data = Image->GetBufferPointer();

data[i+nwidth*j+(nwidth*nheight)*k] = ...


?


thanks,
df


More information about the Insight-users mailing list