InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

Rotating an NRRD volume is slow

Open
#5,343 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

Hello.

I have used ITK to rotate an Axial NRRD volume with 551 images with Euler as well as versor rigid 3D transformation

Both these filters take nearly **30 seconds** to rotate the volume. Is there a better way to do it

```CPP

rotateFilter->SetDefaultPixelValue(-32767);
rotateFilter->SetOutputOrigin(origin);
rotateFilter->SetSize(imageSize);
rotateFilter->SetOutputSpacing(spacing);
rotateFilter->SetOutputDirection(volume->GetDirection());
rotateFilter->SetCenter(center);
rotateFilter->SetRotation(theta_X, theta_Y, theta_Z);
rotateFilter->SetTransform(transform);
rotateFilter->SetInput(volume);
rotateFilter->Update()

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.