I extracted the middle and high vegetation points from a lidar-point cloud and converted the points into two separate rasters (one for the high vegetation in dark green and one for the middle vegetation in light green). There are many areas where the raster of the middle vegetation overlays with the high vegetation, so I wanted to subtract the high vegetation raster from the middle vegetation raster to get the "true shrub vegetation". To do so, I first created the "Boolean AND" from both raster to get the pixels where both rasters overlay (see blue pixels).
I thought I could just subtract the
"high_mid_veg_boolean" from the
"mid_veg_to_raster" within the raster calculator, but this only generates the boolean raster again (?).
I also tried to do it with a condition, where all pixels from the
"mid_veg_to_raster" that have the value 4 should stay 4 and where all values from the
"high_mid_veg_boolean" that have the value 1 should stay 1 (to generate a raster with 2 values(4,1)). But this also only generates the "Boolean AND" raster again.
I really don't know what I'm doing wrong, it seems like such an easy task in general. But it just does not work.
Is there a way to set all pixels from the
"mid_veg_to_raster" that overlay with the
"high_veg_to_raster" to NULL, or to delete them from the raster?