Unverified Commit 734aee02 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

changed map2cam to use virtual bands (#4008)

* changed map2cam to use virtual bands

* changelog

* adressing comments
parent 097622ec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ update the Unreleased link so that it compares against the latest release tag.
### Fixed

 - Equalizer now reports the correct equation and values used to perform the adjustment. [#3987](https://github.com/USGS-Astrogeology/ISIS3/issues/3987)
 - Map2cam now works correctly when specifying bands for input cubes. [#3856](https://github.com/USGS-Astrogeology/ISIS3/issues/3856)

 ### Added
 
+4 −4
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ namespace Isis{
  Cube *mcube;
  Camera *outcam;


  void map2cam_f(UserInterface &ui) {

    // Open the input camera cube that we will be matching and create
@@ -41,6 +40,7 @@ namespace Isis{
                                       mcube->lineCount(),
                                       outcam);

   
    // Allocate the output cube but don't propagate any labels from the map
    // file. Instead propagate from the camera file
    rub.PropagateLabels(false);
@@ -49,7 +49,7 @@ namespace Isis{
    rub.SetOutputCube(fname, outputAtt,
                      transform->OutputSamples(),
                      transform->OutputLines(),
                      icube->bandCount());
                      mcube->bandCount());
    rub.PropagateLabels(match.expanded());
    rub.PropagateTables(match.expanded());

@@ -127,6 +127,6 @@ namespace Isis{
  }

  void BandChange(const int band) {
    outcam->SetBand(mcube->physicalBand(band));
    outcam->SetBand(band);
  }
}