# Latest

**URL:** https://discourse.itk.org/latest.md?page=93

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

**Page:** 94

---

## [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…

---

## [Accessing a possibly non-existent function in a ImageFileReader object](https://discourse.itk.org/t/accessing-a-possibly-non-existent-function-in-a-imagefilereader-object/1462)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 5\
**Last updated:** [December 6, 2018, 10:25pm UTC](https://discourse.itk.org/t/accessing-a-possibly-non-existent-function-in-a-imagefilereader-object/1462 "2018-12-06T22:25:59Z")

</div>

Suppose that I create reader based ImageFileReader, and I want to do reader-\>SetX(true). But depending upon the file that was passed into ImageFileReader, “SetX” might not exist. Is it possible to get this to work wit…

---

## [What is the right way (and what is the right time) to break backwards compatibility?](https://discourse.itk.org/t/what-is-the-right-way-and-what-is-the-right-time-to-break-backwards-compatibility/1460)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 4\
**Last updated:** [December 6, 2018, 9:15pm UTC](https://discourse.itk.org/t/what-is-the-right-way-and-what-is-the-right-time-to-break-backwards-compatibility/1460 "2018-12-06T21:15:57Z")

</div>

Just as the title says. Should you print a depreciation warning, for how long? What about when the code changes don’t break the old methods, just make the results they’re getting wrong? Do you explicitly break compilati…

---

## [Intercepting an ImageIO Factory Read to modify data in the buffer](https://discourse.itk.org/t/intercepting-an-imageio-factory-read-to-modify-data-in-the-buffer/1461)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 2\
**Last updated:** [December 6, 2018, 8:40pm UTC](https://discourse.itk.org/t/intercepting-an-imageio-factory-read-to-modify-data-in-the-buffer/1461 "2018-12-06T20:40:35Z")

</div>

Continuing my work on the MINCIO code, I’ve realized that the coordinate system corrections I do to vectors in TransformMINC should really be happening right at file loading. My current implementation is this code: W…

---

## [Distance map filter with speed image? Computing the minimal path to boundary with obstacles.](https://discourse.itk.org/t/distance-map-filter-with-speed-image-computing-the-minimal-path-to-boundary-with-obstacles/1457)

<div class="topic-metadata">

**Author:** [@aWilson41](https://discourse.itk.org/u/aWilson41)\
**Replies:** 3\
**Last updated:** [December 5, 2018, 7:23pm UTC](https://discourse.itk.org/t/distance-map-filter-with-speed-image-computing-the-minimal-path-to-boundary-with-obstacles/1457 "2018-12-05T19:23:53Z")

</div>

I’m looking for an operation (hopefully an itk filter) that computes the minimal distance to a boundary/surface with obstacles (like how the speed function is used in fast marching). Basically I have two polygons. I wan…

---

## [Possible error in itk::VectorContainer::End() function](https://discourse.itk.org/t/possible-error-in-itk-end-function/1458)

<div class="topic-metadata">

**Author:** [@Johannes\_Keustermans](https://discourse.itk.org/u/Johannes_Keustermans)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 4:55pm UTC](https://discourse.itk.org/t/possible-error-in-itk-end-function/1458 "2018-12-05T16:55:03Z")

</div>

Hi, The current implementation of this function (the constant version) is as follows: “return ConstIterator( this-\>VectorType::size() - 1, this-\>VectorType::end() );” But should this not be “return ConstIterator( thi…

---

## [Two ways to get an accepted patch into the master branch?](https://discourse.itk.org/t/two-ways-to-get-an-accepted-patch-into-the-master-branch/1456)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 3\
**Last updated:** [December 4, 2018, 7:28pm UTC](https://discourse.itk.org/t/two-ways-to-get-an-accepted-patch-into-the-master-branch/1456 "2018-12-04T19:28:53Z")

</div>

Just noticed there’s a slight difference between the way @matt.mccormick and @hjmjohnson moved a commit from a pull request of mine into the master: https://github.com/InsightSoftwareConsortium/ITK/commits/master With M…

---

## [How to convert a anisotropic to isotropic and then back to anisotropic?](https://discourse.itk.org/t/how-to-convert-a-anisotropic-to-isotropic-and-then-back-to-anisotropic/1451)

<div class="topic-metadata">

**Author:** [@mark\_john](https://discourse.itk.org/u/mark_john)\
**Replies:** 2\
**Last updated:** [December 4, 2018, 2:13pm UTC](https://discourse.itk.org/t/how-to-convert-a-anisotropic-to-isotropic-and-then-back-to-anisotropic/1451 "2018-12-04T14:13:27Z")

</div>

Hello, I have a reference image that is isotropic (1mm x 1mm x 1mm). A target image is anisotropic (0.5 mm x0.5mmx2mm). I want to convert the target image to isotropic that same with the reference image. After obtaining …

---

## [Consistent Export Symbol Proceedures: Request for comment.](https://discourse.itk.org/t/consistent-export-symbol-proceedures-request-for-comment/1453)

<div class="topic-metadata">

**Author:** [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)\
**Replies:** 4\
**Last updated:** [December 2, 2018, 11:47pm UTC](https://discourse.itk.org/t/consistent-export-symbol-proceedures-request-for-comment/1453 "2018-12-02T23:47:52Z")

</div>

= Background Various early attempts to fix problems with dynamic\_casting seems to have resulted in various approaches to how exporting symbols is defined in macros. = My understanding We should constently use the pa…

---

## [PixelAccessor or NeighborhoodAccessor?](https://discourse.itk.org/t/pixelaccessor-or-neighborhoodaccessor/1441)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 8\
**Last updated:** [November 30, 2018, 8:10pm UTC](https://discourse.itk.org/t/pixelaccessor-or-neighborhoodaccessor/1441 "2018-11-30T20:10:42Z")

</div>

Last Tuesday I implemented another modern C++ range of iterators: ImageRange should support iterating over all pixels of an image buffer. (Still work in progress – WIP.) Now I wonder if I chose the right accessor to acc…

---

## [itk::NeighborhoodRange: a new class for efficient modern C++ style iteration](https://discourse.itk.org/t/itk-neighborhoodrange-a-new-class-for-efficient-modern-c-style-iteration/833)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 76\
**Last updated:** [November 29, 2018, 9:17pm UTC](https://discourse.itk.org/t/itk-neighborhoodrange-a-new-class-for-efficient-modern-c-style-iteration/833 "2018-11-29T21:17:36Z")

</div>

Hereby I would like to draw your attention to a class (template) that I just submitted: ENH: Added NeighborhoodRange for efficient modern C++ style iteration. It aims to support modern C++ style iteration on a pixel neig…

---

## [Build Error MITK 2016.11: ITK targets not defined](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626)

<div class="topic-metadata">

**Author:** [@norb](https://discourse.itk.org/u/norb)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 7:08pm UTC](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626 "2018-11-27T19:08:43Z")

</div>

Hello, as Dzenan suggests in the mailing list, i write my question here to possibly get more attention or answers :slight\_smile: Original post on mailing list: Hello, I tried to build MITK (v2016.11) from source wit…

---

## [Best practices for initialization before optimizer-based 2D registration](https://discourse.itk.org/t/best-practices-for-initialization-before-optimizer-based-2d-registration/1433)

<div class="topic-metadata">

**Author:** [@take5v](https://discourse.itk.org/u/take5v)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 3:51pm UTC](https://discourse.itk.org/t/best-practices-for-initialization-before-optimizer-based-2d-registration/1433 "2018-11-27T15:51:55Z")

</div>

Hi, Since optimizer-based registration is performed in physical coordinates it is crucial to setup coarse initial transformation. For some medical images, this transformation could be calculated with image origin, spac…

---

## [Planning for ITK 5.0 Beta 2 and GitHub Milestones](https://discourse.itk.org/t/planning-for-itk-5-0-beta-2-and-github-milestones/1443)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [November 27, 2018, 4:08am UTC](https://discourse.itk.org/t/planning-for-itk-5-0-beta-2-and-github-milestones/1443 "2018-11-27T04:08:18Z")

</div>

Hi folks, I am planning to release ITK 5 Beta 2 on December 18th with a focus on the GitHub transition. A GitHub Milestone was created to help organize issues for this release. If you plan on working on an issue for th…

---

## [Voxel wise multiplication of vector images and vector constants](https://discourse.itk.org/t/voxel-wise-multiplication-of-vector-images-and-vector-constants/1426)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 4\
**Last updated:** [November 26, 2018, 8:17pm UTC](https://discourse.itk.org/t/voxel-wise-multiplication-of-vector-images-and-vector-constants/1426 "2018-11-26T20:17:54Z")

</div>

I’m working on cleaning up the MINC support (IO and Transforms) in ITK, and my last step is to properly handle the MINC non-linear deformation files. The major change is to convert the coordinate system every single voxe…

---

## [Link issue with dynamic libraries](https://discourse.itk.org/t/link-issue-with-dynamic-libraries/1434)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 1\
**Last updated:** [November 26, 2018, 12:59am UTC](https://discourse.itk.org/t/link-issue-with-dynamic-libraries/1434 "2018-11-26T00:59:37Z")

</div>

Hi, Someone has (quite) recently reported on the RTK mailing list that RTK does not compile with ITK on the latest 4.13.1 release when shared libraries are used. I can reproduce the problem (with 4.12, 4.13 and 4.13.1) …

---

## [Orientation in Diffusion Tensor Imaging file (DTI) .nii](https://discourse.itk.org/t/orientation-in-diffusion-tensor-imaging-file-dti-nii/1437)

<div class="topic-metadata">

**Author:** [@yurie](https://discourse.itk.org/u/yurie)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 3:40pm UTC](https://discourse.itk.org/t/orientation-in-diffusion-tensor-imaging-file-dti-nii/1437 "2018-11-23T15:40:01Z")

</div>

Hello Everyone! I have two .nii files, one containing a tumor segmentation, and one contains a DTI dataset. These two datasets have the same orientations/offsets in their metadata. I run numerical simulations using the …

---

## [Mutex cleanup](https://discourse.itk.org/t/mutex-cleanup/1183)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 20\
**Last updated:** [November 23, 2018, 3:27pm UTC](https://discourse.itk.org/t/mutex-cleanup/1183 "2018-11-23T15:27:34Z")

</div>

Should we remove MutexLock and friends (MutexLockHolder, ConditionVariable), and replace them by C++11 equivalents (std::mutex, std::scoped\_lock, std::condition\_variable)? A bump in major version number coupled with a s…

---

## [Aligning to center location and orientation](https://discourse.itk.org/t/aligning-to-center-location-and-orientation/1439)

<div class="topic-metadata">

**Author:** [@ZA\_S](https://discourse.itk.org/u/ZA_S)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 2:55pm UTC](https://discourse.itk.org/t/aligning-to-center-location-and-orientation/1439 "2018-11-23T14:55:42Z")

</div>

Hello , I have head CT volumes and I would like to align each volume to the centre of the volume and same head orientation. Instead of doing registration, I am looking for something just rotating and moving to the centr…

---

## [Python library CMake variable names](https://discourse.itk.org/t/python-library-cmake-variable-names/1424)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Replies:** 5\
**Last updated:** [November 22, 2018, 1:13am UTC](https://discourse.itk.org/t/python-library-cmake-variable-names/1424 "2018-11-22T01:13:58Z")

</div>

Folks, my CMake is showing the variables names PYTHON\_DEBUG\_LIBRARY and PYTHON\_LIBRARY\_DEBUG, which I find meaning pretty much the same thing or confusing at least. As far as I understand, the former is used by the VNL …

---

## [writing .png image not working](https://discourse.itk.org/t/writing-png-image-not-working/1431)

<div class="topic-metadata">

**Author:** [@hothao](https://discourse.itk.org/u/hothao)\
**Replies:** 1\
**Last updated:** [November 21, 2018, 2:58pm UTC](https://discourse.itk.org/t/writing-png-image-not-working/1431 "2018-11-21T14:58:34Z")

</div>

Hi everyone! I’m trying to write Cannyfilter image as a .png image. It has no bugs. But it does not work. Here is the message: itk::ExceptionObject (000000926B4FD6A0) Location: "void \_\_cdecl itk::PNGImageIO::WriteSlic…

---

## [Current Contributing.md missing PR step?](https://discourse.itk.org/t/current-contributing-md-missing-pr-step/1430)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 1:39pm UTC](https://discourse.itk.org/t/current-contributing-md-missing-pr-step/1430 "2018-11-21T13:39:57Z")

</div>

Hello, I just pushed my first bug-fix to ITK via github instead of Gerrit. After I did a git review-push --force the branch was present in fork https://github.com/spinicist/ITK/tree/bug/bruker\_int but I could not a PR i…

---

## [New for ITK 5.0: IndexRange, ZeroBasedIndexRange, ImageRegionIndexRange](https://discourse.itk.org/t/new-for-itk-5-0-indexrange-zerobasedindexrange-imageregionindexrange/1412)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 8\
**Last updated:** [November 20, 2018, 8:11pm UTC](https://discourse.itk.org/t/new-for-itk-5-0-indexrange-zerobasedindexrange-imageregionindexrange/1412 "2018-11-20T20:11:15Z")

</div>

FYI, Last weekend, @matt.mccormick merged the itk::Experimental::IndexRange template class that I proposed, making it available for ITK 5.0 :drum: :drum: :drum: IndexRange is a modern C++ range of iterators. It shoul…

---

## [Numpy bridge with image vectors](https://discourse.itk.org/t/numpy-bridge-with-image-vectors/1422)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 10:42am UTC](https://discourse.itk.org/t/numpy-bridge-with-image-vectors/1422 "2018-11-20T10:42:20Z")

</div>

Hi, It seems to me that the numpy bridge does not work for “itk::Image\<itk::Vector” types. For example, if I (manually) run the test test\_NumPyBridge\_itkVectorPixelImage, the convertedvectorImage is not of the same typ…

---

## [Installing itk-vtkglue module using Pip](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418)

<div class="topic-metadata">

**Author:** [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Replies:** 7\
**Last updated:** [November 19, 2018, 4:29pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418 "2018-11-19T16:29:39Z")

</div>

Hi all, I am trying to install the itk-vtkglue module using pip, as I would like to use the transform inverse functions from vtk on some .nrrd data. However, when I use “python -m pip install itk-vtkglue” I get the foll…

---

## [Centered Transforms in examples](https://discourse.itk.org/t/centered-transforms-in-examples/1423)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 2:43pm UTC](https://discourse.itk.org/t/centered-transforms-in-examples/1423 "2018-11-19T14:43:46Z")

</div>

The set of transformed prefix with “Centered” have the center of rotation parameter as an optimizable parameter, where the normal transforms have the center of rotation as a fixed parameter. It is my understanding that t…

---

## [Build error with SimpleFastMutexLock](https://discourse.itk.org/t/build-error-with-simplefastmutexlock/1393)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 11\
**Last updated:** [November 18, 2018, 11:25pm UTC](https://discourse.itk.org/t/build-error-with-simplefastmutexlock/1393 "2018-11-18T23:25:10Z")

</div>

In trying to build I get this error in generating one particular XML file: \[ 33%\] Generating …/…/itkVnlForwardFFTImageFilter.xml /home/melrobin/packages/ITK/build/Wrapping/itkFFTWGlobalConfiguration.cxx:38:18: error: …

---

## [Build all Header files of ITK into python.](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228)

<div class="topic-metadata">

**Author:** [@Tirupathi\_Rao\_N](https://discourse.itk.org/u/Tirupathi_Rao_N)\
**Replies:** 6\
**Last updated:** [November 18, 2018, 12:37am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228 "2018-11-18T00:37:03Z")

</div>

Hello Everyone, I want to use ITK,VTK(ITKVTKGLUE) in my python code, but there is no such filter in ITK and VTK python. So I started building up all header files of ITK and VTK into python, while building it I’m having…

---

## [Performing ABAS and MBS segmentations by ITK](https://discourse.itk.org/t/performing-abas-and-mbs-segmentations-by-itk/1292)

<div class="topic-metadata">

**Author:** [@rasoul](https://discourse.itk.org/u/rasoul)\
**Replies:** 16\
**Last updated:** [November 17, 2018, 3:26pm UTC](https://discourse.itk.org/t/performing-abas-and-mbs-segmentations-by-itk/1292 "2018-11-17T15:26:27Z")

</div>

Hi every one, I want to start a project which is contouring CT images using Atlas Based Auto Segmentation (ABAS) and Model Based Segmentation (MBS). As you probably know most of the state of the art contouring softwares…

---

## [Reinitialize seed parameter in image similarity metrics](https://discourse.itk.org/t/reinitialize-seed-parameter-in-image-similarity-metrics/1420)

<div class="topic-metadata">

**Author:** [@c.spanakis83](https://discourse.itk.org/u/c.spanakis83)\
**Replies:** 0\
**Last updated:** [November 16, 2018, 10:10am UTC](https://discourse.itk.org/t/reinitialize-seed-parameter-in-image-similarity-metrics/1420 "2018-11-16T10:10:34Z")

</div>

Hello. In the similarity metrics of ITK, we can use a smaller number of spatial samples used for estimation of similarity, hoping to reduce the time needed for a single estimation. In case of not using the UseAllPixelOn(…

[Previous page](https://discourse.itk.org/latest.md?page=92)

[Next page](https://discourse.itk.org/latest.md?page=94)
