Closed ripytide closed 5 months ago
The current naming was chosen for consistency with image
. I’ve just checked and the pixels()
function on GenericImageView
still returns an iterator over both positions and values. However, this is inconsistent with ImageBuffer::pixels()
, and the ImageBuffer
naming makes more sense than the GenericImageView
naming so I agree with your proposed change.
Implemented in https://github.com/image-rs/imageproc/pull/602
map_colors()
is inconsistent with the rest of the mapping functions such asmap_pixels()
andmap_subpixels()
. Instead I think clearer naming would be to rename the currentmap_pixels()
tomap_enumerated_pixels()
and then renamemap_colors()
tomap_pixels()
.This would then match
image
'spixels()
andenumerate_pixels()
iterators.