KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to take an RGB image and convert it to a black and white RGB image, where a pixel is black if its HSV value is between a certain range and white otherwise. Currently I create a new image, then create a list of new pixel values by iterating through its data, then .putdata() that list to form the new image. It feels like there should be a much faster way of doing this, e.g. with .point() , but it seems .point() doesn't get given pixels but values from 0 to 255 instead. Is there a .point() transform but on pixels?
Tags (comma-separated)
Save Edits
Cancel