# Latest

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

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

**Page:** 8

---

## [Could Someone Give me Advice on Optimizing Image Resampling in ITK for Large Datasets?](https://discourse.itk.org/t/could-someone-give-me-advice-on-optimizing-image-resampling-in-itk-for-large-datasets/7354)

<div class="topic-metadata">

**Author:** [@roberrttt](https://discourse.itk.org/u/roberrttt)\
**Replies:** 3\
**Last updated:** [December 17, 2024, 8:03pm UTC](https://discourse.itk.org/t/could-someone-give-me-advice-on-optimizing-image-resampling-in-itk-for-large-datasets/7354 "2024-12-17T20:03:57Z")

</div>

Hello there, I am currently working on a project involving the processing of high resolution medical images; and I have run into some performance concerns when resampling large datasets using ITK. Specifically; I am usi…

---

## [Negative index ?](https://discourse.itk.org/t/negative-index/7333)

<div class="topic-metadata">

**Author:** [@Oodini](https://discourse.itk.org/u/Oodini)\
**Replies:** 6\
**Last updated:** [December 17, 2024, 4:09am UTC](https://discourse.itk.org/t/negative-index/7333 "2024-12-17T04:09:27Z")

</div>

Hello, I’d like to set the position (0,0) at the center of an image. That would imply using negative indexes. Is it possible (that could be: the \[\] operator may be overloaded) ? Thanks.

---

## [Streaming data to ITK through local disk](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 2:50pm UTC](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348 "2024-12-13T14:50:55Z")

</div>

we have a data analysis library that we have been building out over the last few years. In a previous version we were able to hand ITK a wrapped pointer to our data for ITK to process. In our new version this is not poss…

---

## [pyinstaller with RTK+VTK](https://discourse.itk.org/t/pyinstaller-with-rtk-vtk/6556)

<div class="topic-metadata">

**Author:** [@zhangm](https://discourse.itk.org/u/zhangm)\
**Replies:** 8\
**Last updated:** [December 11, 2024, 3:17am UTC](https://discourse.itk.org/t/pyinstaller-with-rtk-vtk/6556 "2024-12-11T03:17:42Z")

</div>

I use pyinstaller to generate a demo that can reconstruction data and show the result. The reconstruction is similar to FirstCudaReconstruction.py. My list of installed package is below. Package Versio…

---

## [pyinstaller itk failed to execute script due to unhandled exception](https://discourse.itk.org/t/pyinstaller-itk-failed-to-execute-script-due-to-unhandled-exception/6237)

<div class="topic-metadata">

**Author:** [@CrownMella](https://discourse.itk.org/u/CrownMella)\
**Replies:** 4\
**Last updated:** [December 11, 2024, 3:17am UTC](https://discourse.itk.org/t/pyinstaller-itk-failed-to-execute-script-due-to-unhandled-exception/6237 "2024-12-11T03:17:28Z")

</div>

Hi all, I’m trying to write an executable of my python program using PyInstaller. I tried following the below article (using the same test program in said article) by adding a hook and then writing python -m PyInstal…

---

## [SpatialObjectToImageFilter is missing SetReferenceImage method in ITK Python](https://discourse.itk.org/t/spatialobjecttoimagefilter-is-missing-setreferenceimage-method-in-itk-python/7334)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 5\
**Last updated:** [December 10, 2024, 2:01pm UTC](https://discourse.itk.org/t/spatialobjecttoimagefilter-is-missing-setreferenceimage-method-in-itk-python/7334 "2024-12-10T14:01:56Z")

</div>

Hello Everyone. While tinkering with ITK in Python, I’ve come across this curious circumstance: AttributeError: 'itkSpatialObjectToImageFilterSO2IUC2' object has no attribute 'SetReferenceImage'. Did you mean: 'GetRefe…

---

## [Assign an existing buffer to a new itk::Image instance](https://discourse.itk.org/t/assign-an-existing-buffer-to-a-new-itk-image-instance/7335)

<div class="topic-metadata">

**Author:** [@Oodini](https://discourse.itk.org/u/Oodini)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 2:08pm UTC](https://discourse.itk.org/t/assign-an-existing-buffer-to-a-new-itk-image-instance/7335 "2024-12-02T14:08:18Z")

</div>

Hello, I am supposed to process images coming from an echograph. They do not come from a file, but from a graphic card buffer. How can I set these existing data as LargestPossibleRegion, without copyning them ?

---

## [Error of itk.DemonsRegistrationFilter\[ImageType, ImageType\].New()](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331)

<div class="topic-metadata">

**Author:** [@siyuanch](https://discourse.itk.org/u/siyuanch)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 3:37pm UTC](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331 "2024-11-29T15:37:30Z")

</div>

Hi all, I meet an error that there will always be an error of itk.support.extras.TemplateTypeError: itk.DemonsRegistrationFilter is not wrapped for input type \`itk.Image\[itk.F,3\], itk.Image\[itk.F,3\]\`. To limit the size…

---

## [CMake error from itktiff when building RTK](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327)

<div class="topic-metadata">

**Author:** [@arobert01](https://discourse.itk.org/u/arobert01)\
**Replies:** 2\
**Last updated:** [November 26, 2024, 12:40pm UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327 "2024-11-26T12:40:57Z")

</div>

Hello, I’m used to compile RTK independently from ITK. Today, I updated both RTK and ITK with the master branch (this commit for ITK and this one for RTK). The compilation of ITK went fine but when I tried to compile RT…

---

## [itk::LineSpatialObject to itk::Image using itk::SpatialObjectToImageFilter?](https://discourse.itk.org/t/itk-linespatialobject-to-itk-image-using-itk-spatialobjecttoimagefilter/7326)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 4\
**Last updated:** [November 26, 2024, 5:24am UTC](https://discourse.itk.org/t/itk-linespatialobject-to-itk-image-using-itk-spatialobjecttoimagefilter/7326 "2024-11-26T05:24:27Z")

</div>

Hello Everyone, Using itk::SpatialObjectToImageFilter works beautifully, if I have an itk::EllipseSpatialObject, because an ellipse has dimensions in the object space. BTW, full respect to Julien Jomier for using the Co…

---

## [Convert a narrow-band level set into a "full-band" level set](https://discourse.itk.org/t/convert-a-narrow-band-level-set-into-a-full-band-level-set/7311)

<div class="topic-metadata">

**Author:** [@tossin](https://discourse.itk.org/u/tossin)\
**Replies:** 6\
**Last updated:** [November 22, 2024, 5:18pm UTC](https://discourse.itk.org/t/convert-a-narrow-band-level-set-into-a-full-band-level-set/7311 "2024-11-22T17:18:04Z")

</div>

Hey all, I have a narrow-band level set segmentation created from an ITK/VTK-based package (VMTK). However, I’d like to convert this narrow-band level set into a full-band, e.g., get a full distance field from the inte…

---

## [How to import unreal engine?](https://discourse.itk.org/t/how-to-import-unreal-engine/7197)

<div class="topic-metadata">

**Author:** [@sleighmaster](https://discourse.itk.org/u/sleighmaster)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 2:21pm UTC](https://discourse.itk.org/t/how-to-import-unreal-engine/7197 "2024-11-22T14:21:50Z")

</div>

I’m trying to use ITK to read dcm files from Unreal Engine. After cmake, I built AllBuild in release mode. I then built the Insertall project and added it to the directory where the Unreal project is located. The cmake…

---

## [ITK Python pyinstaller issue](https://discourse.itk.org/t/itk-python-pyinstaller-issue/1520)

<div class="topic-metadata">

**Author:** [@sshamekhi](https://discourse.itk.org/u/sshamekhi)\
**Replies:** 6\
**Last updated:** [November 22, 2024, 7:25am UTC](https://discourse.itk.org/t/itk-python-pyinstaller-issue/1520 "2024-11-22T07:25:57Z")

</div>

Dear all I am using ITKPython, My codes are working well in PyCharm with \*.py format but after making a standalone \*.exe file via PyInstaller some errors occure as follow: Traceback (most recent call last): File “RSG…

---

## [Potential acceleration for registration with BSplineTransform in metric derivative calculation](https://discourse.itk.org/t/potential-acceleration-for-registration-with-bsplinetransform-in-metric-derivative-calculation/7317)

<div class="topic-metadata">

**Author:** [@ljm898](https://discourse.itk.org/u/ljm898)\
**Replies:** 4\
**Last updated:** [November 22, 2024, 2:57am UTC](https://discourse.itk.org/t/potential-acceleration-for-registration-with-bsplinetransform-in-metric-derivative-calculation/7317 "2024-11-22T02:57:07Z")

</div>

Hi All, I believe I’ve identified a potential computational bottleneck when computing registrations involving BSplineTransforms, specifically during derivative calculation in the v3 registration metrics (might also be a…

---

## [Registration on subregions using DEMONS](https://discourse.itk.org/t/registration-on-subregions-using-demons/7321)

<div class="topic-metadata">

**Author:** [@ignaciobartol](https://discourse.itk.org/u/ignaciobartol)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 9:41pm UTC](https://discourse.itk.org/t/registration-on-subregions-using-demons/7321 "2024-11-21T21:41:01Z")

</div>

Hi all, Long-time reader, first-time poster here! I’m not sure if this is the right category, but as it’s my first question, I’ll post it here. I am performing deformable image registration using DEMONS in a 3D domain …

---

## [Unexpected crash when creating image reader with Visual Studio Release mode](https://discourse.itk.org/t/unexpected-crash-when-creating-image-reader-with-visual-studio-release-mode/7324)

<div class="topic-metadata">

**Author:** [@tctco](https://discourse.itk.org/u/tctco)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 3:04pm UTC](https://discourse.itk.org/t/unexpected-crash-when-creating-image-reader-with-visual-studio-release-mode/7324 "2024-11-21T15:04:25Z")

</div>

I’m trying to use ITK to build a small application for my colleagues. However, the following code causes my app to crash: using ReaderType = itk::ImageFileReader\<ImageType\>; ReaderType::Pointer reader = ReaderType::New(…

---

## [Strange behavior of itk::RegularExpressionSeriesFileNames](https://discourse.itk.org/t/strange-behavior-of-itk-regularexpressionseriesfilenames/7319)

<div class="topic-metadata">

**Author:** [@acoussat](https://discourse.itk.org/u/acoussat)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 4:26pm UTC](https://discourse.itk.org/t/strange-behavior-of-itk-regularexpressionseriesfilenames/7319 "2024-11-19T16:26:44Z")

</div>

Hello, I came across a strange behavior of itk::RegularExpressionSeriesFileNames, and either I miss something, or there is a bug somewhere. I have the following directory structure: projections ├── projections0000.mhd…

---

## [How to use filter function (or other types of functions) in RTK to improve the quality of 3D reconstructed images?](https://discourse.itk.org/t/how-to-use-filter-function-or-other-types-of-functions-in-rtk-to-improve-the-quality-of-3d-reconstructed-images/7314)

<div class="topic-metadata">

**Author:** [@zhangxiang](https://discourse.itk.org/u/zhangxiang)\
**Replies:** 8\
**Last updated:** [November 18, 2024, 8:17am UTC](https://discourse.itk.org/t/how-to-use-filter-function-or-other-types-of-functions-in-rtk-to-improve-the-quality-of-3d-reconstructed-images/7314 "2024-11-18T08:17:35Z")

</div>

2d image: 3d image: The stent of this bronchial model can be seen in the 3D image. PARAMETERS: SDD=842mm, SID=455mm. image size=768×768, pixelsize=0.56×0.56. numbers of image=889. The code I use is : .\\rtks…

---

## [C# Equivalent of GetArray(ViewFrom)Image](https://discourse.itk.org/t/c-equivalent-of-getarray-viewfrom-image/7313)

<div class="topic-metadata">

**Author:** [@general\_rishkin](https://discourse.itk.org/u/general_rishkin)\
**Replies:** 5\
**Last updated:** [November 15, 2024, 2:46pm UTC](https://discourse.itk.org/t/c-equivalent-of-getarray-viewfrom-image/7313 "2024-11-15T14:46:56Z")

</div>

I am attempting to follow the SimpleITK2020 (Python) tutorial but with F#. Part of the code in the “Accessing Pixels and Slicing” section is the following: logo\_copy\[115:190, 0:height\] = logo\_copy\[190:115:-1, 0:height\]…

---

## [When is the official 5.4.0 Release coming?](https://discourse.itk.org/t/when-is-the-official-5-4-0-release-coming/6654)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 5\
**Last updated:** [November 14, 2024, 5:41pm UTC](https://discourse.itk.org/t/when-is-the-official-5-4-0-release-coming/6654 "2024-11-14T17:41:00Z")

</div>

I googled around a bit for the release schedule for ITK and came up with: But nothing really past that. We are patiently waiting for both the 5.4.0 official release and the anaconda packages that go with it so that we…

---

## [Interpolate BSpline transform to region of interest](https://discourse.itk.org/t/interpolate-bspline-transform-to-region-of-interest/7301)

<div class="topic-metadata">

**Author:** [@dyoll](https://discourse.itk.org/u/dyoll)\
**Replies:** 3\
**Last updated:** [November 14, 2024, 4:56pm UTC](https://discourse.itk.org/t/interpolate-bspline-transform-to-region-of-interest/7301 "2024-11-14T16:56:18Z")

</div>

I would like to fine-tune a BSpline transform in a region of interest. Since I already have a coarse bspline for the whole MRI, I would like to interpolate this transform to the region of interest (I don’t really care ab…

---

## [How should one set the output origin when resampling an image?](https://discourse.itk.org/t/how-should-one-set-the-output-origin-when-resampling-an-image/7307)

<div class="topic-metadata">

**Author:** [@sebquet](https://discourse.itk.org/u/sebquet)\
**Replies:** 4\
**Last updated:** [November 14, 2024, 5:56am UTC](https://discourse.itk.org/t/how-should-one-set-the-output-origin-when-resampling-an-image/7307 "2024-11-14T05:56:38Z")

</div>

Hello, I would like to know how to set the output origin when resampling a volume to a different spacing. I understand from Fundamental Concepts — SimpleITK 2.4.0 documentation that in SITK the origin is in the middle o…

---

## [How to convert vascular segmentation result to “VascularNetwork.tre” file?](https://discourse.itk.org/t/how-to-convert-vascular-segmentation-result-to-vascularnetwork-tre-file/2949)

<div class="topic-metadata">

**Author:** [@TaoH](https://discourse.itk.org/u/TaoH)\
**Replies:** 4\
**Last updated:** [November 14, 2024, 2:42am UTC](https://discourse.itk.org/t/how-to-convert-vascular-segmentation-result-to-vascularnetwork-tre-file/2949 "2024-11-14T02:42:36Z")

</div>

Hello! I kown that TubeTK can convert “VascularNetwork.tre” file to vascular image. However, I want to convert a vascular segmentation result to the unbranched segments represented by centerline points and radius, like…

---

## [Curvature in image](https://discourse.itk.org/t/curvature-in-image/7310)

<div class="topic-metadata">

**Author:** [@Silvan](https://discourse.itk.org/u/Silvan)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 2:27pm UTC](https://discourse.itk.org/t/curvature-in-image/7310 "2024-11-13T14:27:56Z")

</div>

Hello, Is there any ITK filter that can provide information about the curvature of the lines in this image? For example from less curvature to greater curvature by associating this information with different colors? Than…

---

## [Functional Interface (Python) to itk::ExtractImageFilter, itk.extract\_image\_filter(img, ...) — What Are The Rest Of The Parameters?](https://discourse.itk.org/t/functional-interface-python-to-itk-extractimagefilter-itk-extract-image-filter-img-what-are-the-rest-of-the-parameters/7248)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 4\
**Last updated:** [November 13, 2024, 5:24am UTC](https://discourse.itk.org/t/functional-interface-python-to-itk-extractimagefilter-itk-extract-image-filter-img-what-are-the-rest-of-the-parameters/7248 "2024-11-13T05:24:19Z")

</div>

I’m trying to play with the functional Python interface to ITK filters, but I’m a bit lost in trying to figure out what parameters to use. For example, this doesn’t make things clear: help(itk.extract\_image\_filter) Hel…

---

## [How to assert that images are equal, in Python unit test?](https://discourse.itk.org/t/how-to-assert-that-images-are-equal-in-python-unit-test/7302)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 21\
**Last updated:** [November 12, 2024, 2:04pm UTC](https://discourse.itk.org/t/how-to-assert-that-images-are-equal-in-python-unit-test/7302 "2024-11-12T14:04:09Z")

</div>

How would you check that the “actual” output image of a filter is equal to the “excepted” image, in a Python unit test? Is there a helper function, like assert\_equal\_image(actual\_image, expected\_image)? I tried the fol…

---

## [Resampling mask to avoid 0s](https://discourse.itk.org/t/resampling-mask-to-avoid-0s/7304)

<div class="topic-metadata">

**Author:** [@rtlim](https://discourse.itk.org/u/rtlim)\
**Replies:** 6\
**Last updated:** [November 11, 2024, 10:54pm UTC](https://discourse.itk.org/t/resampling-mask-to-avoid-0s/7304 "2024-11-11T22:54:44Z")

</div>

I have a 3D map of values that I need to resample, and the map is positive in one region and the rest of the image has zeros. The data format is float 64. However, I only want to resample the non-zero values and avoid in…

---

## [3D image registration with protein structures](https://discourse.itk.org/t/3d-image-registration-with-protein-structures/7286)

<div class="topic-metadata">

**Author:** [@MrCarpainter](https://discourse.itk.org/u/MrCarpainter)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 11:57pm UTC](https://discourse.itk.org/t/3d-image-registration-with-protein-structures/7286 "2024-11-05T23:57:46Z")

</div>

I’m new to SimpleITK and have familiarized myself with basics of 3D image registration. I’m working on an image registration pipeline to align two 3D images. The images are density maps for protein structures and have co…

---

## [Saving series in any direction](https://discourse.itk.org/t/saving-series-in-any-direction/7300)

<div class="topic-metadata">

**Author:** [@zhangm](https://discourse.itk.org/u/zhangm)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 1:59am UTC](https://discourse.itk.org/t/saving-series-in-any-direction/7300 "2024-11-05T01:59:21Z")

</div>

I have a metaData and a direction matrix, and I want to save the 3D data to a series 2d images according to the matrix. I find there is a function itkImageSeriesWriter to save series. But I didn’t find how to change the …

---

## [Unable to save dicom metadata](https://discourse.itk.org/t/unable-to-save-dicom-metadata/7291)

<div class="topic-metadata">

**Author:** [@alrut](https://discourse.itk.org/u/alrut)\
**Replies:** 3\
**Last updated:** [November 4, 2024, 2:07pm UTC](https://discourse.itk.org/t/unable-to-save-dicom-metadata/7291 "2024-11-04T14:07:42Z")

</div>

I had to save images into dicoms. I did it with a help of example from docs. I wasn’t able to save modified metadata - most importantly uids. To prove it I prepared simplest script generating zero-filled dicoms and it d…

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

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