# \#filter

**URL:** https://discourse.itk.org/tag/filter/80.md

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

---

## [Strange output from RegionOfInterestImageFilter](https://discourse.itk.org/t/strange-output-from-regionofinterestimagefilter/7657)

<div class="topic-metadata">

**Author:** [@Vasily\_Postnicov](https://discourse.itk.org/u/Vasily_Postnicov)\
**Replies:** 3\
**Last updated:** [November 6, 2025, 3:14pm UTC](https://discourse.itk.org/t/strange-output-from-regionofinterestimagefilter/7657 "2025-11-06T15:14:38Z")

</div>

After applying RegionOfInterestImageFilter to a two-dimensional image like so: #include \<itkImage.h\> #include \<itkRegionOfInterestImageFilter.h\> #include \<itkImageFileReader.h\> #include \<itkImageFileWriter.h\> #include…

---

## [Why should a Composite Filter disconnect its input?](https://discourse.itk.org/t/why-should-a-composite-filter-disconnect-its-input/5410)

<div class="topic-metadata">

**Author:** [@SteveRobbins](https://discourse.itk.org/u/SteveRobbins)\
**Replies:** 3\
**Last updated:** [October 14, 2022, 8:55pm UTC](https://discourse.itk.org/t/why-should-a-composite-filter-disconnect-its-input/5410 "2022-10-14T20:55:04Z")

</div>

Hello, Working in C++ ITK 5.2.1, I have been writing a few filter classes, following the guidance of Chapter 8 (“How To Write A Composite Filter”) of the ITK guide book. I think I have a reasonable grasp of the materia…

---

## [Reading, Filtering and Writing in multiple threads](https://discourse.itk.org/t/reading-filtering-and-writing-in-multiple-threads/4503)

<div class="topic-metadata">

**Author:** [@Keyn34](https://discourse.itk.org/u/Keyn34)\
**Replies:** 3\
**Last updated:** [October 30, 2021, 1:56pm UTC](https://discourse.itk.org/t/reading-filtering-and-writing-in-multiple-threads/4503 "2021-10-30T13:56:02Z")

</div>

Hello everyone ( again :D), Are there any resources or tips on running a function like this void multiStaple(std::vector\<std::string\> inputfiles) { // itk::MultiLabelSTAPLEImageFilter Type FilterType::Pointer …

---

## [Could not run basic example code from ITK Resample Image filter](https://discourse.itk.org/t/could-not-run-basic-example-code-from-itk-resample-image-filter/4071)

<div class="topic-metadata">

**Author:** [@fonis](https://discourse.itk.org/u/fonis)\
**Replies:** 1\
**Last updated:** [April 26, 2021, 8:57pm UTC](https://discourse.itk.org/t/could-not-run-basic-example-code-from-itk-resample-image-filter/4071 "2021-04-26T20:57:20Z")

</div>

Using ITK v5.2. The basic resample filter example fails. Error: “Requested region is (at least partially) outside the largest possible region.” The code below is basically a cleaned up version of ResampleImageFilter.c…

---

## [Was itk::simple::AdaptiveHistogramEqualizationImageFilter ever multi-threaded?](https://discourse.itk.org/t/was-itk-adaptivehistogramequalizationimagefilter-ever-multi-threaded/3424)

<div class="topic-metadata">

**Author:** [@gfleishman](https://discourse.itk.org/u/gfleishman)\
**Replies:** 1\
**Last updated:** [September 2, 2020, 1:39pm UTC](https://discourse.itk.org/t/was-itk-adaptivehistogramequalizationimagefilter-ever-multi-threaded/3424 "2020-09-02T13:39:10Z")

</div>

Would like to run this filter on some real big images: ~ 8K x 10K x 2K voxels. Have a cluster and can multi-thread as much as necessary. Per: https://itk.org/pipermail/community/2015-October/010010.html, was this filte…

---

## [Multiply vector with scalar value](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 2\
**Last updated:** [September 24, 2019, 2:32pm UTC](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259 "2019-09-24T14:32:23Z")

</div>

Hello, i want to multiply either a vector with a single scalar (s \* {v\_0,...,v\_n} = {s \* v\_0,...,s \* v\_n}) or a elementwise multiplication of two vectors ({w\_0,...,w\_n} \* {v\_0,...,v\_n} = {w\_0 \* v\_0,..., w\_n \* v\_n}). Th…

---

## [Python filter example](https://discourse.itk.org/t/python-filter-example/1853)

<div class="topic-metadata">

**Author:** [@finetjul](https://discourse.itk.org/u/finetjul)\
**Replies:** 3\
**Last updated:** [May 9, 2019, 3:44pm UTC](https://discourse.itk.org/t/python-filter-example/1853 "2019-05-09T15:44:15Z")

</div>

Hi, I would like to write an ITK filter in Python. Is there an example somewhere ? Thanks, Julien.

---

## [how to apply kernel in ConvolutionImageFilter](https://discourse.itk.org/t/how-to-apply-kernel-in-convolutionimagefilter/1741)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 4\
**Last updated:** [April 3, 2019, 7:53pm UTC](https://discourse.itk.org/t/how-to-apply-kernel-in-convolutionimagefilter/1741 "2019-04-03T19:53:40Z")

</div>

Hello, I want to apply an image (kernel) to an input Image, but I am not sure how can I apply that correctly. I have attached the sample of my code here: #include “itkImageFileReader.h” #include “itkImageFileWriter.…

---

## [Cannot open source file "itkMultiScaleHessianBasedMeasureImageFilter.h"](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 9\
**Last updated:** [April 2, 2019, 8:14pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726 "2019-04-02T20:14:45Z")

</div>

Hello, I get an error in Visual Studio 2017 when I am trying to include itkMultiScaleHessianBasedMeasureImageFilter header file. When I try to build the solution I get the following error Thanks in advance, Helen

---

## [Convolution Filter 3d Image](https://discourse.itk.org/t/convolution-filter-3d-image/1730)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 4:23pm UTC](https://discourse.itk.org/t/convolution-filter-3d-image/1730 "2019-04-02T16:23:13Z")

</div>

Hello, I want to filter my 3d Image with a kernel(9x9x9 for example). What is the best function to use for this? ConvolutionImageFilter? Thanks a lot for your help, Eleni

---

## [How to apply a .vtk file as mask to my 3d Image](https://discourse.itk.org/t/how-to-apply-a-vtk-file-as-mask-to-my-3d-image/1717)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 1:45pm UTC](https://discourse.itk.org/t/how-to-apply-a-vtk-file-as-mask-to-my-3d-image/1717 "2019-03-29T13:45:09Z")

</div>

Hello, I have a .vtk model that I have created and I want to apply that as a mask to my 3d Image. Do you have any idea how can I approach that? Thanks, Eleni

---

## [Filter DICOM images with a 3d vtk model](https://discourse.itk.org/t/filter-dicom-images-with-a-3d-vtk-model/1662)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 1\
**Last updated:** [March 13, 2019, 6:28pm UTC](https://discourse.itk.org/t/filter-dicom-images-with-a-3d-vtk-model/1662 "2019-03-13T18:28:17Z")

</div>

Hello all, I would like to filter my dicom files using vtk model. Is that possible? If not is there any other workaround? Thanks a lot, Helen

---

## [Filter output as input for the same filter](https://discourse.itk.org/t/filter-output-as-input-for-the-same-filter/1464)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 2:41pm UTC](https://discourse.itk.org/t/filter-output-as-input-for-the-same-filter/1464 "2018-12-10T14:41:29Z")

</div>

Hello, just a question of good practice: It is okay to use the output of a filter as input for the same filter instance? (non-functional) Example: auto AddFilter = itk::AddImageFilter::New(); AddFilter-\>SetInput1(Ima…
