qmegas/sobel-operator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qmegas/sobel-operator

最新稳定版本:1.0.0

Composer 安装命令:

composer require qmegas/sobel-operator

包简介

PHP implementation of Sobel operator (Sobel filter)

README 文档

README

This is Sobel operator (or Sobel filter) implementation on PHP. It used in image processing and computer vision, particularly within edge detection algorithms. Read full article in Wikipedia

Installation

composer require qmegas/sobel-operator

Requirements

PHP >= 7.0

Usage Examples

<?php

$sobel = new \Qmegas\SobelOperator();
$image = imagecreatefromjpeg('1.jpg');
header('Content-type: image/png');
imagepng($sobel->applyFilter($image));

Options

Parameter Description
flat Enables flat mode
threshold Set threshold manually. In case that parameter is not set, algorithm choose threshold automatically
return_threshold Return an array of two elements. First one is an image with Sobel filter applied, second element is value of applied threshold
<?php

$sobel = new \Qmegas\SobelOperator();
$image = imagecreatefromjpeg('1.jpg');
header('Content-type: image/png');
imagepng($sobel->applyFilter($image, [
	'flat' => true,
	'threshold' => 30,
]));

统计信息

  • 总下载量: 537
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固