|
if all(col == [255 0 0]) |
|
% frameColor = (frameK./255) .* frameCMYK(:,:,3); % Red |
|
frameColor = frameCMYK(:,:,3); % Red |
|
elseif all(col == [0 255 255]) |
|
% frameColor = (frameK./255) .* frameCMYK(:,:,1); % Cyan |
|
frameColor = frameCMYK(:,:,1); % Cyan |
|
end |
Specifically, frameColor = frameCMYK(:,:,3); % Red is the Yellow layer of the image not the red one.
Keep using Cyan for detection.
SMART_matlab/Helpers/Detect_Sphero_Ver2_5.m
Lines 43 to 49 in cecdc45
Specifically,
frameColor = frameCMYK(:,:,3); % Redis the Yellow layer of the image not the red one.Keep using Cyan for detection.