Documentation ¶
Index ¶
- type Image
- func (img Image) At(x, y int) color.Color
- func (img Image) Bounds() image.Rectangle
- func (img Image) CameraToPCS() Mat3
- func (img Image) CameraWhite() Vec3
- func (img Image) ColorModel() color.Model
- func (img Image) ExifExposureTime() URat
- func (img Image) ExifFNumber() URat
- func (img Image) ExifISO() int
- func (img *Image) Free()
- func (img *Image) Load(filename string) error
- func (img Image) OriginalRawFileName() string
- type ImageKind
- type Mat3
- type URat
- type Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { WhiteBalanceTemp int // To override the white balance recorded by the camera Verbose bool // The DNG libraries full dump of metadata ImageKind ImageKind // Set this to see Stage3 data // contains filtered or unexported fields }
An Image holds all the parsed data from the DNG SDK, exposes bits of it as regular Go objects, and implements `image.Image`.
func (Image) CameraToPCS ¶
CameraToPCS returns the transform matrix from camera-native RGB into CIEXYZ(D50?). This isn't quite the DNG ForwardMatrix, because it also bundles the white reference adjustment (matrix `D` in the DNG spec)
func (Image) CameraWhite ¶
CameraWhite returns an RGB color that should be white/neutral, given the white reference / color temperature used by DNG. (That info either comes from the camera via image metadata, or by an override arg set in `Neagtive`). This is basically the DNG AsShotNeutral.
func (Image) ColorModel ¶
func (Image) ExifExposureTime ¶
func (Image) ExifFNumber ¶
func (*Image) Free ¶
func (img *Image) Free()
Free releases all memory associated with the negative ... hopefully
func (Image) OriginalRawFileName ¶
type ImageKind ¶
type ImageKind int
const ( // Stage 1: raw sensor readings. We don't try and turn them into an image. // Stage 2: linearized raw sensor readings, in four planes (GRGB or something). Ignore this too. ImageStage3 ImageKind = C.ImageStage3 // dng_validate stage 3: demosaiced RGB data ImageFinalRender ImageKind = C.ImageFinalRender // DNG developed to final (color curve adjustments, etc) )