@param int $amount
@param int $radius
@param int $threshold

@return $this
550834
public function unsharpMask($amount = 80, $radius = 1, $threshold = 1)
    {
        $this->actions_to_perform[] = ['unsharpMask', ['amount' => $amount, 'radius' => $radius, 'threshold' => $threshold]];

        return $this;
    }
1221546
public function setAmount(float $amount): self
    {
        $this->amount = (int) ($amount * self::FACTOR_AMOUNT);
        return $this;
    }
251024
public function setAmount($amount)
    {
        $amount = (int) (string) $amount;

        if (!Icepay_Parameter_Validation::amount($amount))
            throw new Exception('Amount not valid');
        $this->data->ic_amount = $amount;
        return $this;
    }
941171
public function exchange($from, $to, $amount = 1) {
        return $this->getExchange()->setHeader([
            'apikey' => $this->get('apikey')
        ])->parameters([
            'fromCurrency' => $from,
            'toCurrency' => $to,
            'amount' => $amount
        ])->json();
    }
648166
private static function roundTowardsZero($amount)
    {
        $result = self::discardDecimalDigitsZero($amount);

        $point = strpos($result, '.');

        if (false !== $point) {
            $result = substr($result, 0, $point);
        }

        return $result;
    }
661474
public function create($amount, $currency)
    {
        $result = new Money($amount, $currency);
        $this->validator->validateMoney($result);
        return $result;
    }
821165
public function setLimit($count, $offset = null)
    {
        $this->_dsql()->limit($count, $offset);

        return $this;
    }
153555
public function validateMin($amount)
    {
        $this->validator_attributes[] = 'data-parsley-min="' . (float)$amount . '"';

        $this->validator_checks['min'] = (float)$amount;

        return $this;
    }
62862
protected function transformAmount($amount = '', $currency = '')
    {
        if (!empty($amount) && !empty($currency)) {
            return \Genesis\Utils\Currency::amountToExponent($amount, $currency);
        }

        return false;
    }
434975
function(threshold) {
      var source = this.getSource(),
          average = (source[0] * 0.3 + source[1] * 0.59 + source[2] * 0.11).toFixed(0),
          currentAlpha = source[3],
          threshold = threshold || 127;

      average = (Number(average) < Number(threshold)) ? 0 : 255;
      this.setSource([average, average, average, currentAlpha]);
      return this;
    }
671173
public static function checkAmount($amount)
    {
        if ($amount < 0 || $amount === null) {
            throw new HpsInvalidRequestException(
                HpsExceptionCodes::INVALID_AMOUNT,
                'Must be greater than or equal to 0.',
                'amount'
            );
        }
        $amount = preg_replace('/[^0-9\.]/', '', $amount);
        return sprintf("%0.2f", round($amount, 3));
    }
1061504
public function authorize($amount = null)
    {
        $builder = new HpsCreditServiceAuthorizeBuilder($this);
        return $builder
            ->withAmount($amount)
            ->withCurrency('usd');
    }
399258
public function setAmount(MoneyInterface $amount)
    {
        $this->amount = $amount->getAmount();
        $this->amountCurrency = $amount->getCurrency();

        return $this;
    }
168753
private static function roundAwayFromZero($amount)
    {
        $result = self::roundTowardsZero($amount);

        if (0 != bccomp($amount, $result, self::BCSCALE)) {
            if (1 == bccomp($amount, '0', self::BCSCALE)) {
                $result = bcadd($result, '1', self::BCSCALE);
            } elseif (-1 == bccomp($amount, '0', self::BCSCALE)) {
                $result = bcsub($result, '1', self::BCSCALE);
            }
        }

        return $result;
    }
1046813
private static function roundHalfTowardsZero($amount)
    {
        if (0 <= bccomp($amount, '0', self::BCSCALE)) {
            $result = self::roundHalfDown($amount);
        } else {
            $result = self::roundHalfUp($amount);
        }

        return $result;
    }
19159
static public function fromMicro($amount, $divisibility = 6)
    {
        $amt = new Amount(["amount" => $amount]);
        $amt->setDivisibility($divisibility);

        return $amt;
    }
307242
public function incrementRateLimitCallCount(int $amount = 1)
    {

        cache()->set($this->getRateLimitKey(), $amount, carbon('now')->addMinute(1));
    }