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

Qview Statistics Tool Error #4414

Closed
lwellerastro opened this issue Apr 21, 2021 · 7 comments · Fixed by #4433
Closed

Qview Statistics Tool Error #4414

lwellerastro opened this issue Apr 21, 2021 · 7 comments · Fixed by #4433
Labels
bug Something isn't working inactive Issue that has been inactive for at least 6 months Products Issues which are impacting the products group

Comments

@lwellerastro
Copy link
Contributor

ISIS version(s) affected: 4.4.0 (also seen in isis5.0.0-RC1)

Description
While clicking in low dn areas x-number of times, the following error message appears:

QviewStatsToolError

It's nearly always the same line of code (212 for isis4.4.0 and 196 for isis5.0.0), but the bin range start value will vary depending where in the image you are clicking (based on dn's).

How to reproduce
See /work/users/lweller/Isis3Tests/Qview/StatisticsTool/TC1W2B0_01_01207S888E3572.lev1.cub

  • Open Statistics tool,
  • uncheck Hide Display (or not, doesn't matter but nice to see things),
  • set Box Samples=Box Lines=9 (or 11, 13 anything really),
  • and click in a shadowed area having very low dn's (<1), Error will eventually appear.

There doesn't seem to be any pattern to how many clicks before it pops up - sometimes a couple, other times many more. Does not seem to be a problem in areas where dn's >> 1. Though it seems if I click in high dn areas then go to low dn's, I can't get the message to reappear. But if I close the Statistics display window, reopen and go to a low dn area, it doesn't take too long for it to reappear.

@lwellerastro lwellerastro added the Products Issues which are impacting the products group label Apr 21, 2021
@jessemapel jessemapel added the bug Something isn't working label Apr 23, 2021
@acpaquette
Copy link
Collaborator

@lwellerastro I will have some time this week since I am on a release sprint and the release will likely be out tomorrow to go over this. I have been able to reproduce the error but it seems like it manifests when transitioning from dns > 1 to dns < 1. I would like to narrow this down further to provide context to anyone that decides to tackles this ticket.

@jessemapel
Copy link
Contributor

This is likely caused by the Histogram changes. Previously Histograms with a single value in them would "bound" that value. Now Histograms with a single value error. Changing the StatisticsTool to use an ImageHistogram will likely fix this.

@acpaquette
Copy link
Collaborator

Unfortunately this is not the error. ImageHistogram and Histogram differ in how the bins are structured and how the percentiles work.

The error is happening when the Histogram object is being constructed before it is even populated with any data. Here is the line that errors: ImageHistogram hist(p_stats.BestMinimum(), p_stats.BestMaximum());

In looking into this the p_stats.Best[Max/Min]imum() is likely failing to some degree.

@lwellerastro
Copy link
Contributor Author

This is broken under isis5.0.1.
I just checked isis5.0.0 and I don't get the pop up box there no matter how hard I try which seems odd to me.

@jessemapel
Copy link
Contributor

This bug fix was also not cherry-picked to 5.0.1, so we'll be putting this out in 5.0.2.

@github-actions
Copy link

Thank you for your contribution!

Unfortunately, this issue hasn't received much attention lately, so it is labeled as 'stale.'

If no additional action is taken, this issue will be automatically closed in 180 days.

@github-actions github-actions bot added the inactive Issue that has been inactive for at least 6 months label Jan 10, 2022
@lwellerastro
Copy link
Contributor Author

I'm going to close this issue since there appears to be a fix in place under 5.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inactive Issue that has been inactive for at least 6 months Products Issues which are impacting the products group
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants