# Use itk MorphologicalContourInterpolator

**URL:** <https://discourse.itk.org/t/use-itk-morphologicalcontourinterpolator/6417>\
**Category:** Engineering\
**Tags:** itk\
**Created:** [January 26, 2024, 9:33am UTC](https://discourse.itk.org/t/use-itk-morphologicalcontourinterpolator/6417 "2024-01-26T09:33:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koishi](https://discourse.itk.org/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@koishi](https://discourse.itk.org/u/koishi)\
**Post date:** [January 26, 2024, 9:33am UTC](https://discourse.itk.org/t/use-itk-morphologicalcontourinterpolator/6417/1 "2024-01-26T09:33:02Z")

</div>

I am a collage student studying vtk and itk. Now I have two slices of vtkImageData, what method or class can I use to transform these two vtkImageData to itk::image type \<unsigned , 3\> and put into MorphologicalContourInterpolator.  
Thanks for your help!

My image type is :

 ![{91Q85Y%(I55{1MT~9R$9PW_tmb](https://discourse.itk.org/uploads/default/original/2X/6/6cc99cc2ff2a8bbb465ddd1776cf4be07c52aabc.png)  
 ![my_type2](https://discourse.itk.org/uploads/default/original/2X/e/ef5c1a1b03dbdb895e40dd6c1ee280ec346de02e.png)  
(image1 is a 2 binary image, I want to use image1 or image2)

The target type is:

 ![tgt](https://discourse.itk.org/uploads/default/original/2X/9/95126a0274f2f169f9dc4defab2ce0db128adae0.jpeg)
