HOG feature visualization, returned as an object. The function
outputs this optional argument to visualize the extracted HOG features.
You can use the plot method with the visualization output.
See the Extract and Plot HOG Features example.
HOG features are visualized using a grid of uniformly spaced rose plots. The cell size and the size
of the image determines the grid dimensions. Each rose plot shows
the distribution of gradient orientations within a HOG cell. The length
of each petal of the rose plot is scaled to indicate the contribution
each orientation makes within the cell histogram. The plot displays
the edge directions, which are normal to the gradient directions.
Viewing the plot with the edge directions allows you to better understand
the shape and contours encoded by HOG. Each rose plot displays two
times NumBins petals.
You can use the following syntax to plot the HOG features: plot(visualization) plots the HOG features
as an array of rose plots.plot(visualization,AX) plots HOG features
into the axes AX.plot(___,'Color',colorValue) Specifies the color used to plot HOG
features, where colorValue represents the color
as a 1-by-3 RGB vector, a short, or a long color name, described in
the Color
Value table.
|