mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-28 09:59:54 +02:00
Added support for custom convolutions. Fix #49.
This commit is contained in:
38
webroot/test/test_issue49.php
Normal file
38
webroot/test/test_issue49.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// Include config for all testcases
|
||||
include __DIR__ . "/config.php";
|
||||
|
||||
|
||||
|
||||
// The title of the test case
|
||||
$title = "Testing issue 49 - flexible convolution";
|
||||
|
||||
|
||||
|
||||
// Provide a short description of the testcase.
|
||||
$description = "Creating shortcuts to custom convolutions by using configurable list of constant convolutions.";
|
||||
|
||||
|
||||
|
||||
// Use these images in the test
|
||||
$images = array(
|
||||
'kodim08.png',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// For each image, apply these testcases
|
||||
$testcase = array(
|
||||
'&nc&width=400&convolve=lighten',
|
||||
'&nc&width=400&convolve=darken',
|
||||
'&nc&width=400&convolve=sharpen',
|
||||
'&nc&width=400&convolve=emboss',
|
||||
'&nc&width=400&convolve=blur',
|
||||
'&nc&width=400&convolve=blur:blur',
|
||||
'&nc&width=400&convolve=blur:blur:blur:blur',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Apply testcases and present results
|
||||
include __DIR__ . "/template.php";
|
Reference in New Issue
Block a user