But we modify our method again and don’t do smoothing to the original image and it works well thanks to god![]()
But we modify our method again and don’t do smoothing to the original image and it works well thanks to god![]()
Why Classification??
our algorithm is to divide the image into three parts(classes) we called them (Sky, Vertical, Ground) :-
Sky:- is the sky part in the image.
Vertical:- is any vertical object in the image like buildings, trees, any vertical objects.
Ground:- is the ground if it street or grass ,…
so we want to know how we can do orientation to the 3 classes in the 3D model so we do classification to know that.
okay, now we know why we do classification but what after segmentation??
after segmentation to the original image we have a list of the image segments, so we want to know for each segment what class that segment will belong to :-
and the expected output after classification is :-
Now which classifier that we use??
we know that there are a lot of classifiers :-
Supervised , Unsupervised, ..
but we use a Supervised Non-parametric Classifier K-Nearest Neighbor Classifier because a Supervised Parametric classifiers need to be knew the distribution that the features follow but in our case the image contain a lot objects and every one doesn’t has specific color or shape so we use a non- parametric classifier.
Which Features That You Want ????
if you are free
and have more from time you can get all this features:-
but, because it is a graduation project so we have to get the most powerful features that will get the satisfied output so we use :-
A Trainable System Will Be More Flexible :-
yes, according to that we do our system to be trainable that’s mean that if an image is entered to our system and our system failed to classify it so as in the figure :-
the user should point by the mouse on the red target on the image (the segment location) then the feature vector will be created then the data will be added in our Data Set.
our output now:-
we will improve that output when we increase the number of powerful features.
Problems that we faced:-
Another Classification Process,,, WHY ???
after dividing the image into three classes(sky, vertical, ground) we will do another classification process but only on the vertical class, because the vertical class may contain objects like buildings and they may be in the right or in the left or in the center to know where they exist we have to do classification to the vertical class .
on the red target on the image then
the feature vector will be created
and He/she can add sample
the selected samples.
We use segmentation to divide the image into small regions according to their pixels intensity, that will help us to improve classification performance using segments (little classification data) instead of working pixel by pixel (large amount of data).
And easily to extract the features form the segments.
and if we do classification on the original image we have to work on every pixel and that will take more time than if work on segments , like that :-
you will say that is there is no difference between the 2 images
but the first is the original and the 2nd is the segmented image and the colors are similar because we fill the segments with the mean color.
and the algorithm that we use is called flood fill algorithm (Queue Linear Technique) because it’s output is the desired in our problem and it is fast in large image it take seconds to segment it.
Problems That we Faced In Segmentation Phase:-
