フィルターのクリア

How do I apply a histogram to each cell?

4 ビュー (過去 30 日間)
Jae Min Lee
Jae Min Lee 2018 年 10 月 26 日
編集済み: KSSV 2018 年 10 月 26 日
We split the 256x256 image into a 10x10 patch using the mat2cell function.
How do I apply a histogram to each cell?
Histogram functions are generation functions, not built-in functions.
For example, gradientHistogram (image, numBin);

採用された回答

KSSV
KSSV 2018 年 10 月 26 日
Use loop or cellfun.
A{1} = rand(10,1) ;
A{2} = rand(20,1) ;
H1 = cellfun(@hist,A,'un',0) ;
H2 = cell(length(A),1) ;
for i = 1:length(A)
H2{i} = hist(A{i});
end
  2 件のコメント
Jae Min Lee
Jae Min Lee 2018 年 10 月 26 日
Thank you, KSSV
I want to ask one.
Can I use the newly created function instead of the matlab intrinsic function in the cellfun function?
KSSV
KSSV 2018 年 10 月 26 日
編集済み: KSSV 2018 年 10 月 26 日
Very much you can use......
Thanks is accepting and voting the answer..:)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by