Вы находитесь на странице: 1из 1

Used to highlight a specific range of colors in an image to separate objects from surroundings

Display just the colors of interest, or use the regions defined by specified colors for further
processing
More complex than gray-level slicing, due to multiple dimensions for each pixel
Dependent on the color space chosen; I prefer HSI
Using a cube of width W to enclose the reference color with components (a1, a2, . . . , an), the
transformation is given by
𝑤
0.5 𝑖𝑓 [|𝑟𝑗 − 𝑎𝑗 | > ] 𝑎𝑛𝑦 1 ≤ 𝑗 ≤ 𝑛 𝑖 = 1,2, … 𝑛
𝑆𝑖 = { 2
𝑟𝑖
𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
If the color of interest is specified by a sphere of radius R0, the transformation is

0.5 𝑖𝑓 ∑(𝑟𝑗 − 𝑎𝑗 )2 > 𝑅02 𝑖 = 1,2, … 𝑛


𝑆𝑖 = {
𝑟𝑖 𝑗=1
𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

Вам также может понравиться