# How to create an image(like a line) and fused with 3D dicom images ?

**URL:** https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579
**Category:** Uncategorized
**Created:** [October 30, 2020, 4:20pm UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579 "2020-10-30T16:20:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.itk.org/user_avatar/discourse.itk.org/wulicheng/32/1390_2.png) [@wulicheng](https://discourse.itk.org/u/wulicheng)
#### Post date: [October 30, 2020, 4:20pm UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579/1 "2020-10-30T16:20:10Z")

</div>

like the title, In fact, I want to create an image and fused with vtkImageData.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [October 30, 2020, 9:28pm UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579/2 "2020-10-30T21:28:55Z")

</div>

[IterateLineThroughImage example](https://itk.org/ITKExamples/src/Core/Common/IterateLineThroughImage/Documentation.html) seems close to what you want.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [October 30, 2020, 9:30pm UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579/3 "2020-10-30T21:30:02Z")

</div>

There are many examples for reading DICOM, [ReadDICOMSeriesAndWrite3DImage](https://itk.org/ITKExamples/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/Documentation.html) is one of them.

---

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.itk.org/user_avatar/discourse.itk.org/wulicheng/32/1390_2.png) [@wulicheng](https://discourse.itk.org/u/wulicheng)
#### Post date: [November 2, 2020, 3:46am UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579/4 "2020-11-02T03:46:33Z")

</div>

yes, It is useful,thanks a lot! Do you know how to create an image of polygon of 2D.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [November 2, 2020, 2:24pm UTC](https://discourse.itk.org/t/how-to-create-an-image-like-a-line-and-fused-with-3d-dicom-images/3579/5 "2020-11-02T14:24:08Z")

</div>

Look into [Polygon Spatial Object](https://itk.org/Doxygen/html/classitk_1_1PolygonSpatialObject.html), in particular `IsInside*` methods.
