# Engineering

**URL:** https://discourse.itk.org/c/engineering/6.md?page=12

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

**Page:** 13

---

## [How to transfert pixel buffer from Javascript to Python?](https://discourse.itk.org/t/how-to-transfert-pixel-buffer-from-javascript-to-python/3014)

<div class="topic-metadata">

**Author:** [@Athius](https://discourse.itk.org/u/Athius)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 7:19am UTC](https://discourse.itk.org/t/how-to-transfert-pixel-buffer-from-javascript-to-python/3014 "2020-04-28T07:19:35Z")

</div>

Hi, I’m trying to send the pixel buffer of an itk image (3D images) using a websocket in javascript to a python server. On client side (javascript), I send the image data as binary content like this: // image is a itk…

---

## [Problem while copying metadata of a dicom image](https://discourse.itk.org/t/problem-while-copying-metadata-of-a-dicom-image/2978)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 4:42pm UTC](https://discourse.itk.org/t/problem-while-copying-metadata-of-a-dicom-image/2978 "2020-04-21T16:42:25Z")

</div>

Hi Guys, Let me give you some context of my problem: I’m doing a registration between two images, MovingVolume and FixedVolume and I’m going to do some processing to generate two final images that are related with the M…

---

## [Fatal errors C1083 and LNK1181 when using RTK module](https://discourse.itk.org/t/fatal-errors-c1083-and-lnk1181-when-using-rtk-module/2951)

<div class="topic-metadata">

**Author:** [@Henco](https://discourse.itk.org/u/Henco)\
**Replies:** 6\
**Last updated:** [April 16, 2020, 2:47pm UTC](https://discourse.itk.org/t/fatal-errors-c1083-and-lnk1181-when-using-rtk-module/2951 "2020-04-16T14:47:52Z")

</div>

I’m unsure if this is an ITK or RTK forum question so I’ve posted it to both. I’m attempting to build ITK with the RTK module selected. I am attempting this on Windows, with RTK 2.1.0 and ITK 5.1.0. I was able to succes…

---

## [Does readImageDICOMFileSeries handle uint16 encoded dicoms?](https://discourse.itk.org/t/does-readimagedicomfileseries-handle-uint16-encoded-dicoms/2622)

<div class="topic-metadata">

**Author:** [@Andrzej\_Marciniak](https://discourse.itk.org/u/Andrzej_Marciniak)\
**Replies:** 8\
**Last updated:** [April 14, 2020, 12:27pm UTC](https://discourse.itk.org/t/does-readimagedicomfileseries-handle-uint16-encoded-dicoms/2622 "2020-04-14T12:27:43Z")

</div>

Hello, I am using readimageDICOMFileSeries with the code as below. Everything worked perfectly when I had dicoms with data in UINT8 arrays. When I tested it with images with intensity values more than 255, I also recei…

---

## [PointSet to PointSet registration with random sampling](https://discourse.itk.org/t/pointset-to-pointset-registration-with-random-sampling/1502)

<div class="topic-metadata">

**Author:** [@Roulbac](https://discourse.itk.org/u/Roulbac)\
**Replies:** 7\
**Last updated:** [April 13, 2020, 7:05pm UTC](https://discourse.itk.org/t/pointset-to-pointset-registration-with-random-sampling/1502 "2020-04-13T19:05:49Z")

</div>

Hi, I need to register two point clouds; however my point sets have too many points, so it is quite slow to run. I have followed the example from the IterativeClosestPoint. A solution I can think of is to randomly sam…

---

## [Wrap Python CastXML compilation errors](https://discourse.itk.org/t/wrap-python-castxml-compilation-errors/2876)

<div class="topic-metadata">

**Author:** [@beastwood](https://discourse.itk.org/u/beastwood)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 1:09am UTC](https://discourse.itk.org/t/wrap-python-castxml-compilation-errors/2876 "2020-04-01T01:09:16Z")

</div>

I’m running into some ITK compilation errors when I try to build ITK with wrapped Python bindings that are I think related to CastXML. I’ve found a few threads referencing somewhat similar errors (e.g. this one), but tho…

---

## [Command/Observer which accepts a lambda](https://discourse.itk.org/t/command-observer-which-accepts-a-lambda/2632)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 10:03pm UTC](https://discourse.itk.org/t/command-observer-which-accepts-a-lambda/2632 "2020-03-30T22:03:26Z")

</div>

Hello, I am wondering if anyone has already created a itk::Command class which accepts a C++ lambda function? Otherwise, I am wondering if a new itk::Object::AddObserver method should be overloaded to accept std::funct…

---

## [Wrap ITK image pointers with pybind11 and mix with the itk python package](https://discourse.itk.org/t/wrap-itk-image-pointers-with-pybind11-and-mix-with-the-itk-python-package/2880)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 6:44pm UTC](https://discourse.itk.org/t/wrap-itk-image-pointers-with-pybind11-and-mix-with-the-itk-python-package/2880 "2020-03-30T18:44:53Z")

</div>

Hi there, I am wrapping to python a library that I maintain SGEXT using pybind11. I have wrapped the algorithms in the library, but I also wanted to wrap high level functions which use ITK, not only internally, but in th…

---

## [Reset index of an image after Crop](https://discourse.itk.org/t/reset-index-of-an-image-after-crop/2870)

<div class="topic-metadata">

**Author:** [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)\
**Replies:** 8\
**Last updated:** [March 25, 2020, 11:32am UTC](https://discourse.itk.org/t/reset-index-of-an-image-after-crop/2870 "2020-03-25T11:32:50Z")

</div>

Dear All, This is a very specific question so I will give some context: I’m registering two Images with very different sizes, but the assumption (verified in script) is that the moving image is far smaller and complete…

---

## [How to change the size of a sitk::Image object](https://discourse.itk.org/t/how-to-change-the-size-of-a-sitk-image-object/2833)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 1\
**Last updated:** [March 16, 2020, 9:36pm UTC](https://discourse.itk.org/t/how-to-change-the-size-of-a-sitk-image-object/2833 "2020-03-16T21:36:47Z")

</div>

Hi, I create a class that contains a sitk::Image as one of its attributes but in the moment of the creation of the class I do not know what should be its size. So, how do I change the size of that object? Thanks.

---

## [IO in python module](https://discourse.itk.org/t/io-in-python-module/2846)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 5\
**Last updated:** [March 18, 2020, 5:47pm UTC](https://discourse.itk.org/t/io-in-python-module/2846 "2020-03-18T17:47:33Z")

</div>

I have started to work on the wrapping of IO in RTK: There is something which is not clear to me. When working with C++, I can register IO factories so that this is quite transparent for the user, the adequate ImageI…

---

## [ITK DCMTK external build fails](https://discourse.itk.org/t/itk-dcmtk-external-build-fails/2834)

<div class="topic-metadata">

**Author:** [@tim-evain](https://discourse.itk.org/u/tim-evain)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 3:34pm UTC](https://discourse.itk.org/t/itk-dcmtk-external-build-fails/2834 "2020-03-17T15:34:12Z")

</div>

Hello folks, I’m currently building docker images for test automation and I’m facing an issue with the ITK-patched DCMTK external project. During the build I get this error (I’m building an image based on ubuntu 20.04 w…

---

## [ImageSeriesWriter in rare cases writes image position (0020,0032) incorrectly](https://discourse.itk.org/t/imageserieswriter-in-rare-cases-writes-image-position-0020-0032-incorrectly/2839)

<div class="topic-metadata">

**Author:** [@svg](https://discourse.itk.org/u/svg)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 9:32am UTC](https://discourse.itk.org/t/imageserieswriter-in-rare-cases-writes-image-position-0020-0032-incorrectly/2839 "2020-03-17T09:32:10Z")

</div>

Hi Over the last year or so I have, on some machines using ITK, run into troubles regarding the image position header being written incorrectly. Short example of the problem: I use the ImageSeriesWriter to write 2D im…

---

## [Saving non-orthogonal volume in Nifti format](https://discourse.itk.org/t/saving-non-orthogonal-volume-in-nifti-format/2760)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.itk.org/u/lassoan)\
**Replies:** 22\
**Last updated:** [March 3, 2020, 2:55pm UTC](https://discourse.itk.org/t/saving-non-orthogonal-volume-in-nifti-format/2760 "2020-03-03T14:55:58Z")

</div>

When writing a Nifti image, NiftiImageIO seems to silently orthogonalize the IJK to LPS matrix that is written to the file. Is this normalization really necessary? Can nifti store images with non-orthogonal axes? (I’ve…

---

## ["Installing" ITK 5](https://discourse.itk.org/t/installing-itk-5/2766)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 9:30pm UTC](https://discourse.itk.org/t/installing-itk-5/2766 "2020-02-26T21:30:19Z")

</div>

We are currently using ITK 5.1rc2 for our project. We have noticed that if we just set ITK\_DIR to the build directory for ITK our project will compile. If we do an “install” of ITK into a different directory then set ITK…

---

## [Remote Module Grading/Ranking System Needed](https://discourse.itk.org/t/remote-module-grading-ranking-system-needed/2750)

<div class="topic-metadata">

**Author:** [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)\
**Replies:** 5\
**Last updated:** [February 21, 2020, 8:09pm UTC](https://discourse.itk.org/t/remote-module-grading-ranking-system-needed/2750 "2020-02-21T20:09:50Z")

</div>

Background One of the primary goals of creating remote modules was to ease the burden of core developers in maintaining the core ITK code base. There are currently 44 remote modules distributed with ITK, but there is n…

---

## [Speeding up Point to Point registration](https://discourse.itk.org/t/speeding-up-point-to-point-registration/2711)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 6\
**Last updated:** [February 19, 2020, 2:00pm UTC](https://discourse.itk.org/t/speeding-up-point-to-point-registration/2711 "2020-02-19T14:00:00Z")

</div>

I have set up a point to point registration. My meshes have about 30K points so this is taking a long time. What should I do to speed this up? Are there any GPU options? I have a GPU and will use the AWS GPU EC2 as well. …

---

## [Region outside of buffered region](https://discourse.itk.org/t/region-outside-of-buffered-region/2677)

<div class="topic-metadata">

**Author:** [@spic](https://discourse.itk.org/u/spic)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 5:19pm UTC](https://discourse.itk.org/t/region-outside-of-buffered-region/2677 "2020-02-03T17:19:55Z")

</div>

I am trying to write a Filter which labels an input image in a specific manner. To do this I extended ImageToImageFilter Class like so : template\< typename TInputImage, typename TOutputImage=TInputImage\> class ITK\_TEMP…

---

## [LabelImageGenericInterpolateImageFunction and BSplineInterpolateImageFunction](https://discourse.itk.org/t/labelimagegenericinterpolateimagefunction-and-bsplineinterpolateimagefunction/2668)

<div class="topic-metadata">

**Author:** [@DVigneault](https://discourse.itk.org/u/DVigneault)\
**Replies:** 2\
**Last updated:** [January 31, 2020, 6:14pm UTC](https://discourse.itk.org/t/labelimagegenericinterpolateimagefunction-and-bsplineinterpolateimagefunction/2668 "2020-01-31T18:14:13Z")

</div>

All– I recently discovered an excellent remote module which separately interpolates each label in a segmentation image generically over a templated interpolator, and then takes the maximum value for the output. I’ve tr…

---

## [Remote module made of several modules](https://discourse.itk.org/t/remote-module-made-of-several-modules/2661)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 4\
**Last updated:** [January 30, 2020, 7:07pm UTC](https://discourse.itk.org/t/remote-module-made-of-several-modules/2661 "2020-01-30T19:07:05Z")

</div>

I am quite fond of ITK’s module architecture and I am very pleased with RTK’s move to being a remote module. Thank you all for creating this architecture and thank you @LucasGandel for adapting RTK! Yet, I think that RT…

---

## [Is there any way to create an Image object starting from a array?](https://discourse.itk.org/t/is-there-any-way-to-create-an-image-object-starting-from-a-array/2658)

<div class="topic-metadata">

**Author:** [@Everaldo](https://discourse.itk.org/u/Everaldo)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 11:54am UTC](https://discourse.itk.org/t/is-there-any-way-to-create-an-image-object-starting-from-a-array/2658 "2020-01-29T11:54:58Z")

</div>

Hi guys, I have an Image which is structured in an C++ Array and I didn’t find a constructor to initialize an image object starting from it. So, Is there any way to do this? Thanks.

---

## [Make a c++ library available as a python module](https://discourse.itk.org/t/make-a-c-library-available-as-a-python-module/2644)

<div class="topic-metadata">

**Author:** [@cg2](https://discourse.itk.org/u/cg2)\
**Replies:** 5\
**Last updated:** [January 28, 2020, 2:03pm UTC](https://discourse.itk.org/t/make-a-c-library-available-as-a-python-module/2644 "2020-01-28T14:03:01Z")

</div>

Hi everybody, While struggling with some python wrapping stuff, I realized I might not have the right strategy to make some code easily available to the ITK community especially for quick prototyping in python. I saw t…

---

## [CT volume image orientation correction](https://discourse.itk.org/t/ct-volume-image-orientation-correction/2649)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 2\
**Last updated:** [January 26, 2020, 4:54am UTC](https://discourse.itk.org/t/ct-volume-image-orientation-correction/2649 "2020-01-26T04:54:06Z")

</div>

Hi, I have a large set of ct images of heart. The ct volumes created from the image set need to be processed. But before processing, I need to check the orientation of each volume to see the long axis of the heart point…

---

## [WrapITK file installation location](https://discourse.itk.org/t/wrapitk-file-installation-location/2643)

<div class="topic-metadata">

**Author:** [@cg2](https://discourse.itk.org/u/cg2)\
**Replies:** 4\
**Last updated:** [January 22, 2020, 9:10pm UTC](https://discourse.itk.org/t/wrapitk-file-installation-location/2643 "2020-01-22T21:10:12Z")

</div>

Hi everyone, I am porting an external project that use ITKWrap to wrap its own itk-based modules to ITK 5 and I’ve some issue with the location of Wrapping scripts. The initial script was: find\_package(WrapITK REQUIRED…

---

## [Run tests for single modules](https://discourse.itk.org/t/run-tests-for-single-modules/2636)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 3\
**Last updated:** [January 20, 2020, 3:01pm UTC](https://discourse.itk.org/t/run-tests-for-single-modules/2636 "2020-01-20T15:01:06Z")

</div>

Hello again, is there an option to turn on/off only some module tests? Example: I would like to test itkOptimizer and nothing else but the CMake option BUILD\_TESTING turn on all tests of all modules. Therefore, I have …

---

## [upgrading programs written with old itk versions](https://discourse.itk.org/t/upgrading-programs-written-with-old-itk-versions/2634)

<div class="topic-metadata">

**Author:** [@zeinsalah](https://discourse.itk.org/u/zeinsalah)\
**Replies:** 1\
**Last updated:** [January 18, 2020, 9:01pm UTC](https://discourse.itk.org/t/upgrading-programs-written-with-old-itk-versions/2634 "2020-01-18T21:01:12Z")

</div>

Dear all, I have been using itk/vtk/fltk for many years. Due to job changes, I was not touching itk since 2017. Within multiple projects, I will be coming back to itk the next period. However, I have here another questi…

---

## [Address Sanitizer / Consume ITK as Source Code](https://discourse.itk.org/t/address-sanitizer-consume-itk-as-source-code/2614)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 9\
**Last updated:** [January 16, 2020, 1:48pm UTC](https://discourse.itk.org/t/address-sanitizer-consume-itk-as-source-code/2614 "2020-01-16T13:48:48Z")

</div>

Hello, This is a question where I feel I don’t know quite enough to ask the right question, so if I’m doing it wrong feel free to enlighten me. I recently discovered the joy of Address Sanitizer for debugging memory is…

---

## [Nifti file orientation change between 2019-08-26 and ITK v5.1rc01](https://discourse.itk.org/t/nifti-file-orientation-change-between-2019-08-26-and-itk-v5-1rc01/2594)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.itk.org/u/lassoan)\
**Replies:** 29\
**Last updated:** [January 14, 2020, 10:30pm UTC](https://discourse.itk.org/t/nifti-file-orientation-change-between-2019-08-26-and-itk-v5-1rc01/2594 "2020-01-14T22:30:46Z")

</div>

We are updating 3D Slicer to use ITK v5.1rc01 and two of our tests now fail. The problem is that a nifti file loads with different image directions now compared to previously: ITK master as of 2019-08-26 =\> image direc…

---

## [Setting OnePlusOne optimizer for multi-resolution registration](https://discourse.itk.org/t/setting-oneplusone-optimizer-for-multi-resolution-registration/2616)

<div class="topic-metadata">

**Author:** [@fangc](https://discourse.itk.org/u/fangc)\
**Replies:** 0\
**Last updated:** [January 14, 2020, 3:45pm UTC](https://discourse.itk.org/t/setting-oneplusone-optimizer-for-multi-resolution-registration/2616 "2020-01-14T15:45:24Z")

</div>

I am using ITK5 to build an automated multi-resolution rigid registration for multi-modality 3D MR images, basically T1 and T2 registration. As the OnePlusOne optimizer works well with mutual information metric, I am thi…

---

## [Multi-resolution rigid registration failed to converge on some dataset.](https://discourse.itk.org/t/multi-resolution-rigid-registration-failed-to-converge-on-some-dataset/2613)

<div class="topic-metadata">

**Author:** [@fangc](https://discourse.itk.org/u/fangc)\
**Replies:** 0\
**Last updated:** [January 13, 2020, 2:48pm UTC](https://discourse.itk.org/t/multi-resolution-rigid-registration-failed-to-converge-on-some-dataset/2613 "2020-01-13T14:48:49Z")

</div>

Hello, I am using ITK5 to build an automated multi-resolution rigid registration for multi-modality 3D MR images, basically T1 and T2 registration. The results are quite good on most of my subjects, but there are a few …

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

[Next page](https://discourse.itk.org/c/engineering/6.md?page=13)
