find pixels of a line in picture
조회 수: 8(최근 30일)
Hello everyone, i have a question maybe its really easy but i dont really know how to do it.
How can i find the pixels in the pixture that corresponde in a certain line within the picture.
For example if i have the image bellow and i draw the red line as shown below how can i find the pixels of the image that are in that line.
KALYAN ACHARJYA 2021년 3월 24일
편집: KALYAN ACHARJYA 2021년 3월 24일
% Load the image
% Get the one plane/Gray Image
% Segment the ROI
% Display the Region of Interest
% Get the rows and column indices of ROI
% Get the pixel values of particular rows & columns
Note: you may get 3 pixels values for single row & cloumns indices, as there are three plane in the RGB image.