search for: imshow

Displaying 4 results from an estimated 4 matches for "imshow".

Did you mean: 0mshow
2005 Jul 07
2
about image() function in R and colors
Hi! I've got a map in R imported from a GIS (GRASS) as a vector of factors. So I've got 20 different levels in the map and I've created a vector of custom colors of exactly 20 colors in lenght. I'm trying to use image() (really plot.grassmeta() that call image()) to plot the map with those colors but it doesnt work and the colors are changed. I would like that all points
2010 Mar 24
3
help in matlab - r code
...urve # 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.663529411764706, 0.440156862745098,0.330313725490196,0.473843137254902,0.690980392156...
2011 Aug 26
0
Problem in calling R functions from Matlab
...#39; ??? '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;...
2009 Jun 14
3
python bindings to libtheora
...ttp://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html Also here is a script to show the image in matplotlib: In [1]: from theora import Theora In [2]: a = Theora("bbb_theora_325kbit.ogv") In [3]: a.seek(10) In [4]: A = a.get_frame_array() In [5]: import pylab In [6]: pylab.imshow(a.YCbCr2RGB(A)) Out[6]: <matplotlib.image.AxesImage object at 0x44e3510> In [7]: pylab.show() [and a window pops up with the image] So as you can see, it's very trivial to open the ogv file and then interactively play with it in Python, retreive the data as an arary and then do all kin...