Skip to content

cam2map and ASP integration #5984

@oleg-alexandrov

Description

@oleg-alexandrov

Description

Here starting a discussion on making cam2map being compatible with ASP (on Kelvin's advice).

The proposal seems to be to ensure cam2map and mapproject produce interchangeable products with the right options. The plan I have for now is the following:

  • Add new option asp_map with default of false. If true, it will use new logic.
  • Add a new option called dem with value a string. This dem should be prepped as expected by ISIS.
  • Take a projection string, either with the map option, or with useproj = true and PROJString.. The latter has some issues in my experiments with regular proj str and takes in only wkt I think, this will need looking into.

The produced cub file will have PVL strings with the following info

BUNDLE_ADJUST_PREFIX = NONE
CAMERA_MODEL_TYPE = isis
INPUT_IMAGE_FILE = path to input .cub
DEM_FILE = path to DEM

These are for use of ASP.

The precise image created with mapproject and cam2map should be on same grid and same values, up to numerical precision. The extent may differ by a pixel or two given that the two use different logic for that, but I don't think this would be a problem for practical use. I'll try to harmonize these.

ASP should be able to take in mapprojected images from cam2map and produce stereo results that are indistinguishable than the ones with its own mapproject. ASP expects a non-prepped DEM. Not sure what to do about this. Likely may have to have on-the-fly prep in ISIS while loading the un-prepped one.

Thoughts? I think this came from @jlaura if I remember right. Want to hear also what @acpaquette thinks given his work with projections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions