edrosten / libcvd

libcvd - efficient and easy to use C++ computer vision library.
Other
238 stars 103 forks source link

Fix twoThirdsSample for RGBA #61

Closed dmccabe-snap closed 4 years ago

dmccabe-snap commented 4 years ago

twoThirdsSample and its callers do not instantiate for the Rgba<T> type, which has an explicit constructor. The algorithms here also do not correctly widen the type for all operands. This change explicitly widens all component pixels of a patch.