# Why ResampleImageFilter is slow?

**URL:** https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217
**Category:** Uncategorized
**Created:** [August 21, 2018, 1:23pm UTC](https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217 "2018-08-21T13:23:34Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [August 29, 2018, 2:28pm UTC](https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217/14 "2018-08-29T14:28:02Z")

</div>

We could add streaming to `ResampleImageFilter` for linear transforms, i.e. MatrixWithOffset or transforms whose `IsLinear()` method returns `true`, by transforming the bounding box defined by the output `RequestedRegion` and setting the input `RequestedRegion` to the bounds area in voxel space in `ResampleImageFilter::GenerateInputRequestedRegion`.

---

_[View the full topic](https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217)._
