JuicyPixels-scale-dct-0.1.2: Scale JuicyPixels images with DCT

Copyright(C) 2015 Oleg Grenrus
LicenseBSD3
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

Codec.Picture.ScaleDCT

Description

Scale pictures using Discrete Cosine Transform.

Synopsis

Documentation

scale Source #

Arguments

:: (Int, Int)

Output width, height

-> Image PixelRGBA8

Input image

-> Image PixelRGBA8

Output image

Scale the image using DCT transform.

scaleWithKernel Source #

Arguments

:: (Int, Int)

Output width, height

-> (Int -> Int -> Double)

kernel

-> Image PixelRGBA8

Input image

-> Image PixelRGBA8

Output image

Scale the image using DCT transform.

Convolute result image with a symmetric kernel. See https://en.wikipedia.org/wiki/Symmetric_convolution

Identity kernel:

k 0 0 = 1
k _ _ = 0

Sharpen:

k 0 0 = 1.75
k 0 1 = -0.125
k 1 0 = -0.125
k 1 1 = -0.0625
k _ _ = 0