O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Audio and Image Processing

In this chapter, we will cover basic image and audio (WAV files) processing with NumPy and SciPy. We will use NumPy to do interesting things with sounds and images in the following recipes:

  • Loading images into memory maps
  • Adding images
  • Blurring images
  • Repeating audio fragments
  • Generating sounds
  • Designing an audio filter
  • Edge detection with the Sobel filter

Introduction

Although all the chapters in this book are fun, in this chapter, we are really going to go for it and concentrate on having fun. In Chapter 10, Fun with Scikits, you will find a few more image processing recipes that use scikits-image. Unfortunately, this book does not have direct support for audio files, so you really need to run the code examples ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required