Marking a point of interest in an image using C ++

I have a bitmap like this

enter image description here My requirement is to create a graphical interface for loading the image and changing the contrast and other things in the image and algorithm to mark a specific area in silver, as shown in the figure using C ++ or C #. I am new to image processing and through my search I found that I can use the image histogram to search for the desired area. These are the steps.

  • Get a histogram
  • Search for intensity difference
  • Search for line breaks

Can someone tell me how I can come from here. Can I use Opencv for this or any other effective methods are available.?

Note:

enter image description hereThis image has many bright points, and the blob algorithm failed. Any other suggestions for getting the correct coordinates of an object, like a rectangle.

thank

+2
source share
3 answers

OpenCV should work.

  • Convert the original image to shades of gray.
  • adaptiveThreshold converts it to black and white
  • Function Discovery contains a complete list of OpenCV Function Detectors; choose one depending on the specific function you are trying to detect.

eg. look Simple Blob Detectorfor a list of the basic steps needed. Your silver rectangle certainly qualifies as a “simple blob” (no holes or other hard bits)

+3
source

, , . :

  • binaryze Otsu
  • (blob)
  • , blob.
  • ( , ), , . X, Y, .

, , . , , #, , , .

+1

Maybe a study on Directshow, Microsoft's multimedia environment, will help you accomplish your task.

0
source