User`s guide
Pixel Statistics
10 UsetheReshapeblockstotransformtherowvectorsoutputfromtheBus
Selector block into columns vectors. Set the Output dimensionality
parameters to
Column vector (2-D).
11 Use the Matrix Concatenation block to concatenate the R, G, and B column
vectors into a single matrix so they can be displayed using the Vector Scope
block. Set the Number of inputs parameter to
3.
12 Use the Vector Scope b lock to display the histograms of the R, G, and B
values of the input image. Set the block parameters as follows:
• Scope Properties pane, Input domain =
User-defined
• Display Properties pane, clear the Frame number check box
• Display Properties pane, select the Channel legend check b ox
• Display Properties pane, select the Compact display check box
• Axis Properties pane, clear the Inherit sample i ncrement from
input check box.
• Axis Properties pane, Minimum Y-limit =
0
• Axis Properties pane, Maximum Y-limit = 1
• Axis Properties pane, Y-axis title = Count
• Line Properties pane, Line markers = .|s|d
• Line Properties pane, Line colors = [1 0 0]|[0 1 0]|[ 0 0 1]
13 Connect the blocks as shown in the following figure.
7-63