Bug 1218 - Mixture maps not working
Summary: Mixture maps not working
Status: RESOLVED FIXED
Alias: None
Product: DIRSIG4
Classification: Unclassified
Component: Materials/Radiometry (show other bugs)
Version: 4.7.0-release
Hardware: All All
: P5 normal
Assignee: Scott D. Brown
URL:
Depends on:
Blocks:
 
Reported: 2016-04-11 19:00 EDT by Scott D. Brown
Modified: 2016-04-11 21:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott D. Brown 2016-04-11 19:00:41 EDT
If you run the PropertyMaps1 demo, the mixture map panel shows that the same material is present as the "most popular" everywhere rather than a spatially varying pattern.
Comment 1 Scott D. Brown 2016-04-11 19:02:06 EDT
Running the demo with any of the 4.6.x or early releases produces the expected result.
Comment 2 Scott D. Brown 2016-04-11 19:05:41 EDT
Upon code examination the problem seems to be that the interface to the map access() function was updated in the 4.7.x development cycle to support a time dimension in addition to the XYZ (spatial, spatial, spectral) dimensions. The access() function had a dangerous default parameter setup that resulted in a default time being used for the Z (band dimension) and the Z (band index) always being 0. Hence, when we extracted the spectral values for a pixel (the material weightings), they were all the same because they were all for band (material) 0.
Comment 3 Scott D. Brown 2016-04-11 21:47:50 EDT
Code was fixed and checked into both the trunk and 4.7.1 release tag.