Change CLASSIFICATION of FEATURES with CODE . . .
I have an image that has approximately 100 features in it that have been found with a THRESHOLD and a COUNT.
After the COUNT all of the features are in CLASS 1
I create CLASS 2 and I would like to reclassify some of the features with CODE based on the position of each feature in the image.
I have code that will perform this operation but it does it one by one and it takes about 20 seconds to work through the 100 features in the image.
In reality I determine the DISTANCE of each FEATURE CENTER XY from a REFERENCE CENTER XY (perhaps the UPPER LEFT IMAGE CORNER) in the image. I would like an efficient way to classify each FEATURE as being CLASS 1 NEAR (< 1 mm DISTANCE) or CLASS 2 FAR (>= 1 mm DISTANCE) from the REFERENCE XY.
I have a ROUTINE that does this individually but I would like to do this as a group.