Problem regarding image processing in binary image
3 ビュー (過去 30 日間)
I'm currently working on image processing on an image on streets. Here are the codes I'm currently using
threshmax = multithresh(maxchan,4);Qmax=imquantize(maxchan,threshmax);
result=bwareafilt( imquantize(D,thresh)>1, [10,inf]);
Then, I'll have a result as following
Are there any solutions to get a more complete car-shaped white blob and remove the lines on the road ?? This is because I'm attempting to count the number of the cars. There is another problem where if i take another picture with different lighting or different angle, the result of the image could be worse where i could not see any blobs. The images of the current image are attached as .m files. Thank you in advance. The other pictures where I could not extract anything are also attached.
Image Analyst 2018 年 7 月 11 日
I'd use imclose() first to connect some separate blobs, like the car split into two or 3 parts due to a luggage rack on the roof. Then use bwareaopen() or bwareafilt() to get rid of blobs smaller than a certain size.