box detection/rectangle detection
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Salad Box
el 24 de Nov. de 2021
Comentada: Roger Breton
el 30 de En. de 2024
Hi
Here is my sample image. How to automatically grab/crop/know the region of each colour square without using 'get rect' function?
0 comentarios
Respuesta aceptada
Image Analyst
el 24 de Nov. de 2021
There is a function for this: colorChecker()
Attached is a full demo.
5 comentarios
Roger Breton
el 30 de En. de 2024
I tried your "Test.m" code and still got the same error message: "Color patches were not detected."?
% Read in image that has a Color Checker chart in it but that has unknown image capture conditions.
% fileName = 'colorCheckerTestImage.jpg';
fileName = 'CC24 in Scene JPEG.jpg';
rgbImage = imread(fileName);
Más respuestas (1)
yanqi liu
el 25 de Nov. de 2021
clc; clear all; close all;
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/812319/image.jpeg';
img = imread(filename);
% use colorChecker
chart = colorChecker(img);
displayChart(chart)
% use measureColor
[colorTable, ccm] = measureColor(chart);
figure;
displayColorPatch(colorTable); set(gcf, 'units','normalized','position',[0,0,1,1])
colorTable
Ver también
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!