I've got a 30 m classification image and i'd like to convert it to 500 m resolution using a user-defined threshold value.
Basically what i'd like to accomplish is similar to using the Resample tool in ArcGIS based on a Majority filter, with the difference being i'd like to define the majority filter myself so that only when the total area of a particular class in a moving window exceeds 80% of the area of the moving window will that class be used to represent the aggregated cell.
I've tried multiple approaches but none gave me satisfactory results.
I wonder if anyone has encountered similar situation before?
أكثر...
Basically what i'd like to accomplish is similar to using the Resample tool in ArcGIS based on a Majority filter, with the difference being i'd like to define the majority filter myself so that only when the total area of a particular class in a moving window exceeds 80% of the area of the moving window will that class be used to represent the aggregated cell.
I've tried multiple approaches but none gave me satisfactory results.
I wonder if anyone has encountered similar situation before?
أكثر...