selectConvexHull Method (CBlkRateDistStats)
In This Topic
Compute the rate-distorsion slopes and selects those that lie in a convex hull. It will compute the slopes, select the ones that form the convex hull and initialize the 'truncIdxs' and 'truncSlopes' arrays, as well as 'nVldTrunc', with the selected truncation points. It will also initialize 'truncRates' and 'isTermPass' arrays, as well as 'nTotTrunc', with all the truncation points (selected or not).
Note that the arrays 'rates' and 'termp' are copied, not referenced, so they can be modified after a call to this method.
Syntax
Parameters
- rates
- The rates (in bytes) for each truncation point in the compressed data. This array is modified by the method.
- dists
- The reduction in distortion (with respect to no information coded) for each truncation point. This array is modified by the method.
- termp
- An array of boolean flags indicating, for each pass, if a pass is terminated or not (true if terminated). If null then it is assumed that no pass is terminated except the last one which always is.
- n
- The number of truncation points contained in 'rates', 'dist' and 'termp'.
- inclast
- If false the convex hull is constructed as for lossy coding. If true it is constructed as for lossless coding, in which case it is ensured that all bit-planes are sent (i.e. the last truncation point is always included).
See Also