Change language

PHP Gmagick medianfilterimage () Function

| |
Syntax:
void Gmagick::medianfilterimage ($radius)
Parameters: this function takes one parameter, $radius, which is used to store the radius of the pixel.Return Value:This function returns a Gmagick object with a median filter. Errors / Exceptions:this function throws a GmagickException on error.The following programs illustrate the Gmagick::medianfilterimage() functionin PHP :Program 1:
Input image:  
// Co create a Gmagick object $gmagick = new Gmagick ( https://media.engineerforengineer.org/wp-content/uploads/tech.png );  
// Using the medianfilterimage function $gmagick -> medianfilterimage (12); header ( ’ Content-type: image / png’ );  
// Display image echo $gmagick ; ?>
Output:Program 2: < tbody>  
// Create a GmagickDraw object $draw = new GmagickDraw();  
// Create GmagickPixel $strokeColor = new GmagickPixel ( ’Red’ ); $fillColor = new GmagickPixel ( ’Green’ );  
// Set the color, opacity of the image $draw -> setStrokeOpacity (1); $draw -> setStrokeColor ( ’Red’ ); $draw -> setFillColor ( ’Green’ );  
// Set the width and height of the image $draw -> setStrokeWidth (7); $draw -> setFontSize (72);  
// Function for drawing a circle $draw -> circle (250, 250, 100, 150); $gmagick = new Gmagick(); $gmagick -> newImage (500, 500, ’White’ ); $gmagick -> setImageFormat ( "png" ); $gmagick -> drawImage ( $draw );  
// Using the medianfilterimage function $gmagick -> medianfilterimage (12);  
// Display the output image header ( "Content-Type: image / png" ); echo $gmagick -> getImageBlob(); ?>
Output: Link : http://php.net/manual/en/gmagick.medianfilterimage.php

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method