Categories

Image Morphological Opening

Apply morphological opening operation (erosion followed by dilation) to remove small noise and separate connected objects

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: image/jpeg, image/png, image/webp, image/gif, image/bmp, image/tiff

Best results with binary (black and white) images or images with high contrast

Number of opening operations to apply. More iterations = stronger noise removal

Size of the morphological kernel to use

API Documentation

Request Endpoint

POST /en/api/tools/image-open

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Best results with binary (black and white) images or images with high contrast
iterations number No Number of opening operations to apply. More iterations = stronger noise removal
kernelType select No Size of the morphological kernel to use

File type parameters need to be uploaded first via POST /upload/image-open to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-image-open": {
      "name": "image-open",
      "description": "Apply morphological opening operation (erosion followed by dilation) to remove small noise and separate connected objects",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-open",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]