👉 A codebook is a set of mappings between input (x, y) coordinates and output (z) coordinates that are used to represent a dataset. In the context of image processing, it can be used to map an image into a set of predefined regions or categories for analysis. The term "codebook" refers to the mathematical representation of these mappings.