ImagickKernel::getMatrix Get the 2d matrix of values used in this kernel &reftitle.description; public arrayImagickKernel::getMatrix Get the 2d matrix of values used in this kernel. The elements are either float for elements that are used or 'false' if the element should be skipped. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; A matrix (2d array) of the values that represent the kernel. &reftitle.examples; <function>ImagickKernel::getMatrix</function> "; foreach ($matrix as $row) { $output .= ""; foreach ($row as $cell) { $output .= ""; if ($cell === false) { $output .= "false"; } else { $output .= round($cell, 3); } $output .= ""; } $output .= ""; } $output .= ""; return $output; } $output = "The built-in kernel name 'ring' with parameters of '2,3.5':
"; $kernel = \ImagickKernel::fromBuiltIn( \Imagick::KERNEL_RING, "2,3.5" ); $matrix = $kernel->getMatrix(); $output .= renderKernelTable($matrix); echo $output; ?> ]]>