like the title, In fact, I want to create an image and fused with vtkImageData.
IterateLineThroughImage example seems close to what you want.
There are many examples for reading DICOM, ReadDICOMSeriesAndWrite3DImage is one of them.
yes, It is useful,thanks a lot! Do you know how to create an image of polygon of 2D.
Look into Polygon Spatial Object, in particular IsInside*
methods.