I have asked a 'very broad' question yesterday link about build conditional random field based energy function from images. I got negative feedback from the comments and I think I should modify the question and make it more specific.
Here I have got bunch of images with a cow on the grass and some sky at the background. I want to segment the cow from the grass and sky (a toy problem only).
I firstly over-segment the images using some super-pixel method, and I have got the ground truth of labels of my 10 training images. Here is an example,
Then I pass these super-pixel patches to some filter to get texture features and saved them into feature vectors for cow (c), grass (g) and sky (s)
My question is how to using Matlab to implement the conditional probabilities of these three classes?
Like P(X_i|C_c), P(X_i|C_g) and P(X_i|C_s)? X_i are each super-pixel, C_x are the three classes.
I think some webpage mentioned about using Matlab hist function. Not sure how and why to do that. Please give me some basic applicable hints not complicated papers. Thanks a lot. A.