フィルターのクリア

how to show my extracted features

4 ビュー (過去 30 日間)
inter steller
inter steller 2015 年 2 月 11 日
コメント済み: Image Analyst 2017 年 6 月 4 日
i have a image eg: 400*300 size, but after i do feature extraction, it give me a vector for example like [11800 11811 11823......] . And now i need to show my extracted vector which is [11800 11811 11823......] ,anyoone can tell me how?? i have tried using reshape but it does not work since my extracted vector not same size with my original image ... it is a single 19128x1 vector only...

回答 (2 件)

Stalin Samuel
Stalin Samuel 2015 年 2 月 11 日
%if 'feature' is the vector contains feature values then use
disp(feature)
  2 件のコメント
inter steller
inter steller 2015 年 2 月 12 日
i tried and it just give me a column of coordinate vector, i nid to display it as a image , anny idea?
Image Analyst
Image Analyst 2015 年 2 月 12 日
It's strange that you ignored my answer when you asked the same thing of me in my Answer. Any reason why? If you didn't ignore it and it didn't work for you, then post your non-working code.

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


Image Analyst
Image Analyst 2015 年 2 月 11 日
You can just put it by itself on the command line:
featureVector % No semicolon
to display it in the command window, or you could use fprintf if you want some more control over how it's formatted:
fprintf('%.2f ', featureVector);
or you could put it into a message and display it.
message = sprintf('%.2f ', featureVector);
uiwait(helpdlg(message));
or you could put it into a static text label in a GUI.
set(handles.text1, 'String', message);
or you could look at it in the variable editor. I could go on, but so as to not waste my time, how and where would you like to see it?
  11 件のコメント
Yealemzewud  Mekonnen
Yealemzewud Mekonnen 2017 年 6 月 4 日
@Image Analyst I used HOG descriptor code which is posted by Sanyam Garg (<http://www.mathworks.com/matlabcentral/fileexchange/46408-histogram-of-oriented-gradients--hog--code-using-matlab>)
function [feature] = hog_feature_vector(im)
can you help me to change the feature to an image after the function returns the feature?
Image Analyst
Image Analyst 2017 年 6 月 4 日
No - I suggest you ask Sanyam Garg about his code.

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

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by