フィルターのクリア

cbir shape feature implementation

2 ビュー (過去 30 日間)
DEEPTHI
DEEPTHI 2013 年 2 月 3 日
i am deepthi...i am doing project in cbir...i got o/p for color and texture feature...i didnt get for shape...
function result=shape(S) S=im2bw(S); [H,theta,rho]=hough(S); datas=[]; for cnt=1:max(max(H)) datas(cnt)=sum(sum(H==cnt)); end %datas(datas==0)=NaN; [maxval,maxind]=max(datas); medval=median(datas); [p]=polyfit(1:maxind-5,datas(1:maxind-5),2); if maxval<3*medval result='Triangle'; elseif p(3)>100 result='square'; else result='Round'; end
warning*bold*
Warning: Polynomial is not unique; degree >= number of data points. > In polyfit at 72 In main2>shape at 241 In main2>feature_Callback at 192 In gui_mainfcn at 96 In main2 at 42 In @(hObject,eventdata)main2('feature_Callback',hObject,eventdata,guidata(hObject))
  1 件のコメント
Jan
Jan 2013 年 2 月 17 日

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2013 年 2 月 3 日
OK, let's look at the error message "degree >= number of data points." Well, what is your degree, and what is the number of data points you have?

カテゴリ

Help Center および File ExchangeData Sets in CAGE についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by