I'm doing my final year project on image processing in matlab. My project is identifying which lights are 'off' in a street in a static image.
These are the sequences of steps that i'm following :
I have done thresholding and image labelling i.e, labelling each light source from 1 and so on in thresholded image. The corresponding code is
I = imread('st.jpg');
imshow(I);
G = rgb2gray(I);
imshow(G);
BW = im2bw(G,0.7);
imshow(BW);
f = fspecial('average',3);
I1 = filter2(f,BW,'same');
imshow(I1);
[Lw, nw] = bwlabel(I1);
imtool(Lw,[]);
s = strel('disk',5);
O = imopen(Lw,s);
figure, imshow(O,[]);
Now I need to create a data base of each light source and compare the test image(image with one/many light source off) with reference image to identify which one is off and display it.
Since houghpeaks for each light source is different. I want to extract houghpeaks for each light source using hough transform.
I have searched for it so much but i dint get anything. If someone helps me it would be a great help for my project.
Thanks already.