Unverified Commit adfadd99 authored by Austin Sanders's avatar Austin Sanders Committed by GitHub
Browse files

Updated trimfilter to correctly use high/low filters (#5340)



* Added high/low filters to trimfilter

* Updated changelog

* Updated changelog

---------

Co-authored-by: default avataracpaquette <acpaquette@usgs.gov>
parent 50d5d980
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ release.
- Fixed exception pop ups in qview when viewing images created using the CSM Camera [#5259](https://github.com/DOI-USGS/ISIS3/pull/5295/files)
- Fixed exception pop ups in qview when viewing images created using the CSM Camera [#5259](https://github.com/DOI-USGS/ISIS3/pull/5295/files)
- Fixed shadowtau input file parseing errors when using example file [#5316](https://github.com/DOI-USGS/ISIS3/pull/5316)
- Fixed shadowtau input file parseing errors when using example file [#5316](https://github.com/DOI-USGS/ISIS3/pull/5316)
- Fixed ProgramLauncher failing while reporting errors from launched programs [#5331](https://github.com/DOI-USGS/ISIS3/pull/5331)
- Fixed ProgramLauncher failing while reporting errors from launched programs [#5331](https://github.com/DOI-USGS/ISIS3/pull/5331)
- Fixed high/low filter functionality in trimfilter [#5311](https://github.com/DOI-USGS/ISIS3/issues/5311)


## [8.0.1] - 2023-08-23
## [8.0.1] - 2023-08-23


+8 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,13 @@ void IsisMain() {
  double low = -DBL_MAX;
  double low = -DBL_MAX;
  double high = DBL_MAX;
  double high = DBL_MAX;
  int minimum;
  int minimum;

  if(ui.WasEntered("LOW")) {
    low = ui.GetDouble("LOW");
  }
  if(ui.WasEntered("HIGH")) {
    high = ui.GetDouble("HIGH");
  }
  if(ui.GetString("MINOPT") == "PERCENTAGE") {
  if(ui.GetString("MINOPT") == "PERCENTAGE") {
    int size = lines * samples;
    int size = lines * samples;
    double perc = ui.GetDouble("MINIMUM") / 100;
    double perc = ui.GetDouble("MINIMUM") / 100;
@@ -35,6 +42,7 @@ void IsisMain() {
  else {
  else {
    minimum = (int) ui.GetDouble("MINIMUM");
    minimum = (int) ui.GetDouble("MINIMUM");
  }
  }

  p.SetFilterParameters(samples, lines, low, high, minimum);
  p.SetFilterParameters(samples, lines, low, high, minimum);


  // Process each line
  // Process each line