Skip to content

Commit

Permalink
Merge pull request #11 from tbirdso/raw-pointer-params
Browse files Browse the repository at this point in the history
BUG: Replace smart pointer function params with raw pointers
  • Loading branch information
tbirdso authored Apr 1, 2021
2 parents 091fb7c + d11fd20 commit e298c4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit e298c4c

Please sign in to comment.