フィルターのクリア

removing boxes with a low amount of data points?

4 ビュー (過去 30 日間)
Michael
Michael 2014 年 10 月 8 日
回答済み: Image Analyst 2014 年 10 月 10 日
Hello,
I have scattered data points on a 3127 x 254 grid. I would like to interpolate this onto a regular grid (which I have done with triscatteredInterp) but now I would like to find and remove grid boxes that contained less than 30 data points when interpolation took place.
Does anyone know how I could do this?
thanks, Michael
  5 件のコメント
Image Analyst
Image Analyst 2014 年 10 月 10 日
Note: requires Mapping Toolbox - wish I'd know that before I wasted my time. I added it to the products list below so others don't waste theirs.
Michael
Michael 2014 年 10 月 10 日
Sorry Image Analyst, I was unaware myself that I was using the mapping toolbox.

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

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 10 日
Since I can't try your code, all I can suggest is to do a convolution on your array, if you can get your array that is basically a "map" with counts as the values:
window = ones(7); % Look everywhere in a sliding 7 by 7 window
% Count in each window
sumInWindows = conv(theCountArray, window, 'same');
% Find where count is below, say, 30
binaryImage = sumInWindows < 30;
image(binaryImage);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolating Gridded Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by