liveBook · Manning

Digital image

As explained in Inside Deep Learning: Math, Algorithms, Models

Data whose values are arranged to represent images, typically as spatial grids of pixels or channels.

Treat a digital image as spatial data whose values are organized for a neural network. Its two-dimensional structure carries meaning, so tensor organization should match that structure rather than flattening it indiscriminately. An image can be represented as I ∈ ℝ^{C,W,H}, where C is the number of channels and W and H describe spatial dimensions. section 3.0 section 3.4

Key implementation consequences:

  • Represent a color image with multiple channels; a convolutional filter has a corresponding value for every input channel. section 3.4
  • Use convolutions to detect local spatial patterns such as horizontal or vertical lines, color changes, and grid patterns. section 3.0
  • Stack convolutional layers to combine simpler detected patterns into more complex ones for image classification. section 3.0
Figure 3.9 Example of a 1D convolution with two channels. Because there are two channels, the 1D input looks like a matrix and has two axes. The filter also has two axes, one for each channel. This filter slides from top to bottom and produces one output channel. One filter always produces one output channel, regardless of however many input channels there are.

A two-channel convolution example shows how a filter spans every input channel and produces one output channel. section 3.4

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines channel and spatial dimensions and connects them to convolution filters, stopping short of a complete tensor implementation.
Examples
Uses color images, line and grid patterns, and a two-channel sliding-filter example.
What you can do after
Understand how to organize image channels and spatial dimensions for convolution-based image classification.
How it connects
Connects images with tensors, channels, convolutions, convolutional neural networks, pooling, and image augmentation.

Also explained in

Compare how 16 books explain digital image →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.