Error undefined variable or method

I am working on LDA-Latent Dirichlet Allocation for Images,in that the first step is to find
K-dimensional topic weight vector m from the distribution p(|) = Dirichlet().
i tried Dirichlet(I),where I is the Image
but i get error
Undefined function or method 'Dirichlet' for input arguments of type 'char'.
please help

답변 (2개)

Wayne King
Wayne King 2012년 10월 5일

0 개 추천

It is not a MathWorks' function. The extract that you supplied seems to suggest that you are sampling from a Dirichlet distribution. If you search the web, there are MATLAB routines available for sampling from a Dirichlet distribution.
Walter Roberson
Walter Roberson 2012년 10월 5일

0 개 추천

You are misreading the document as if it is telling you a MATLAB function name, when instead it is naming a particular mathematical distribution without regards to how that is implemented.
MATLAB does not provide a Dirichelet random distribution function, but see http://www.mathworks.com/matlabcentral/newsreader/view_thread/65818

댓글 수: 7

kash
kash 2012년 10월 5일
But walter can we form a Topic from this LDA,,,,,for example if we have a image example forest and if assign k =2 ,is it possible to form two topics from those 2 classes..if the image consisite of forest ,can we form topics as 80%water 20%of land ,my image is
Walter Roberson
Walter Roberson 2012년 10월 5일
I have no idea; I have no experience in that topic. I have experience in googling phrases to find the original line and seeing that a key word was left out in a posting.
kash
kash 2012년 10월 5일
ok walter considering that image is it possible to say that the image consists of water and land
Walter Roberson
Walter Roberson 2012년 10월 5일
No. It could be, for example, an image of the surface of Saturn's moon Enceladus
kash
kash 2012년 10월 5일
ok walter can you please tell how LDA can be assigned to form topics from Images or from bag of words
Image Analyst
Image Analyst 2012년 10월 5일
This is an algorithm question more than a MATLAB programming question. I suggest you find remote sensing forums where people do this kind of image analysis. Or search the VisionBib for papers related to your scene. Neither Walter nor I do remote sensing.
Walter Roberson
Walter Roberson 2012년 10월 5일
Q: In the movie Star Wars, how large is the Imperial Battle Cruiser?
A: About 3 feet long. It just looks huge because of the camera angles and very very careful use of perspective.
You need to distinguish between what an image looks like and what the image is. An image might perfectly match the remote sensing characteristics for water and land, but the image might be something else completely, such as CGI.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2012년 10월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by