You are here

public function ImageFocusEntropy::getFocalPoint in Image Focus Crop 8

Get focal point.

Return value

array Array of points.

File

src/lib/ImageFocusEntropy.php, line 118

Class

ImageFocusEntropy
Class ImageFocusEntropy.

Namespace

Drupal\image_focus\lib

Code

public function getFocalPoint() {
  if (!isset($this->cx)) {
    $this
      ->calculateFocalPoint();
  }
  return [
    $this->cx,
    $this->cy,
  ];
}