SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
processing.h File Reference

Various processing functions (blur, equalize...) More...

#include "image.h"

Go to the source code of this file.

Functions

void satdump::image::white_balance (Image &img, float percentileValue=0.05f)
 While balance algorithm from Gimp.
void satdump::image::median_blur (Image &img)
 Median blur. Somewhat equivalent to Gimp's with a radius of 1.
void satdump::image::kuwahara_filter (Image &img)
 Adaptive noise reduction filter.
void satdump::image::equalize (Image &img, bool per_channel=false)
 Perform histogram equalization.
void satdump::image::normalize (Image &img)
 Normalize the current image data. This takes the current min and max values and extends it to the full bit depth range.
void satdump::image::linear_invert (Image &img)
 Invert the entire image. Blacks becomes white and the opposite.
void satdump::image::simple_despeckle (Image &img, int thresold=10)
 Despeckle the image. Very basic despeckle algorithm.

Detailed Description

Various processing functions (blur, equalize...)

Function Documentation

◆ equalize()

void satdump::image::equalize ( Image & img,
bool per_channel = false )

Perform histogram equalization.

Parameters
imgimage to equalize
per_channelif true, performs the equalization separately for each spectral channel

◆ kuwahara_filter()

void satdump::image::kuwahara_filter ( Image & img)

Adaptive noise reduction filter.

Parameters
imgimage to process

◆ linear_invert()

void satdump::image::linear_invert ( Image & img)

Invert the entire image. Blacks becomes white and the opposite.

Parameters
imgimage to process

◆ median_blur()

void satdump::image::median_blur ( Image & img)

Median blur. Somewhat equivalent to Gimp's with a radius of 1.

Parameters
imgimage to blur

◆ normalize()

void satdump::image::normalize ( Image & img)

Normalize the current image data. This takes the current min and max values and extends it to the full bit depth range.

Parameters
imgimage to process

◆ simple_despeckle()

void satdump::image::simple_despeckle ( Image & img,
int thresold = 10 )

Despeckle the image. Very basic despeckle algorithm.

Parameters
imgimage to process
thresolddifference over which the pixel is considered bad

◆ white_balance()

void satdump::image::white_balance ( Image & img,
float percentileValue = 0.05f )

While balance algorithm from Gimp.

Parameters
imgimage to white balance
percentileValuepercentile to balance to