Description Usage Arguments Details Value Author(s) References See Also Examples

The function integrates smoothing and demosaicing of RAW image data.

1 2 3 |

`object` |
an object of class |

`hmax` |
maximal bandwidth to use in the smoothing algorithm. |

`aws` |
use adaptive weights if |

`wb` |
Vector containing factors for the three color chanels, allows to change the white balance. |

`cspace` |
Color space of the result, |

`ladjust` |
Factor for the critical value |

`maxrange` |
If TRUE increase range of values to maximum. |

`lkern` |
Specifies the location kernel. Defaults to "Triangle", other choices are "Quadratic", "Cubic" and "Uniform". The use of "Triangle" corresponds to the Epanechnicov kernel nonparametric kernel regression. |

`graph` |
(logical). If |

`max.pixel` |
Maximum dimension of images for display
if |

`compress` |
logical, determines if image data are stored in raw-format. |

Adaptive smoothing is performed on the original RAW data, restricting positive weights to
pixel corresponding to the same color channel. Noise is assumed to have a variance
depending linearly on the mean. Weights are determined by weigthed distances between
color vectors. These color vectors are obtained by demosaicing that is applied to the smoothed
RAW data after each iteration of the smoothing algorithm. The demosaicing algorithm is
a 3D generalized median, see `method="Median4"`

in function `develop.raw`

.

Object of class `"adimpro"`

`img ` |
Contains the reconstructed image. |

`ni ` |
Contains the sum of weights, i.e. |

`ni0 ` |
Contains the maximum sum of weights for an nonadaptive kernel estimate with the same bandwidth. |

`hmax ` |
Bandwidth used in the last iteration. |

`call ` |
The arguments of the function call. |

`varcoef ` |
Estimated coefficients in the linear variance model for the color channels. |

Karsten Tabelow tabelow@wias-berlin.de and Joerg Polzehl polzehl@wias-berlin.de

Polzehl, J. and Tabelow, K. (2007). Adaptive smoothing of digital images, Journal of Statistical Software 19 (1).

`read.raw`

,`awsimage`

, `make.image`

, `show.image`

, `clip.image`

1 | ```
## Not run: demo(raw)
``` |

```
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Reading RAW images requires to install dcraw, see
http://cybercom.net/~dcoffin/dcraw/ for LINUX and http://www.insflug.org/raw/
for MAC OS and Windows
Use awsMethods::setCores(ncores) to specify number of cores for openMP
Warning message:
In fun(libname, pkgname) : could not determine path to Imagemagick
please set the correct path manually using
'Sys.setenv(ImageMagick='path2imagemagick')'
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.