Esempio n. 1
0
 public function __construct(\ImagickDemo\ImagickKernel\Control\usage $usageControl, VariableMap $variableMap)
 {
     $this->usageControl = $usageControl;
     $this->morphologyType = $variableMap->getVariable('morphologyType', \Imagick::MORPHOLOGY_EDGE_IN);
     parent::__construct($usageControl);
     $this->functionTable = [\Imagick::MORPHOLOGY_CONVOLVE => "renderConvolve", \Imagick::MORPHOLOGY_CORRELATE => "renderCorrelate", \Imagick::MORPHOLOGY_ERODE => "renderErode", \Imagick::MORPHOLOGY_DILATE => "renderDilate", \Imagick::MORPHOLOGY_ERODE_INTENSITY => "renderErodeIntensity", \Imagick::MORPHOLOGY_DILATE_INTENSITY => "renderDilateIntensity", \Imagick::MORPHOLOGY_DISTANCE => "renderDistance", \Imagick::MORPHOLOGY_DISTANCE . "Chebyshev" => "renderDistanceChebyshev", \Imagick::MORPHOLOGY_DISTANCE . "Manhattan" => "renderDistanceManhattan", \Imagick::MORPHOLOGY_DISTANCE . "Octagonal" => "renderDistanceOctagonal", \Imagick::MORPHOLOGY_DISTANCE . "Euclidian" => "renderDistanceEuclidian", \Imagick::MORPHOLOGY_ITERATIVE => "renderDistanceIterative", \Imagick::MORPHOLOGY_OPEN => "renderOpen", \Imagick::MORPHOLOGY_CLOSE => "renderClose", \Imagick::MORPHOLOGY_OPEN_INTENSITY => "renderOpenIntensity", \Imagick::MORPHOLOGY_CLOSE_INTENSITY => "renderCloseIntensity", \Imagick::MORPHOLOGY_SMOOTH => "renderSmooth", \Imagick::MORPHOLOGY_EDGE_IN => "renderEdgeIn", \Imagick::MORPHOLOGY_EDGE_OUT => "renderEdgeOut", \Imagick::MORPHOLOGY_EDGE => "renderEdge", \Imagick::MORPHOLOGY_TOP_HAT => "renderTopHat", \Imagick::MORPHOLOGY_BOTTOM_HAT => "renderBottomHat", \Imagick::MORPHOLOGY_HIT_AND_MISS => "renderHitAndMiss", \Imagick::MORPHOLOGY_THINNING => "renderThinning", \Imagick::MORPHOLOGY_THICKEN . "Standard" => "renderThicken", \Imagick::MORPHOLOGY_THICKEN . "Convex" => "renderThickenConvexHull"];
 }
Esempio n. 2
0
 /**
  * @param \Auryn\Injector $injector
  * @param $customImageFunction
  * @param \ImagickDemo\Example $exampleController
  * @param \ImagickDemo\Control $control
  * @return mixed
  * @throws \Exception
  */
 public function getCustomImageResponse(Example $exampleController, Control $control)
 {
     $params = $control->getFullParams($exampleController->getCustomImageParams());
     $defaultCustomParams = array('customImage' => true);
     $params = array_merge($defaultCustomParams, $params);
     $injectionParams = InjectionParams::fromParams(array('params' => $params, 'customImage' => true));
     $tiers = [];
     $tiers[] = new Executable('cachedImageCallable', $injectionParams);
     $tiers[] = new Executable('createImageTask');
     $tiers[] = new Executable('directCustomImageCallable');
     return $tiers;
 }
Esempio n. 3
0
 /**
  * @param \Auryn\Injector $injector
  * @param $customImageFunction
  * @param \ImagickDemo\Example $exampleController
  * @param \ImagickDemo\Control $control
  * @return mixed
  * @throws \Exception
  */
 function getCustomImageResponse(CategoryNav $categoryNav, \Auryn\Injector $injector, $customImageFunction, \ImagickDemo\Example $exampleController, \ImagickDemo\Control $control)
 {
     $injector->defineParam('imageFunction', $customImageFunction);
     $params = $control->getFullParams($exampleController->getCustomImageParams());
     $defaultCustomParams = array('customImage' => true);
     $params = array_merge($defaultCustomParams, $params);
     return $this->getImageResponseInternal($categoryNav, $injector, $params);
 }
 function __construct(samplingFactorsControl $samplingFactorControl, VariableMap $variableMap)
 {
     parent::__construct($samplingFactorControl);
     $this->samplingFactorControl = $samplingFactorControl;
     $this->request = $variableMap;
 }
 function __construct(\ImagickDemo\Control\ImageControl $imageControl)
 {
     $this->imageControl = $imageControl;
     parent::__construct($imageControl);
 }
Esempio n. 6
0
 public function __construct(FXAnalyzeControl $fxAnalyzeControl)
 {
     parent::__construct($fxAnalyzeControl);
     $this->type = $fxAnalyzeControl->getCompositeExampleType();
 }
Esempio n. 7
0
 public function __construct(fromMatrixControl $control)
 {
     parent::__construct($control);
     $this->fromMatrixControl = $control;
 }
Esempio n. 8
0
 function __construct(fromBuiltInControl $control)
 {
     parent::__construct($control);
     $this->builtInControl = $control;
 }