An image is taken as input and converted to CIE-Lab colour space. Now I have to select the object of interest in the image and find the euclidian distance among one pixel selected from the object of interest and the rest of the points in the image. My problem is
1.Selecting my object of interest. ( In the below image I want to select the red chair) 2. To measure the euclidian distance from one pixel from that red chair to the rest of the points of the image 3. compute the delta values of the image yielding only one chromatic difference on an image referred as to delta image. 4. Since the chromatic difference between two pixels gives a low value when both pixels are similar and a high value otherwise, according to this, such difference can be interpreted as a probability value of belonging to a particular colour.
I have coded this far:
- Taken input of the image 2.Performed homography 3.Transformed to CIE- Lab space
After this I am instructed to measure euclidian distance. Please help