You are here

function image_focus_get_focal_point_entropy in Image Focus Crop 7

Same name and namespace in other branches
  1. 6 image_focus.module \image_focus_get_focal_point_entropy()

Get the focal point using entropy.

See also

http://www.mathworks.com/help/toolbox/images/ref/entropy.html

http://drupal.org/project/smartcrop

1 call to image_focus_get_focal_point_entropy()
image_focus_get_focal_point in ./image_focus.module
Returns the focal point of the image.

File

./image_focus.module, line 80
Image Focus Crop module.

Code

function image_focus_get_focal_point_entropy($resource) {
  module_load_include('inc', 'image_focus', 'image_focus.entropy');
  $entropy = new ImageFocusEntropy($resource);
  return $entropy
    ->getFocalPoint();
}