[vtkusers] vtkImageIterator on a small extent

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue May 13 08:33:19 EDT 2003


Hi all,
	As I didn't get any answer on my previous email:
http://vtk.org/pipermail/vtkusers/2003-April/017650.html
I am reposting it again.

	I guess it wasn't read as it was too long. So my question is now: can 
someone give me a short example on how to use vtkImageIterator on a 
sub-region of an image.

	I also tried to use *vtkExtractVOI* but I don't know how to paste back 
the extracted image.

	Finally an image is always better than 100 words. Let call the whole 
image A. What I want is to fill the B region in green, C in red, D in 
blue... How can I achieve this.

-----------------------------------
| A                               |
|                                 |
|   --------                      |
|   |  B   |         --------     |
|   --------         |   E  |     |
|       --------     --------     |
|       |  C   | --------         |
|       -------- |  D   |         |
|                --------         |
|                                 |
-----------------------------------

Thanks a lot,
mathieu




More information about the vtkusers mailing list