-
Notifications
You must be signed in to change notification settings - Fork 172
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
Add new parameters OFFBODY and OFFBODYTRIM to cam2cam #5704
Open
artmathgirl
wants to merge
11
commits into
DOI-USGS:dev
Choose a base branch
from
UA-LPL:enhancement/cam2camKeywords
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a24237f
Updated cam2cam to incorporate new parameters OFFBODY and OFFBODYTRIM.
artmathgirl af481f8
Updated examples and documentation addressing OFFBODY and OFFBODYTRIM…
kledmundson e86433c
Minor corrections to cam2cam documentation. Addresses #3602.
kledmundson 805971c
Updated links in cam2cam documentation. Addresses #3602.
kledmundson d52d27e
Updated FunctionalTestsCam2cam.cpp to incorporate OFFBODY and OFFBODY…
artmathgirl 1f2780b
Tests OFFBODY and OFFBODY trim. Addresses #3602.
artmathgirl fd8a1c6
Merge branch 'DOI-USGS:dev' into enhancement/cam2camKeywords
kledmundson 80bd6e4
Added OFFBODY and OFFBODYTRIM parameters to cam2cam. Added tests and …
artmathgirl ae2b05b
Merge branch 'DOI-USGS:dev' into enhancement/cam2camKeywords
artmathgirl 033e367
Changes made per feedback in PR. Moved xform from .cpp to .h.
artmathgirl f599aa4
Merge branch 'DOI-USGS:dev' into enhancement/cam2camKeywords
artmathgirl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
isis/src/base/apps/cam2cam/assets/files/BulletEngineSelect.pref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Group = ShapeModel | ||
RayTraceEngine = Bullet | ||
OnError = Continue | ||
EndGroup | ||
End |
26 changes: 26 additions & 0 deletions
26
isis/src/base/apps/cam2cam/assets/files/cam2camExample3.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
# Get example image acquired by OREX OCAMS during "Detailed Survey" phase\ | ||
dtype="map_iofL2b"\ | ||
fbase="20190509T180552S020"\ | ||
|
||
# Download the OSIRIS-REx image. Note wget can be installed using the command\ | ||
# "conda install wget"\ | ||
wget -P . "https://sbnarchive.psi.edu/pds4/orex/orex.ocams/data_calibrated/detailed_survey/$\{fbase\}_$\{dtype\}.fits"\ | ||
|
||
# Import into ISIS\ | ||
ocams2isis from="$\{fbase\}_$\{dtype\}.fits" to="$\{fbase\}_pck.cub"\ | ||
ocams2isis from="$\{fbase\}_$\{dtype\}.fits" to="$\{fbase\}_dtm.cub"\ | ||
|
||
spiceinit from="$\{fbase\}_pck.cub" shape=ellipsoid\ | ||
spiceinit from="$\{fbase\}_dtm.cub" shape=user model='$osirisrex/kernels/dsk/g_00880mm_alt_ptm_0000n00000_v020.bds' -pref=$ISISROOT/BulletEngineSelect.pref\ | ||
|
||
# Run cam2cam for each set\ | ||
cam2cam from="$\{fbase\}_pck.cub" match="$\{fbase\}_dtm.cub" to="$\{fbase\}_pck_to_dtm_def.cub"\ | ||
cam2cam from="$\{fbase\}_pck.cub" match="$\{fbase\}_dtm.cub" to="$\{fbase\}_pck_to_dtm_off.cub" offbody=true offbodytrim=false\ | ||
cam2cam from="$\{fbase\}_pck.cub" match="$\{fbase\}_dtm.cub" to="$\{fbase\}_pck_to_dtm_offtrim.cub" offbody=true offbodytrim=true\ | ||
|
||
cam2cam from="$\{fbase\}_dtm.cub" match="$\{fbase\}_pck.cub" to="$\{fbase\}_dtm_to_pck_def.cub"\ | ||
cam2cam from="$\{fbase\}_dtm.cub" match="$\{fbase\}_pck.cub" to="$\{fbase\}_dtm_to_pck_off.cub" offbody=true offbodytrim=false\ | ||
cam2cam from="$\{fbase\}_dtm.cub" match="$\{fbase\}_pck.cub" to="$\{fbase\}_dtm_to_pck_offtrim.cub" offbody=true offbodytrim=true\ | ||
|
Binary file added
BIN
+51.4 KB
...base/apps/cam2cam/assets/images/example1/cam2cam_example1_FROM_AS15-M-1537.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.3 KB
isis/src/base/apps/cam2cam/assets/images/example1/cam2cam_example1_GUI.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.4 KB
...ase/apps/cam2cam/assets/images/example1/cam2cam_example1_MATCH_AS15-M-0587.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.3 KB
...apps/cam2cam/assets/images/example1/cam2cam_example1_TO_AS15-M-1537_2_0587.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+277 KB
...ps/cam2cam/assets/images/example2/cam2cam_example2_Default_vs_OffbodyNoTrim.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.7 KB
...s/cam2cam/assets/images/example2/cam2cam_example2_FROM_20190509T180552S020.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+154 KB
.../cam2cam/assets/images/example2/cam2cam_example2_MATCH_20190509T174620S424.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.4 KB
isis/src/base/apps/cam2cam/assets/images/example2/cam2cam_example2_TO_Default.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.1 KB
...base/apps/cam2cam/assets/images/example2/cam2cam_example2_TO_OffbodyNoTrim.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.3 KB
...c/base/apps/cam2cam/assets/images/example2/cam2cam_example2_TO_OffbodyTrim.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+605 KB
...src/base/apps/cam2cam/assets/images/example3/cam2cam_example3_dtm2ellipsoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+734 KB
...src/base/apps/cam2cam/assets/images/example3/cam2cam_example3_ellipsoid2dtm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.1 KB
...pps/cam2cam/assets/thumbs/example1/cam2cam_example1_FROM_AS15-M-1537_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16 KB
...ps/cam2cam/assets/thumbs/example1/cam2cam_example1_MATCH_AS15-M-0587_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.8 KB
...am2cam/assets/thumbs/example1/cam2cam_example1_TO_AS15-M-1537_2_0587_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.7 KB
isis/src/base/apps/cam2cam/assets/thumbs/example1/cam2cam_example1_gui_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.4 KB
...cam/assets/thumbs/example2/cam2cam_example2_FROM_20190509T180552S020_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.8 KB
...am/assets/thumbs/example2/cam2cam_example2_MATCH_20190509T174620S424_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.7 KB
...base/apps/cam2cam/assets/thumbs/example2/cam2cam_example2_TO_Default_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.6 KB
...pps/cam2cam/assets/thumbs/example2/cam2cam_example2_TO_OffbodyNoTrim_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.9 KB
.../apps/cam2cam/assets/thumbs/example2/cam2cam_example2_TO_OffbodyTrim_thumb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since this class is only used in the tests, can it be moved into
FunctionalTestsCam2cam.cpp
?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.
I think this class has general utility other than strictly testing. All one has to do is add the include file in their own code.
It also keeps the class with the context in which it is designed to model.
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.
If cam2cam was updated to use it I would agree but it isn't currently being used in the codebase, only the test suite.
It also seems like a rewrite of the cam2camXform, could one not use the cam2camXform in the same way that one would use this new class?
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.
Yeah, you may be right.
It is odd that it appears the only way to use this externally would require a link to cam2cam.o. It would be more better/useful if the implementation of cam2camXform is entirely in the header.
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 could move the xform implementation into the .h as well