aleju / imgaug

Image augmentation for machine learning experiments.
http://imgaug.readthedocs.io
MIT License
14.34k stars 2.43k forks source link

Pixel scaling doubt #748

Open sayakpaul opened 3 years ago

sayakpaul commented 3 years ago

Hi @aleju.

After extracting the coordinates (keypoints) from a resized image, I am trying to rescale the pixel range to [0, 1]. For this, I am dividing the resized keypoint coordinates by the height and width respectively, and for my case height=width=224.

To my surprise, the pixel values contain negative values as well. Is this expected?

sayakpaul commented 3 years ago

Hi @aleju. A gentle ping.