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

Compilation error in plastimatch because of redefinition of DirectionType #219

Closed
MichaelColonel opened this issue Oct 15, 2022 · 2 comments
Labels
Milestone

Comments

@MichaelColonel
Copy link
Collaborator

The typedef typedef itk::Matrix < double, 3, 3 > DirectionType; is defined twice: here and here, hence a compilation error.

Possible fix:

In file direction_cosines.h delete DirectionType definition and add itk_image.h header

....
#include "itk_image.h"
#include "plm_math.h"

#define DIRECTION_COSINES_IDENTITY_THRESH 1e-9
#define DIRECTION_COSINES_EQUALITY_THRESH 1e-9

namespace itk { template<class T, unsigned int NRows, unsigned int NColumns> class Matrix; }
//typedef itk::Matrix < double, 3, 3 > DirectionType;
....
@MichaelColonel
Copy link
Collaborator Author

Here is the Pull Request for possible Plastimatch fix.

@MichaelColonel
Copy link
Collaborator Author

Pull Request for Plastimatch update is #220.

@cpinter cpinter added this to the SlicerRT 1.1 milestone Oct 18, 2022
@cpinter cpinter added the bug label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants