I have two sets of data, and I want to know if the second set is sufficiently different from the first to be considered different.
More specifically, I have a sample set A from a number of pixels in the vicinity of point X in an image, and another sample B of pixels in the vicinity of point Y in the same image.
I want to know if point X and point Y could be part of the same object in the image (based on color values). For example, if A and B are both mostly blue then the answer is yes, but if A is red and pink and B is blue then the answer is no.
My only idea so far (based on vague memories of a statistics class I took years ago) is to calculate the standard deviation in A and B, and from that calculate a threshold that gives you 95% certainty, and see if they are within a certain distance of each other. Is this correct?
Otherwise, what's the best way to do this?