[vtkusers] Copy matrix fast for VTK
Italo Ribeiro
italo.ribeiro at gmail.com
Thu Dec 16 13:53:36 EST 2010
Hi,
I have one matrix 512x512x108 and i want copy the values of all indices for
any VTK data type but i dont want do:
for(int i = 0; i<512; i++){
for(int j=0; j<512; j++){
for(int k=0; k<108; k++){
imageData->SetScalarComponentFromFloat(i, j, k, 0,
matrix[i][j][k]);
}
}
}
VTK have one way to do copy like imageData->DeepCopy(matrix) ?
--
Ítalo Mendes
ogre.irados.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101216/611ea62b/attachment.htm>
More information about the vtkusers
mailing list