I am getting myself a bit confused by the cloud masks for S2 products. Basically I am trying to run a K means classification on a subset image. I understand that the cloud masks are available at the tile level but once you resample and subset these are no longer available. I have created a cloud mask band using the methodology outlined in the RUS webinar on NBR but I am now not sure how to add this as an RoI mask within the classification process. Do I need to convert this into a vector somehow?
I have tried using one of the cloud masks in the K means at the tile level but this didnt work as it applied the K means to the areas of cloud not the rest of the tile outwith the cloud, do I need to do some kind of inversion here?
Any help would be much appreciated.
cheers the now