The function generates a color image from RAW image data.
develop.raw(object, method = "BILINEAR", wb = c(1, 1, 1), maxrange= TRUE, compress = TRUE)
An object of class "adimpro"
containing RAW image data, e.g. created by function read.raw
. Such an object is characterized by object$type=="RAW"
.
Method to fill missing color values. Currently implemented are method="HALF"
(reduce image size by factor of 2),
method="FULL"
(use color from neighbor within (2x2) Bayer mask)),
method="BILINEAR"
(bilinear interpolation), method="Median4"
and method="Median16"
, the latter two being based on L1-MM over shifted Bayer masks. method="Median16"
delivers much smoother results, but is considerably slower then the other methods.
numerical vector of length 3 containing multiplicative factors for the three color channels.
If TRUE increase range of values to maximum.
logical, determines if image data are stored as raw
.
object of class "adimpro" containing the image.
RAW image data usually contain only one color value at each pixel, with colors arranged in a so called Bayer mask. Converting RAW images into color images requires to fill the missing entries in the color channels.
# NOT RUN {
demo(io)
# }
# NOT RUN {
demo(raw)
# }
Run the code above in your browser using DataLab