i'm working on a feature in imageproc, and for optimization reasons, i would like to rely on the fact that ImageBuffer::new() returns a buffer filled with zero()s.
Creates a new image buffer based on a Vec.
Panics
Panics when the resulting image is larger than the maximum size of a vector
Therefore, i am looking for confirmation outside of the current implementation that this is an intended feature that will most likely not be changed in the future rather than an implementation detail that could be changed for any and all reasons at any moment.
i'm working on a feature in
imageproc
, and for optimization reasons, i would like to rely on the fact thatImageBuffer::new()
returns a buffer filled withzero()
s.but the documentation of
ImageBuffer::new()
only statesTherefore, i am looking for confirmation outside of the current implementation that this is an intended feature that will most likely not be changed in the future rather than an implementation detail that could be changed for any and all reasons at any moment.