I have a land use raster and trying to find euclidean distance from specific classes only to source cells. The problem is that the Euclidean operation will find distance from every cell in the raster to the source cells which can be time consuming. The information I need is only for a smaller subset of the cells. Right now my option is to filter the distance values for the specific cells as a post-process step. But wondering if there is a way to constrain the euclidean distance process to specific cells only?