Categories

Image Matrix Recombination

Apply matrix recombination for advanced color space transformations and channel mixing

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

Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for matrix recombination

3x3 transformation matrix for color channel recombination. Format: [[r1,g1,b1],[r2,g2,b2],[r3,g3,b3]]

Choose output format or keep original. PNG recommended for maximum quality

Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

Key Facts

Category
Design
Input Types
file, textarea, select, number
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Image Matrix Recombination is a professional-grade utility designed for precise color space manipulation and channel mixing. By applying a custom 3x3 transformation matrix to your image data, you can achieve advanced color grading, channel swapping, or specialized filter effects with mathematical accuracy.

When to Use

  • When you need to perform custom color channel mixing for artistic or technical image processing.
  • When converting images between specific color spaces using linear matrix transformations.
  • When you want to isolate or swap specific color channels to create unique visual effects or diagnostic outputs.

How It Works

  • Upload your source image file in any supported format like PNG, JPEG, or TIFF.
  • Input your 3x3 transformation matrix in the required JSON-style array format.
  • Select your preferred output format and quality settings to maintain image integrity.
  • Process the image to apply the matrix calculation to every pixel's RGB values.

Use Cases

Creating custom monochrome or sepia-toned filters through specific channel weighting.
Swapping color channels (e.g., BGR to RGB) for compatibility with specific hardware or software pipelines.
Performing linear color correction by adjusting channel intensity via matrix coefficients.

Examples

1. Grayscale Conversion

Graphic Designer
Background
The designer needs a specific grayscale conversion that emphasizes the green channel for a high-contrast black and white look.
Problem
Standard desaturation tools don't allow for custom channel weighting.
How to Use
Upload the image and apply a matrix that weights the green channel higher than red and blue.
Example Config
[[0.2, 0.7, 0.1], [0.2, 0.7, 0.1], [0.2, 0.7, 0.1]]
Outcome
The image is converted to grayscale with a custom luminance distribution favoring the green spectrum.

2. Channel Swap

Digital Artist
Background
The artist wants to swap the Red and Blue channels to create a surreal, inverted color aesthetic.
Problem
Manual channel editing in complex software is slow and prone to error.
How to Use
Upload the image and use a permutation matrix to swap the first and third rows.
Example Config
[[0, 0, 1], [0, 1, 0], [1, 0, 0]]
Outcome
The output image has its Red and Blue channels swapped, resulting in a stylized color-shifted effect.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What is a 3x3 transformation matrix?

It is a mathematical grid used to calculate new RGB values for each pixel by multiplying the original channel values by specific coefficients.

Which image formats are supported?

You can upload JPEG, PNG, WebP, GIF, BMP, and TIFF files.

How do I format the matrix input?

Use the format [[r1,g1,b1],[r2,g2,b2],[r3,g3,b3]], where each row represents the contribution of input channels to the output R, G, and B channels.

Does this tool support batch processing?

No, this tool is designed for individual image processing to ensure maximum precision for each transformation.

Which output format should I choose?

PNG is recommended for lossless quality, while JPEG or WebP are better if you need to optimize for smaller file sizes.

API Documentation

Request Endpoint

POST /en/api/tools/image-recomb

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for matrix recombination
matrix textarea Yes 3x3 transformation matrix for color channel recombination. Format: [[r1,g1,b1],[r2,g2,b2],[r3,g3,b3]]
format select No Choose output format or keep original. PNG recommended for maximum quality
quality number No Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

File type parameters need to be uploaded first via POST /upload/image-recomb 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-recomb": {
      "name": "image-recomb",
      "description": "Apply matrix recombination for advanced color space transformations and channel mixing",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-recomb",
      "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]