Removing spurious holes in ASTER DEM data
1 view (last 30 days)
Show older comments
Hi there,
I am processing ASTER digital elevation data over glaciers (ASTER data obtained using wmsread from Mapping Toolbox), and have come across large anomalies in the data, likely due to cloud cover (they manifest as very low elevation 'pits'). I would like to either:
-automatically detect and remove these anomalies (i.e. set to NaN)
-automatically set the elevation values to interpolated values based on surrounding 'good' values
I would appreciate any ideas on how to proceed in detecting and removing these spurious points!
Automation is required as I have 10^5 glaciers to process. I have access to the statistics toolbox and the mapping toolbox at the moment. You can find the elevation data and the corresponding georeference object in glacier_DEM_problem.mat file, and a .png image of a problem glacier DEM all zipped together at the following link, if you are interested in looking at this problem in more detail.
Sincerely,
Jeremy Fyke
0 Comments
Answers (2)
Image Analyst
on 18 Apr 2012
You can use roifill() in the Image Processing Toolbox. First you have to get a 2D binary map of where your missing data are. What are the values of the missing data? Are they all zero?
Alternatively if you find them and can set them to nan's, you can use inpaint_nans, but again, you have to have your 2D image first.
1 Comment
Image Analyst
on 18 Apr 2012
Well somehow you have to be able to specify which pixels you want to fix. Can you show us an image of what it looks like?
See Also
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!