pixGetPixels | R Documentation |
These functions allow us to query and set all of the pixels in a
Pix-class
image.
The image may be either a gray-scale (including binary) or an RGB image.
pixGetPixels(pix, dims = pixGetDims(pix), transpose = FALSE)
pix |
a |
dims |
the dimensions of the |
transpose |
a logical value controlling whether the dimensions of the resulting matrix are reversed, i.e., the number of rows and columns are interchanged. |
pixGetPixels
returns a matrix.
pixGetRGBPixels
returns a 3-dimensional array with
rows, columns and depth corresponding to the height of the image,
the width of the image, and the three color channels, Red, Green and Blue.
Duncan Temple Lang
http://tpgit.github.io/UnOfficialLeptDocs/
pixRead
GetInputImage
pixAnd
f = system.file("images", "DifferentFonts.png", package = "Rtesseract")
p = pixRead(f)
m = pixGetPixels(p)
m = p[,]
p2 = pixConvertTo8(p)
m2 = p[,]
a = pixGetRGBPixels(p)
dim(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.