stegosphere.costs package

Submodules

stegosphere.costs.HILL module

Implements HILL cost, as presented in

B. Li, M. Wang, J. Huang and X. Li, “A new cost function for spatial image steganography,” 2014 IEEE International Conference on Image Processing (ICIP), Paris, France, 2014, pp. 4206-4210, doi: 10.1109/ICIP.2014.7025854.

stegosphere.costs.HILL.hill_cost(cover, alpha=1, size=3)

Calculates the HILL cost of a given cover.

Parameters:
  • cover (numpy.ndarray) – Cover to be evaluated

  • alpha (float, optional) – alpha to be used

  • size (int, optional) – kernel size

Returns:

Cost map

Return type:

numpy.ndarray

stegosphere.costs.WOW module

Implements WOW cost, as presented in

V. Holub and J. Fridrich, “Designing steganographic distortion using directional filters,” 2012 IEEE International Workshop on Information Forensics and Security (WIFS), Costa Adeje, Spain, 2012, pp. 234-239, doi: 10.1109/WIFS.2012.6412655.

stegosphere.costs.WOW.wow_cost(cover, alpha=10)

Calculates the WOW cost of a given cover.

Parameters:
  • cover (numpy.ndarray) – Cover to be evaluated

  • alpha (float, optional) – alpha to be used

Returns:

cost map

Return type:

numpy.ndarray

Module contents

The costs package defines various cost functions.