Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rescale_pixels() for rescaling the range of pixels #568

Merged
merged 4 commits into from
May 21, 2015

Conversation

jabooth
Copy link
Member

@jabooth jabooth commented Mar 26, 2015

Adds a new method to Images that makes it easy to linearly rescale the range of pixels to a certain range. The range is given by a maximum and minimum value. The user can choose whether the scaling should be performed per channel independently, or for all pixels in the image across channels.

@jabooth
Copy link
Member Author

jabooth commented Mar 26, 2015

[tests to come, just wanted to post this before it was forgotten]

@patricksnape
Copy link
Contributor

A test and then I will +1

@nontas
Copy link
Member

nontas commented Mar 26, 2015

Nice addition! +1

@jabooth
Copy link
Member Author

jabooth commented Mar 31, 2015

@patricksnape added tests, let me know if you are happy after the travis run

jabooth added a commit that referenced this pull request May 21, 2015
rescale_pixels() for rescaling the range of pixels
@jabooth jabooth merged commit 4794949 into menpo:master May 21, 2015
@jabooth jabooth deleted the rescale_pixels branch May 21, 2015 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants