search for: imread

Displaying 5 results from an estimated 5 matches for "imread".

Did you mean: immread
2002 Feb 20
3
importing images
I would like to import "tif" images in R and I do not find any function that can do that. In Matlab there exists the function "imread" that can read the most known images format. Does a similar function exist for R ? Thanks in advance -- Herve CARDOT ____________________________________________________________ Unite Biometrie et Intelligence Artificielle, INRA Toulouse BP 27, 31326 Castanet-Tolosan cedex, France. Tel:...
2009 Jul 23
1
Re ading Image Files
Hello, I'm rather new to R and I want to do some image analysis. Is there a way to read jpeg files into a matrix like matlab's imread? -- View this message in context: http://www.nabble.com/Reading-Image-Files-tp24619129p24619129.html Sent from the R help mailing list archive at Nabble.com.
2012 Nov 08
2
unable to load shared object - opencv
...t; #include <opencv/cv.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv/highgui.h> #include <opencv/cv.h> #include <R.h> #include <Rinternals.h> extern "C" SEXP provaR(void) { cv::Mat gravit; gravit=cv::imread("imm.jpg"); cv::imwrite("imm_dop.jpg",gravit); Rprintf("Hello, World!nn"); return R_NilValue; } Now in the terminal i type R CMD SHLIB prova2.cpp to create the file prova2.so and this happen without error. In R i type dyn.load("prova2.so") and get this er...
2010 Mar 24
3
help in matlab - r code
...onverts the image to grayscale data (line 3), and calculates the autocorrelation curve # for offset distances of one pixel to 99 pixels (lines 7–10). This code can be used to # perform steps (4) and (6) listed above in the Summary of Steps to Calculate Grain # Size of Natural Sediment. ColorData = imread(‘ImageName.jpg’); x <- read.jpeg("sed2.jpg")# opens the image imshow(ColorData); plot(x) # plot image data = double(rgb2gray(ColorData)); x=rgb2grey(x) # transform in grayscale, the image ; # example of a similar data matrix: data = double(0.54878431372549,0.468,0.553411764705882,0.663...
2011 Aug 26
0
Problem in calling R functions from Matlab
...?? 'graphics' ??? 'grDevices' ??? 'utils' ??? 'datasets' ??? 'methods' ??? 'base' b =???? 1 c =???? '' As it shows that rgdal library is loaded, also the rscproxy library is loaded, in addition to all others. I tried following: imshow(imread('testimg_p.tif')) displays the image properly, however calling this from R using rgdal from within Matlab gives error; >> [a b c] = evalR('img <- readGDAL("testimg_p.tif")') a = ?????[] b = ?????0 c = Invoke Error, Dispatch Exception: Object is static; operati...