Commit 52b5a41a authored by Kim Oyama's avatar Kim Oyama
Browse files

PROG Outputing the statistics revealed an uninitialized value that was causing...

PROG Outputing the statistics revealed an uninitialized value that was causing tonematch's test to break. In tonematch, added the MINCOUNT option to allow the user to determine how much of the images need to overlap for the overlap to be considered valid. References #1383.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5694 41f8697f-d340-4b68-9986-7bafba869bb8
parent efcaf58d
Loading
Loading
Loading
Loading
+1 −0
Changes for isis/src/base/apps/tonematch/tonematch.cpp: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ void IsisMain() {
  results += PvlKeyword( "Gain", stringNum.setNum(mult) );
  Pvl fileOutput;
  fileOutput += results;
  oStats.SetMincount( ui.GetInteger("MINCOUNT") );
  fileOutput += oStats.toPvl();
  Application::Log(results);

+16 −0
Changes for isis/src/base/apps/tonematch/tonematch.xml: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@
      correctly describe the POVERLAP option and to explain that this application only works on
      single band cubes.  Fixes #1383.
    </change>
    <change name="Kimberly Oyama" date="2014-01-16">
      Added the MINCOUNT option to allow the user to determine how much of the
      images need to overlap for the overlap to be considered valid. References #1383.
    </change>
  </history>

  <groups>
@@ -128,6 +132,18 @@
        <default><item>FALSE</item></default>
        <inclusions><item>OUTSTATS</item></inclusions>
      </parameter>

      <parameter name="MINCOUNT">
        <type>integer</type>
        <brief>
          Minimum number of points in overlapping area required for the overlap to be valid.
        </brief>
        <description>
          If the number of points in the overlapping area meets or exceeds this value, the area is
          considered valid. If there are fewer points the output statistics may not be accurate.
        </description>
        <default><item>1000</item></default>
      </parameter>
    </group>
  </groups>
</application>