Attempt to reference field of non-structure array.
古いコメントを表示
whenever i run the code with parameter(3,2,2*19,4,5)..it gives error attempt to reference field of non structure array..please help to resolve error
function [x,y]=Untitled2( x, y, IntegralImages, w,h)
% [x,y]=Untitled2( x, y, IntegralImages, w,h)
%
% Calculate the mean
InverseArea = 1 / (w*h);
mean = GetSumRect(IntegralImages.ii,x,y,w,h)*InverseArea;
% Use the mean and squared integral image to calculate the grey-level
% Varianceiance, of every search window
Variance = GetSumRect(IntegralImages.ii2,x,y,w,h)*InverseArea - (mean.^2);
回答 (1 件)
Azzi Abdelmalek
2013 年 5 月 21 日
0 投票
What is IntegralImages.ii? this causes the error
2 件のコメント
divya
2013 年 5 月 21 日
編集済み: Azzi Abdelmalek
2013 年 5 月 21 日
Jan
2013 年 5 月 21 日
@divya: No, it is your turn to tell us the error. How could we guess, what the expected "correct" result is?
カテゴリ
ヘルプ センター および File Exchange で Contrast Adjustment についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!