1
votes

I have a number of microscopic images and I want to apply detection algorithms on those images using OpenCV. For that, I need to apply some image processing methods. But I am not sure which will be the best method for this one.

I applied exposure and contrast from Shotwell (ubuntu software) which works perfectly fine with my case. How I can do the same in OpenCV or any image processing library in python?

I have attached a link to the input and the required image.

Input image: https://drive.google.com/file/d/1XoY8u5yk0X4620alR61GhoJrd9pJBYji/view?usp=sharing

Required image: https://drive.google.com/file/d/13DpbDYdNsOAh1k_ZLHpYV99ddlIF47vB/view?usp=sharing

1
Yes, it is possible, but explain what should be on the second picture - all different colored isolated points? - Leox
@Leox Thank you for your reply. I am not sure If I understood you correctly. I want to convert into binary images with the proper image processing method so that I will not lose any of those points. Is this clear your doubt? - Vishal T

1 Answers

0
votes

For example

img=cv2.imread('points.jpg')
hsv_image = cv2.cvtColor(img ,cv2.COLOR_BGR2HSV)
gray = cv2.cvtColor(hsv_image,cv2.COLOR_BGR2GRAY)
_,mask = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)

I get

enter image description here

But I'm not sure if I lost some points or added new ones.