Perhaps a 3rd class of functions that takes in a neighborhood and a target and applies some labeling to the neighborhood only.