displayChart
Display test chart with overlaid regions of interest
Description
Examples
Display Color Patch ROIs on eSFR Chart
Read an image of an eSFR chart into the workspace.
I = imread("eSFRTestImage.jpg");
Create an esfrChart
object that stores information about the test chart.
chart = esfrChart(I);
Display only the color patch ROIs. To accomplish this, turn off the display of slanted edge ROIs, gray patch ROIs, and registration points.
displayChart(chart,displayEdgeROIs=false,displayGrayROIs=false, ...
displayRegistrationPoints=false);
Display Registration Points on ColorChecker Chart
Read an image of a ColorChecker® chart into the workspace.
I = imread("colorCheckerTestImage.jpg");
Create a colorChecker
object by performing automatic chart detection on the image.
chart = colorChecker(I);
Display the chart with the detected corner registration points only. Turn off the display of the color patch ROIs.
displayChart(chart,"displayColorROIs",false)
Input Arguments
chart
— Test chart
esfrChart
object | colorChecker
object
Test chart, specified as an esfrChart
object or a colorChecker
object.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: 'displayRegistrationPoints',false
turns off the overlay
of registration points on the chart.
displayEdgeROIs
— Display slanted edge ROIs
true
or
1
(default) | false
or 0
Display slanted edge ROIs, specified as a numeric or
logical 1
(true
) or 0
(false
). When displayEdgeROIs
is
true
, the 60 slanted-edge bounding boxes are
overlaid on the image in pale yellow.
This argument is supported by eSFR test charts only.
displayGrayROIs
— Display gray patch ROIs
true
or
1
(default) | false
or 0
Display gray patch ROIs, specified as a numeric or
logical 1
(true
) or 0
(false
). When displayGrayROIs
is
true
, the 20 gray patch bounding boxes are
overlaid on the image in blue.
This argument is supported by eSFR test charts only.
displayColorROIs
— Display color patch ROIs
true
or
1
(default) | false
or 0
Display color patch ROIs, specified as a numeric or
logical 1
(true
) or 0
(false
). When displayColorROIs
is
true
, the 16 color patch bounding boxes are
overlaid on the image in dark yellow.
displayRegistrationPoints
— Display registration points
true
or
1
(default) | false
or 0
Display registration points, specified as a numeric or
logical 1
(true
) or 0
(false
). When displayRegistrationPoints
is
true
, the four registration points are indicated
with a red diamond overlay.
Parent
— Axes handle of displayed image object
axes handle
Axes handle of the displayed image object, specified as an axes
handle. Parent
specifies the parent of the image
object created by displayChart
.
References
[1] Imatest. "Esfr". https://www.imatest.com/mathworks/esfr/.
[2] Calibrite. "ColorChecker Classic". https://calibrite.com/us/product/colorchecker-classic/.
Version History
Introduced in R2017b
See Also
Functions
Objects
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)