# Image Matrix Recombination

Apply matrix recombination for advanced color space transformations and channel mixing

> Canonical page: https://elysiatools.com/en/tools/image-recomb

- **Category:** Design

- **Keywords:** image, matrix, recombination, color, transform, channels, mixing, space

## 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.

## Inputs

- **Image File** (file): Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for matrix recombination
- **Recombination Matrix** (textarea): 3x3 transformation matrix for color channel recombination. Format: \[\[r1,g1,b1\],\[r2,g2,b2\],\[r3,g3,b3\]\]
- **Output Format** (select): Choose output format or keep original. PNG recommended for maximum quality
- **Quality (1-100)** (number): Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

## 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.

## Frequently asked questions

### 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.

## Related tools

- [Image Affine Transformation](https://elysiatools.com/en/tools/image-affine): Apply affine transformation for scaling, rotation, shearing, and translation
- [Image Modulation](https://elysiatools.com/en/tools/image-modulate): Apply modulation transformation for brightness, saturation, and hue adjustments
- [Image Perspective Transformation](https://elysiatools.com/en/tools/image-perspective): Apply perspective transformation for 3D-like effects and perspective correction
- [Image Projective Transformation](https://elysiatools.com/en/tools/image-projective): Apply advanced projective transformation for complex 3D surface mapping and projection effects
- [Image Rotate](https://elysiatools.com/en/tools/image-rotate): Rotate images by specified degrees with options for background color and output format
- [Rotate Image by Arbitrary Angle](https://elysiatools.com/en/tools/image-rotate-arbitrary): Rotate images by any arbitrary angle with options for background color and output format
- [Image Flip (Vertical)](https://elysiatools.com/en/tools/image-flip): Flip images vertically (top to bottom) with options for output format and quality
- [Image Flop (Horizontal)](https://elysiatools.com/en/tools/image-flop): Flop images horizontally (left to right) with options for output format and quality

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Image Blend Modes and Compositing Tools](https://elysiatools.com/en/hubs/image-blend-modes-and-compositing-tools): Choose a blend or compositing mode, align source layers, compare looks, and verify halo, color, and alpha behavior at delivery size.
