If you do not receive a satisfactory reply here, contacting the package
maintainer for such specific issues may be your next option. (S)he can be
found by maintainer("adimpro") .Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Dec 21, 2017 at 3:40 AM, Cleber N.Borges via R-help < [email protected]> wrote: > Hello all, > I'm trying to use the adimpro package to read RAW files (image). Make > readins is OK! > > r <- read.raw( '20171218_210956.dng', type='RAW', compress=FALSE ) > > summary( r ) > > ### cut the many lines... > Filter pattern: GR/BG > > extract.info( r ) > [1] "GR/B" > > > To next, develop the raw file using the "develop.raw" function. > But the function returns the error: > > dr <- develop.raw( r ) > Error in dim(mat) <- c(4, 3) : > dims [product 12] do not match the length of object [0] > > My suspicion is that the develop.raw function fails to get the correct > Bayer's pattern. > Within the develop.raw function there is a code (below) that will always > return the pattern as a variable of NULL value > > > bayer <- switch(extract.info( r ), RGGB = 1, GRBG = 2, BGGR = 3, GBRG > = 4) > > bayer > NULL > > > Is there anything to do to get around the situation? > > Thank you so much > Cleber Borges > > ps.: below more details > > > ############################## > > r <- read.raw( '20171218_210956.dng', type='RAW', compress=FALSE ) > > summary( r ) > Image file: 20171218_210956.dng > Image dimension: 3024 4032 > Color space: RAW > Color depth: 16bit > Gamma correction: FALSE Type: None > White point: D65 > Range: 0 65535 > > EXIF-Information: > > Filename: 20171218_210956.dng > Timestamp: Mon Dec 18 21:09:56 2017 > Camera: Samsung SM-G935F > DNG Version: 1.4.0.0 > ISO speed: 200 > Shutter: 1/24.0 sec > Aperture: f/1.7 > Focal length: 4.2 mm > Embedded ICC profile: no > Number of raw images: 1 > Thumb size: 504 x 376 > Full size: 4032 x 3024 > Image size: 4032 x 3024 > Output size: 3024 x 4032 > Raw colors: 3 > Filter pattern: GR/BG > Daylight multipliers: 2.022219 0.916446 1.101952 > Camera multipliers: 1.765517 1.000000 1.675941 0.000000 > > extract.info( r ) > [1] "GR/B" > > > > dr <- develop.raw( r ) > Error in dim(mat) <- c(4, 3) : > dims [product 12] do not match the length of object [0] > > ### my suspection > > bayer <- switch(extract.info( r ), RGGB = 1, GRBG = 2, BGGR = 3, GBRG > = 4) > > bayer > NULL > > > sessionInfo() > R version 3.4.2 (2017-09-28) > Platform: x86_64-w64-mingw32/x64 (64-bit) > Running under: Windows 7 x64 (build 7601) Service Pack 1 > > Matrix products: default > > locale: > [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 > [3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C > [5] LC_TIME=Portuguese_Brazil.1252 > > attached base packages: > [1] grid stats graphics grDevices utils datasets methods > [8] base > > other attached packages: > [1] fields_9.0 maps_3.2.0 spam_2.1-1 dotCall64_0.9-5 > [5] adimpro_0.8.2 awsMethods_1.0-4 > > loaded via a namespace (and not attached): > [1] compiler_3.4.2 tools_3.4.2 > > > > > > --- > Este email foi escaneado pelo Avast antivĂrus. > https://www.avast.com/antivirus > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

