The QTPlgImageHistogram class allows you to deal with histogram.
Since version 6.7 of the plugin this class can be used in Console Applications
At time there is no way to obtain valid QTPlgImageHistogram class instances but using the property of the class. You can obtain copies of a QTPlgImageHistogram class instance using its . As usual, the ˜QTPlgImageHistogram class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used.
The class provides you with the following initializer methods:
(other as QTPlgImageHistogram)
This is the copy constructor. The properties of the object to be copied will be used to initialize the
new class instance properties
specifies the number of the bins that constitute the histogram
allows you to retrieve the value of the histogram’s bin specified by the index i ; this index ranges from
0 to -1