blind_watermark

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWatermark

func AddWatermark(img image.Image, wm []byte) (image.Image, error)

func Dct2

func Dct2(x [][]float64) [][]float64

func Dwt2

func Dwt2(src [][]float64) (aa [][]float64, ad [][]float64, da [][]float64, dd [][]float64)

func EmbedWm

func EmbedWm(src [][][][]float64, wm []uint8) [][][][]float64

func ExtractWaterMask

func ExtractWaterMask(img image.Image) ([]byte, error)

func ExtractWm

func ExtractWm(src [][]float64) ([]uint8, error)

func FloatToUint8

func FloatToUint8(f float64) uint8

func Idct2

func Idct2(x [][]float64) [][]float64

func Idwt2

func Idwt2(aa [][]float64, ad [][]float64, da [][]float64, dd [][]float64) (dst [][]float64)

func RestoreSourceData

func RestoreSourceData(blocks [][][][]float64) (src [][]float64)

还原数据

func SwitchToBlocks

func SwitchToBlocks(src [][]float64) (blocks [][][][]float64)

切分block,二维转四维

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL