Guest User

Untitled

a guest
Nov 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Select the Histogram value of the part of the image you want to remove
  2.  
  3. Extract the values of the pixels those fall inside the histogram values
  4.  
  5. Subtract this original image with this extracted image
  6.  
  7. Then covert the img into numpy array
  8.  
  9. Used this to turn all the black pixels removed into with
  10. finalimage=img[np.where((img == [0,0,0]).any(axis=2))]=[255,255,255]
Add Comment
Please, Sign In to add comment