FZ_FormBase.GetHistgram
Gets the histogram data within the rectangle of the image
Public Shared Function GetHistgram( _
ByVal unitNo As Integer, _
ByVal imageNo As Integer, _
ByVal imageChannel As Integer, _
ByVal rectangle As System.Drawing.Rectangle, _
ByRef histgram() As Integer _
) As Integer
Parameters
unitNo
|
Unit-number of processing item related to image input and image conversion
|
Input
|
imageNo
|
Image number
|
Input
|
imageChannel
|
Image channel number for RGB color image (R:0, G:1 and B:2). Ignored for black and white image.
|
Input
|
rectangle
|
Targeted rectangular area.
|
Input
|
histgram
|
Array to store frequency data. When the function is executed, it is resized.
|
Output
|
Return Value
Returns 0 when moving a processing unit succeeded.
Otherwise returns a non-zero value.
Description
Gets the histogram data within the rectangle of the image.
Example
Private Sub DisplayUpdate(ByVal sender As Object, ByVal e As System.EventArgs)
' Gets the histogram data within the rectangle of the image.
unitNo = 0
imageNo = 0
color = 0
rect.X = 100 : rect.Y = 100 : rect.Width = 200 : rect.Height = 200
GetHistgram(unitNo, imageNo, color, rect, histgram)
End Sub