-5

what can i do with a matrix image?

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img=mpimg.imread('image.png')
imgplot = plt.imshow(img)

i've already thought: -difference between same image to notice some movement -Transpose matrix to rotate the image are there other operation that i can do, closer numerical analysis ?

Rory Daulton
  • 21,934
  • 6
  • 42
  • 50
cricket
  • 21
  • 5
  • Your question is very broad. Can you narrow it down? And please explain what "numerical analysis" has to do with it--the two operations you mention do not use numerical analysis. – Rory Daulton Jan 14 '17 at 15:46

1 Answers1

0

It's a pretty broad, open-ended question, but here are a few thoughts:

  • Resize the image using various interpolation schemes (e.g. bicubic ).
  • There are plenty of things you can do with Fourier analysis. FFTs allow you to observe spatial frequency content (SciPy FFT library), and DCTs are used in JPEG compression (SciPy dct library).
  • Color manipulations. Darken/lighten image, make image more red or yellow, etc.
  • Histograms of color content.
  • Edge detection
  • Combine several images together to make an animation and save as a GIF or AVI.

There are libraries for a lot of this, but I gathered that you were in the mood to reinvent the wheel.

LedHead
  • 237
  • 1
  • 3
  • 13