Skip to content

Commit

Permalink
Change camera model to pull the Origin from the IAK
Browse files Browse the repository at this point in the history
  • Loading branch information
scsides committed Apr 24, 2019
1 parent faee870 commit 6358e17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion isis/src/kaguya/objs/KaguyaTcCamera/KaguyaTcCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,19 @@ namespace Isis {
CameraFocalPlaneMap *focalMap = new CameraFocalPlaneMap(this, naifIkCode());

// This is the same, no matter the swath mode
focalMap->SetDetectorOrigin(4096.0/2.0 + 0.5, 1.0);
// This set the origin of the detector (not image samp,line). It is zero bassed.
// The detector offsets are 0,0 because the borsight is in the center of the array
QString key;
key = "INS" + toString(naifIkCode()) + "_BORESIGHT_SAMPLE";
double sampleBoreSight = getDouble(key);

key = "INS" + toString(naifIkCode()) + "_BORESIGHT_LINE";
double lineBoreSight = getDouble(key);
focalMap->SetDetectorOrigin(sampleBoreSight, lineBoreSight);

// Setup distortion map
new KaguyaTcCameraDistortionMap(this, naifIkCode());
// new CameraDistortionMap(this);

// Setup the ground and sky map
new LineScanCameraGroundMap(this);
Expand Down

0 comments on commit 6358e17

Please sign in to comment.