【发布时间】:2015-06-10 06:00:31
【问题描述】:
我想从仅位于给定 RGB 输入图像中指定圆边界上的点获取像素坐标和 RGB 强度值,而不绘制圆并考虑其指定颜色。据我所知,只是在特定点上画圆。有什么帮助吗?谢谢。
yellow = uint8([255 255 0]);
% Create the shape inserter object.
shapeInserter = vision.ShapeInserter('Shape','Circles','BorderColor','Custom','CustomBorderColor',yellow);
% Read RGB input image.
I = imread('3.jpg');
% Define the circle dimensions
x1=80;
y1=80;
circle = int32([x1 y1 3]); % [x1 y1 radius]
% Draw the circle and display the result.
J = step(shapeInserter, I, circle);
imshow(J);
【问题讨论】:
标签: image matlab image-processing matlab-cvst