diff --git a/mjpeg/__init__.py b/mjpeg/__init__.py index c829ae3..8be84b3 100644 --- a/mjpeg/__init__.py +++ b/mjpeg/__init__.py @@ -12,7 +12,6 @@ __all__ = ['Jpeg', 'colorMap', 'diffblock', 'diffblocks'] import numpy.random as rnd from numpy import shape import numpy as np -import pylab as plt import base from dct import bdct, ibdct @@ -177,17 +176,6 @@ class Jpeg(Jsteg): E = [-np.inf] + [i for i in range(-T, T + 2)] + [np.inf] return np.histogram(A, E) - def plotHist(self, mask=base.acMaskBlock, T=8): - """ - Make a histogram of the jpeg coefficients. - The mask is a boolean 8x8 matrix indicating the - frequencies to be included. This defaults to the - AC coefficients. - """ - A = self.rawsignal(mask).tolist() - E = [i for i in range(-T, T + 2)] - plt.hist(A, E, histtype='bar') - plt.show() def nzcount(self, *a, **kw): """Number of non-zero AC coefficients. diff --git a/mjpeg/compress.py b/mjpeg/compress.py index 98e9a84..12cc69b 100644 --- a/mjpeg/compress.py +++ b/mjpeg/compress.py @@ -1,7 +1,7 @@ ## -*- coding: utf-8 -*- -from pylab import * +from numpy import array # The standard quantisation tables for JPEG:: diff --git a/test/test_steg.py b/test/test_steg.py index 27962d5..3618866 100644 --- a/test/test_steg.py +++ b/test/test_steg.py @@ -1,8 +1,6 @@ __author__ = 'chunk' import numpy as np -import pylab as P -import pylab as plt from .. import mjpeg from ..msteg.steganography import LSB, F3, F4, F5 -- libgit2 0.21.2