MATLAB: How to pixel coordinate for a given image pixel coordinates I have an image. I want to get the pixel coordinates for the image. How can i get that? Best Answer The coordinate is simply the row and column. Let's say you want the intensity of an image in the 3rd row and 7th column of the image, then simply dopixelValue = yourImage(3, 7); Related SolutionsMATLAB: Convert an image pixel coordinate to physical coordinate Yes.% Get the image size.[rows columns numberOfColorChannels] = size(imageArray);% Create the spatial calibration factors.realWorldUnitsPerPixel_x = (xmax - xmin) / columns;realWorldUnitsPerPixel_y = (ymax - ymin) / rows;% Now let's say you had some pixel coordinate (column, row):realWorldX = xmin + realWorldUnitsPerPixel_x * column;realWorldY = ymin + realWorldUnitsPerPixel_y * row;% Now realWorldX and realWorldY are in terms of real world units. MATLAB: Cropping image To crop you can use imcrop(), or simply use indexing:croppedImage = fullImage(row1:row2, col1:col2); Related QuestionConverting the pixel into coordinate.How to find pixel coordinate
Best Answer