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

BUG: Replace smart pointer function params with raw pointers #11

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/itkMeshProcrustesAlignFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ITK_TEMPLATE_EXPORT MeshProcrustesAlignFilter : public ProcessObject
using itk::ProcessObject::SetInput;

/** Sets one input mesh (starting with idx=0). */
void SetInput( unsigned int idx, InputMeshPointer mesh );
void SetInput( unsigned int idx, InputMeshType *mesh );

/** Returns one of the input meshes (starting with idx=0). */
InputMeshType * GetInput( unsigned int idx )
Expand Down Expand Up @@ -291,7 +291,7 @@ class ITK_TEMPLATE_EXPORT MeshProcrustesAlignFilter : public ProcessObject
* zero origin by using the values in m_Center, to the given targetMesh.
* targetMesh has to be centered at zero origin as well!
*/
TransformPointer GetProcrustesMatch( unsigned int idx, OutputMeshPointer targetMesh, TranslationType targetCenter );
TransformPointer GetProcrustesMatch( unsigned int idx, OutputMeshType *targetMesh, TranslationType targetCenter );

private:

Expand Down
4 changes: 2 additions & 2 deletions include/itkMeshProcrustesAlignFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ MeshProcrustesAlignFilter<TInputMesh, TOutputMesh>
template <class TInputMesh, class TOutputMesh>
void
MeshProcrustesAlignFilter<TInputMesh, TOutputMesh>
::SetInput( unsigned int idx, InputMeshPointer mesh )
::SetInput( unsigned int idx, InputMeshType *mesh )
{
this->ProcessObject::SetNthInput( idx, mesh );
m_MeshTransform[idx]->SetInput( this->GetInput( idx ) );
Expand Down Expand Up @@ -207,7 +207,7 @@ MeshProcrustesAlignFilter<TInputMesh, TOutputMesh>
template <class TInputMesh, class TOutputMesh>
typename MeshProcrustesAlignFilter<TInputMesh, TOutputMesh>::TransformPointer
MeshProcrustesAlignFilter<TInputMesh, TOutputMesh>
::GetProcrustesMatch( unsigned int idx, OutputMeshPointer targetMesh, TranslationType targetCenter)
::GetProcrustesMatch( unsigned int idx, OutputMeshType *targetMesh, TranslationType targetCenter)
{
TransformPointer result = TransformType::New();
// copy source mesh coordinates to source matrix, translating to zero if necessary
Expand Down