Details
-
Type:
Story
-
Status: To Do
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:AP F23-6 (November)
-
Team:Alert Production
-
Urgent?:No
Description
Currently the default mask planes are defined in afw/src/image/Mask.cc using
namespace { |
/* |
* Definition of the default mask bits
|
*
|
* N.b. this function is in an anonymous namespace, and is invisible to doxygen. ALL mask
|
* planes defined here should be documented with the Mask class in Mask.h
|
*/
|
void |
setInitMaskBits(PTR(detail::MaskDict) dict)
|
{
|
int i = -1; |
dict->add("BAD", ++i); |
dict->add("SAT", ++i); // should be SATURATED |
dict->add("INTRP", ++i); // should be INTERPOLATED |
dict->add("CR", ++i); // |
dict->add("EDGE", ++i); // |
dict->add("DETECTED", ++i); // |
dict->add("DETECTED_NEGATIVE", ++i); |
dict->add("SUSPECT", ++i); |
dict->add("NO_DATA", ++i); |
}
|
}
|
but there is no public method to reset the mask planes to the default. Since the mask plane is a global object this functionality should be available.
My recommendation would be to make a "resetMaskPlanesToDefault" method of the Mask<MaskPixelT> object.