# Transfinite interpolation

**URL:** https://discourse.itk.org/t/transfinite-interpolation/3079
**Category:** Beginner Questions
**Created:** [May 16, 2020, 4:54am UTC](https://discourse.itk.org/t/transfinite-interpolation/3079 "2020-05-16T04:54:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![basal](https://discourse.itk.org/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@basal](https://discourse.itk.org/u/basal)
#### Post date: [May 16, 2020, 4:54am UTC](https://discourse.itk.org/t/transfinite-interpolation/3079/1 "2020-05-16T04:54:18Z")

</div>

Hi,  
I want to use transfinite interpolation to fill the region inside the image. I want to know if there is any function or code in ITK that could do this? I already had the positions of the white points.  
Thanks.  
 ![photo_2020-05-15_21-46-47](https://discourse.itk.org/uploads/default/original/2X/c/cdb7846dc9d35b7dc66baec5efc6bf7f13b1b433.jpeg)

---

<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: [May 17, 2020, 5:38pm UTC](https://discourse.itk.org/t/transfinite-interpolation/3079/2 "2020-05-17T17:38:27Z")

</div>

If these points are in order (clockwise or counter-clockwise), then you could make a poly-line out of them. This [discussion](https://insight-users.itk.narkive.com/rmDqTuoA/marching-squares-need-to-go-from-2d-binary-images-2d-meshes) could be of interest to you. Current [PolylineMask2DImageFilter](https://itk.org/Doxygen/html/classitk_1_1PolylineMask2DImageFilter.html)’s doxygen page.
