Working on Google Earth Engine and still finding this challenging. I have two images, the first one is an image of landcover categories and the second one land management units. I want to cross these categorical images to obtain basically a count of pixels of each landcover in each unit.
I guess this is called a cross-tabulation, a contingency table or a tabulate operation (in ArcGIS). I have noted the tutorial on the reducer to get zonal statistics but this is not quite what I need https://developers.google.com/earth-engine/reducers_grouping.
Is this possible to implement in Earth Engine? I would be surprised if not!
Vectorizing one image to do the analysis seems like a very lousy approach.