Skip to content
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

8.0.2 Release Prep #5364

Merged
merged 16 commits into from
Dec 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated trimfilter to correctly use high/low filters (#5340)
* Added high/low filters to trimfilter

* Updated changelog

* Updated changelog

---------

Co-authored-by: acpaquette <[email protected]>
  • Loading branch information
AustinSanders and acpaquette committed Dec 6, 2023
commit 4cadf427199f07ff4b3110f8627c66067d80b40c
8 changes: 8 additions & 0 deletions isis/src/base/apps/trimfilter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ void IsisMain() {
double low = -DBL_MAX;
double high = DBL_MAX;
int minimum;

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

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

// Process each line
Expand Down