Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Wrap ImageBuilding::Build2D #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HastingsGreer
Copy link

No description provided.

Copy link
Collaborator

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 a few inline comments

include/IntersonArrayCxxImagingContainer.h Show resolved Hide resolved
src/IntersonArrayCxxImagingContainer.cxx Outdated Show resolved Hide resolved
src/IntersonArrayCxxImagingContainer.cxx Outdated Show resolved Hide resolved
@HastingsGreer
Copy link
Author

This implementation leads to the data being copied an extra two times, to convert the b-mode data from a ManagedBuffer to a NativeBuffer in NewImageHandler::HandleNewImage (line 134) and back from a NativeBuffer to a ManagedBuffer in ContainerImpl::Build2D (line 341). Is this a performance concern?

Build2D is used to undistort the output of a curved probe.
@HastingsGreer HastingsGreer changed the title WIP: wrap ImageBuilding::Build2 ENH: Wrap ImageBuilding::Build2D Feb 26, 2019
Copy link
Collaborator

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes -- for performance, itk::ResampleImageFilter should be used instead of this function ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants