box detection/rectangle detection
Afficher commentaires plus anciens
Hi
Here is my sample image. How to automatically grab/crop/know the region of each colour square without using 'get rect' function?

Réponse acceptée
Plus de réponses (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 commentaire
Salad Box
le 29 Nov 2021
Catégories
En savoir plus sur Modify Image Colors dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


