Keypoint Highlighting with Local Image Colors 

Highlighting specific points on a color image can be a nontrivial task due to poor contrast or low-visibility color combinations between the markers and the surrounding regions. Use the color processing functions in the Wolfram Language to create contrast-aware, high-contrast colors for a set of markers.

Find the coordinate of the key features in an image using ImageKeypoints.

In[1]:=
Click for copyable input
X
Out[1]//Short=

Highlight keypoints on the image. It is typically difficult to find a single color that has optimal contrast against all the selected features.

In[2]:=
Click for copyable input
X
Out[2]=

Compute the color that represents the color that shows up behind each keypoint. Use BilateralFilter to smooth the image.

In[3]:=
Click for copyable input
X
Out[3]=

Highlight keypoints with either black or white according to the region luminance taken from the L channel of LCh.

In[4]:=
Click for copyable input
X
In[5]:=
Click for copyable input
X
Out[5]=

Highlight keypoints with a highly contrasting hue.

In[6]:=
Click for copyable input
X
Out[6]=
In[7]:=
Click for copyable input
X
Out[7]=
In[8]:=
Click for copyable input
X
Out[8]=
de es ja pt-br zh