InsightSoftwareConsortium / InsightSoftwareConsortium/ITKElastix

use transformix for point transform

Open
#168 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
281
Forks
29
Avg merge
16h 28m
Merged PRs (30d)
8

Description

Hello ITKElastix team,

Thank you very much for your useful library,I want to transform point set by transformix, but when i run the code and wany to load the file "outputpoints.txt", i fund the file is empty. My code is as follows.

transformix_object = itk.TransformixFilter.New(moving_image)
transformix_object.SetFixedPointSetFileName('./data/frLeftBorderT.txt')
transformix_object.SetTransformParameterObject(result_transform_parameters_coarse)
transformix_object.SetLogToConsole(True)
transformix_object.SetOutputDirectory('./transformix/')
transformix_object.UpdateLargestPossibleRegion()

# Results of Transformation
# -- Bug? -- Output is saved as .txt file in outputdirectory.
# The .GetOutput() function outputs an empty image.
output_transformix_mask = transformix_object.GetOutput()
moving_left_line = np.loadtxt('./transformix/outputpoints.txt', dtype='str')[:,27:29].astype('float64')

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown Python TransformixFilter call with frLeftBorderT.txt and the supplied transform parameters, then inspect how outputpoints.txt and GetOutput() are produced. Compare the point-set input handling with the generated output; the issue is resolved when point transformation behavior and the expected output are established or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.