-
Notifications
You must be signed in to change notification settings - Fork 173
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
specpix count overun #1765
Comments
Original Redmine Comment Reporter priority: Minimal, reporting problem only. (moved from the Impact field that is intended for developer/code impact statement). |
Original Redmine Comment The image results are correct, but the reporting of special pixel value count is incorrect. The count is correct with smaller images, but this count is incorrect with large images that have a large number of special pixel values, for instance, the image that revealed this problem is 36865 Samples x 737297 Lines with alot of intended NULLs. |
Original Redmine Comment Verified that the source of the problem is a wrap around on the count variables. I verified this by making a cube of 1-byte pixels just large enough to overflow the max value of the counters (Specifically, 23,170 samples by 23,171 lines by 8 bands). I verified the math by hand and saw that the amount overflowed was exactly the difference of the number of bytes in the cube and the number of possible values of a 4-byte int. |
Original Redmine Comment Found that there is an existing Isis type for large ints called BigInt. Changed to make use of BigInt and reran tests. Rebuilding for prog6 so reporter may test. |
Original Redmine Comment The directory for testing this application can be found in: /work/projects/isis/latest/m01699_1/isis/src/base/apps/specpix |
Original Redmine Comment The program has been tested successfully. The test data are located in /work/users/jshinaman/Support/RM_1699. |
Original Redmine Comment Thanks. Test data look good. And, I ran a quick test on a previous Kaguya file, and output counts look good. |
Author Name: Christopher Isbell (Christopher Isbell)
Original Assignee: Tyler Wilson
Hello,
FYI, looks like allocation for pixel counting is not adequate. e.g. see command and negative count values reported below.
Thanks,
Chris
astrovm3.wr.usgs.gov{cisbell}98: specpix from=tc_eve_v02_090_099.cub to=tc_eve_v02_090_099_spxls.cub hismin=-0.41 hismax=-0.39 hrsmin=-0.421 hrsmax=-0.419 lrsmin=-0.441 lrsmax=-0.439 nullmin=-0.61 nullmax=-0.459
specpix: Working
100% Processed
Group = Results
Null = -609021389
Lrs = 4644
Lis = 0
Hrs = 41910006
His = 49711598
Total = -517395141
End_Group
The text was updated successfully, but these errors were encountered: