box detection/rectangle detection
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi
Here is my sample image. How to automatically grab/crop/know the region of each colour square without using 'get rect' function?
댓글 수: 0
채택된 답변
Image Analyst
2021년 11월 24일
There is a function for this: colorChecker()
Attached is a full demo.
댓글 수: 5
Roger Breton
2024년 1월 30일
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);
추가 답변 (1개)
yanqi liu
2021년 11월 25일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!