Skip to content

jonathanBieler/LibRaw.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibRaw

Stable Build Status Coverage Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Bindings for the LibRaw library. The purpose of this package to read raw file and access the data, and apply some basic post-processing (applying coefficients and color matrices, demosaicing). Colors.jl and Images.jl could be used for further post-processing.

Bindings were automatically generated using Clang.jl, see gen/generator.jl.

Please open an issue if a functionality is missing or broken.

screenshot

Known issues

  • Margins are not taken into account
  • Only RGBG Bayer pattern is supported

Example

See examples/process_raw_file.jl for a more complete example.

raw_img = LibRaw.RawImage("data/ccp2.nef")

@assert LibRaw.color_description(raw_img) == "RGBG"
img = LibRaw.demoisaic(LibRaw.BayerAverage(), raw_img)#h x w x 4 Array

# apply white balance as shot
LibRaw.apply_multipliers!(img, LibRaw.camera_multipliers(raw_img))