Hello
I have a problem which I have not found a solution on my own.
I have a raster data layer (as shown below) where I want to keep all the pixels that are adjacent and grouped with at least 20 pixels. I don't care about the pixels value as I have already selected all the pixels with the values I want.
I also want to keep each pixels information and not combine them into a single pixel or polygon with a summed value.

Below is the result I want to end up with. I want to be able to run multiple analysis to change the variable of the lowest common denominator of how many pixels should be present in the group e.g. 20 or 30.

The above result was made my one of my colleagues by coding in Python. I cannot code and therefore is looking for an option within ArcGIS Pro or QGIS.
I hope this is understandable.