I have a bitmap image like this
My requirement is to create a GUI to load the image and for changing the contrast and other things on the image and algorithm to mark the particular area in silver colour as shown in the fig using C++ or C#.I am new to image processing and through my search I have found out that I can use the Histogram of the image for finding the required area.These are the steps.
- Get the histogram
- Search for intensity difference
- Search for break in the line
Can someone suggest me how can I proceed from here.Can I use Opencv for this or any other efficient methods are available..?
NOTE:
This image have many bright points and the blob algorithm is not successful. Any other suggestions to retrieve the correct coordinates of the rectangle like object.
Thanks
OpenCV should work.
adaptiveThreshold
converts it to black and whiteE.g. have a look at the
Simple Blob Detector
which lists the basic steps needed. Your silver rectangle certainly qualifies as "simple blob" (no holes or other hard bits)If all of your pictures look like that, it seems to me not complicate to segment the silver area and find its centre. Basically you will need to apply these algorithms in the sequence below:
These algorithms are classical image processing, I guess it wouldn't be hard to find then. In any case, I may have they implemented in C# and I can post here latter in case you think they solve your problem.
May be a research on Directshow, a multi media framework from Microsoft will help you to accomplish your task.