box detection/rectangle detection
Mostrar comentarios más antiguos
Hi
Here is my sample image. How to automatically grab/crop/know the region of each colour square without using 'get rect' function?

Respuesta aceptada
Más respuestas (1)
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
1 comentario
Salad Box
el 29 de Nov. de 2021
Categorías
Más información sobre Modify Image Colors en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


