Gets the depth for a particular image channel.