-
Notifications
You must be signed in to change notification settings - Fork 33
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
Initial steps to modularize UsgsAstroLsSensorModel::losToEcf #169
Changes from 1 commit
bda7120
ca3afa1
d633ea4
7181c77
b7efba6
fc277b5
2ddaf54
e26edd2
a6988a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -919,22 +919,26 @@ class UsgsAstroLsSensorModel : public csm::RasterGM, virtual public csm::Settabl | |
// methods pulled out of los2ecf | ||
|
||
void computeDistortedFocalPlaneCoordinates( | ||
const double& lineUSGS, | ||
const double& sampleUSGS, | ||
double &distortedLine, | ||
const double& line, | ||
const double& sample, | ||
double& distortedLine, | ||
double& distortedSample) const; | ||
|
||
void computeUndistortedFocalPlaneCoordinates( | ||
const double& isisNatFocalPlaneX, | ||
const double& isisNatFocalPlaneY, | ||
double& isisFocalPlaneX, | ||
double& isisFocalPlaneY) const; | ||
const double& distortedFocalPlaneX, | ||
const double& distortedFocalPlaneY, | ||
double& undistortedFocalPlaneX, | ||
double& undistortedFocalPlaneY) const; | ||
|
||
void calculateRotationMatrixFromQuaternions( | ||
const double& time, | ||
const bool& invert, | ||
double cameraToBody[9]) const; | ||
|
||
void calculateRotationMatrixFromEuler( | ||
double euler[], | ||
double rotationMatrix[]) const; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be a reference to return properly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is how UsgsAstroLsSensorModel::determineSensorCovarianceInImageSpace made use of it's array (sensor_cov) and successfully uses it in the same way (updating it within the method call). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jessemapel Doesn't this implicitly pass a pointer to the first element of the array? It's not exactly the same thing as pass by reference, but doesn't it function similarly in practice? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kberryUSGS That's right, I forgot about how arrays are passed around. |
||
|
||
void createCameraLookVector( | ||
const double& undistortedFocalPlaneX, | ||
const double& undistortedFocalPlaneY, | ||
|
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.
We should get rid of all the USGS/isis variable names. I'd much rather see lineCCD, sampleCCD than lineUSGS, sampleUSGS.
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.
👍