Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-14814

Change invalid pixel handling by Exposure::getCutout

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      2
    • Sprint:
      AP F18-2, AP F18-3
    • Team:
      Alert Production

      Description

      Currently, Exposure::getCutout returns "blank" pixels (in the sense of e.g. Exposure(dimensions)) for parts of the cutout that extend off the edge of the original image. The more natural behavior to veteran stack users is to fill the off-image pixels with the value of afw::math::edgePixel.

      I propose that, if the NO_DATA flag has been deleted (e.g., with Mask::removeMaskPlane), getCutout should return edge pixels with a blank mask but with value and variance conforming to edgePixel's behavior. However, I'm open to throwing an exception instead.

      This ticket shall modify getCutout as described and add unit tests for pixel values, which we neglected to do before.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                krzys Krzysztof Findeisen
                Reporter:
                krzys Krzysztof Findeisen
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, Krzysztof Findeisen, Meredith Rawls, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel