lqr_carver_get_ref_width(3) get the reference width of a LqrCarver object


#include <lqr.h>

gint lqr_carver_get_ref_width(LqrCarver* carver);


The function lqr_carver_get_ref_width returns the internal reference width of the image contained in the LqrCarver object pointed to by carver, in pixel units.

The reference width is set as the original height at carver initialization, and reset any time the carver gets subsequently flattened, either explicitly through lqr_carver_flatten(3) or implicitly when the rescale direction changes or an enlargment beyond the maximum enlargement step is performed.


Copyright © 2007-2009 Carlo Baldassi