You are here

protected function Face_Detector::get_img_stats in Image Focus Crop 7

Same name and namespace in other branches
  1. 6 php-facedetection/FaceDetector.php \Face_Detector::get_img_stats()
1 call to Face_Detector::get_img_stats()
Face_Detector::face_detect in php-facedetection/FaceDetector.php

File

php-facedetection/FaceDetector.php, line 95

Class

Face_Detector

Code

protected function get_img_stats($canvas) {
  $image_width = imagesx($canvas);
  $image_height = imagesy($canvas);
  $iis = $this
    ->compute_ii($canvas, $image_width, $image_height);
  return array(
    'width' => $image_width,
    'height' => $image_height,
    'ii' => $iis['ii'],
    'ii2' => $iis['ii2'],
  );
}