enum

CrImage::Util::CropStrategy

Inherits Enum / Comparable / Value / Object

Smart cropping strategies.

Different strategies for identifying important image regions:

  • Entropy : Keeps regions with most detail/information (texture, patterns)
  • Edge : Keeps regions with most edges (objects, boundaries)
  • CenterWeighted : Balances content importance with center proximity
  • Attention : Focuses on upper-center regions likely to contain subjects/faces

Constants

Entropy = 0
Edge = 1
CenterWeighted = 2
Attention = 3

Instance methods

attention?

Returns true if this enum value equals Attention

Source
center_weighted?

Returns true if this enum value equals CenterWeighted

Source
edge?

Returns true if this enum value equals Edge

Source
entropy?

Returns true if this enum value equals Entropy

Source