-
Notifications
You must be signed in to change notification settings - Fork 5
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
VTK Camera Loader #147
VTK Camera Loader #147
Conversation
c160591
to
e0d3fbb
Compare
e0d3fbb
to
54aa0e4
Compare
89045a1
to
e00fee9
Compare
Update 8.18.23Initially, I had thought that the issue had lied with the VRG gen but upon further inspection, I think the rotations within Autoscoper are just slightly off. As of right now, it is impossible to align the partial volumes with both of the radiographs. Autoscoper/libautoscoper/src/Camera.cpp Lines 553 to 558 in e00fee9
Autoscoper/libautoscoper/src/Camera.cpp Lines 569 to 582 in e00fee9
|
aa7857d
to
35c9100
Compare
Update 8.28.23I think I got it now, I ended up adding an implementation of Autoscoper/libautoscoper/src/Camera.cpp Lines 561 to 572 in 35c9100
|
35c9100
to
7795207
Compare
Rebase with #200 once integrated |
524190a
to
b25162e
Compare
After building PR #53 and PR #147 Anthony and I used the PRE PROC LEFT Hop Knee dicom to run through the vrg gen in SAM. Successful use of all tabs in 53 When loaded with the optimized cams config, I attempted to track both tib and femur.. poor results. Same with all cameras (optimized and manually placed) Going to try with wrist data - both vrg/pv gen and see if we do get a good ncc optimizziton |
01e4e93
to
41d76ea
Compare
The config file generation step in this branch is integral for agreement testing. Would it be possible to push that feature to main? |
There is no config generation on this branch, are you referring to BrownBiomechanics/SlicerAutoscoperM#53? |
9f0dda0
to
8ffae49
Compare
* Both loadMayaCam1 & 2 had duplicated code. * Add new helper methods `calculateViewport` and `calculateImagePlane` to remove this duplication. * Simplified some of the math by checking in loadMayaCam1 if z is negative.
cfb2260
to
3f724c9
Compare
58323c3
to
38cc22c
Compare
For reference, to review the changes while ignoring the space change, this link can be used. See https://github.com/BrownBiomechanics/Autoscoper/pull/147/files?w=1 |
5f46175
to
0762d92
Compare
…td::remove Fix build error like the following reported when using GCC 9.4.0 on Ubuntu 20.04: /path/to/Autoscoper/libautoscoper/src/Camera.cpp:397:44: error: cannot convert ‘std::__cxx11::basic_string<char>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’} to ‘const char*’ 397 | value.erase(std::remove(value.begin(), value.end(), ']'), value.end()); | ~~~~~~~~~~~^~ | | | std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}
Fix the following warning: /path/to/Autoscoper/libautoscoper/src/Camera.cpp: In member function ‘double* xromm::Camera::calculateFocalLength(const double&)’: /path/to/Autoscoper/libautoscoper/src/Camera.cpp:602:12: warning: address of local variable ‘focal_lengths’ returned [-Wreturn-local-addr] 602 | return focal_lengths; | ^~~~~~~~~~~~~ /path/to/Autoscoper/libautoscoper/src/Camera.cpp: In member function ‘double* xromm::Camera::lookAt(Vec3d, Vec3d, Vec3d)’: /path/to/Autoscoper/libautoscoper/src/Camera.cpp:615:12: warning: address of local variable ‘matrix’ returned [-Wreturn-local-addr] 615 | return matrix; | ^~~~~~
Also improve readability by splitting setting of each matrix element on its own line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After updating the schema URL, this will be ready for integration.
For sake of consistency with how Slicer integrates JsonCpp, we ignore the "jsoncppConfig.cmake" file provided by jsoncpp CMake project and instead set JsonCpp_INCLUDE_DIR and JsonCpp_LIBRARY expected by the "FindJsonCpp" CMake module. To streamline distribution of the standalone Autoscoper executable, update JsonCpp project to statically build the JsonCpp library.
f6deb01
to
0c11207
Compare
*.json
file