Displaying 20 results from an estimated 5000 matches similar to: ""[" operator and indexing ambiguity"
2009 Mar 06
1
array subsetting of S4 object that inherits from "array"
Hi,
I have an S4 class that inherits from "array" but does not add generic
implementations of the "[" method.
A simplified example is:
setClass("fooarray", contains="array")
If I create a "fooarray" object and subset it with a one-dimensional
index vector, the return value is of class "fooarray". Other variants
(see below), however,
2007 Jan 28
0
"[", .local and S4 methods (was: "[" operator and indexing ambiguity)
Dear Tony,
thanks for the tip with "nargs", when suitably applied, this answers the
problem.
The behaviour of "nargs" in S4 methods has some subtleties compared to
that in normal functions, as shown in the example below. I admit that
this is what had earlier created some confusion about the semantics of
"nargs". From the perspective of "nargs" and its
2003 Jul 30
6
reverse array indexing
Hi,
Suppose I have a multidimensional array:
tmp <- array(1:8, c(2,2,2))
is there a function out there that, given a one-dimensional array index,
will
return the separate indices for each array dimension?
for instance, tmp[8] is equivalent to tmp[2,2,2]. I'd like to derive the
vector (2,2,2)
from the index 8.
thanks,
Brad Buchsbaum
2010 Dec 15
2
ebimage problems
Hello, I've been having some trouble working with the aroma package and have
realized that it's my ebimage is at the root of the problem. The package
builds but during testing it fails because of an undefined symbol as seen
below:
installing to /usr/local/lib64/R/library/EBImage/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
**
2010 Apr 15
1
Poblems wih EBImage
Hello, Working with Windows 7 in a HP laptop with R-2.10.1
I download and installed ImageMagick-6.3.7.7-Q16-Windows-dll.exe and GTK 2.12.9-win32-2, then downloaded and installed from local file EBImage_3.2.0.zip and I got:
> library(EBImage)
Loading required package: abind
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
2007 Jul 23
2
R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?
Hi,
I have an S4 class directly derived from 'array' as shown in the code
below (EBImage package of Bioconductor 2.1, devel), it simply contains
array adding a couple of slots:
setClass ("Image",
representation (colormode="integer", filename="character",
compression="character", resolution="numeric", features="list"
),
2009 Jun 06
1
EBImage not loading
Hello all
I've just spent a few joyless hours trying to get EBImage to install in R.
I'm running Ubuntu (Hardy Heron), fully updated (including R and
Imagemagick). EBImage installation seems to work, but when I
'library(EBImage)' I get the following:
- - - -
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/home/qilin/R/i486-pc-linux-
2010 Apr 10
1
Unable to load EBImage
Hi group,
I've spent half a day trying to figure this out and searched through
different forums. I've tried to load EBImage but am getting the following
problem:
>Error in inDL(x, as.logical(local), as.logical(now), ...) :
> cannot initialize ImageMagick
>Error: package/namespace load failed for 'EBImage'
My path is like this:
C:\\Program
2012 Jul 07
1
creating a '[' method for an S4 class
Hi,
I'm working on an S4 class that is expected to behave like an array.
I have some difficulties when defining '[' and I wonder if someone
could point me to the right direction:
1) Call the S4 object "obj"
2) Assume dim(obj) = c(10, 4, 2)
3) Suppose someone calls: obj[1:3,] , which is a mistake, given
dim(obj); how do I detect such situations?
Thank you very much for
2008 Jul 19
1
Clash between 'Cairo' and 'EBImage' packages on Windows
Hi,
on Windows XP Pro with R version 2.7.1 Patched (2008-06-27 r46012) the
'Cairo' and the 'EBImage' packages does not play well together.
Loading EBImage before Cairo cause the following to happen:
# Rterm --vanilla
> library(EBImage);
> library(Cairo)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
2010 Oct 26
1
S4 methods for rbind()
Hello.
I am trying to write an S4 method for rbind(). I have a class of objects
called 'mdm', and I want to be able to rbind() them to one another.
I do not want the method for rbind() to coerce anything to an mdm object.
I want rbind(x1,x2,x1,x2) to work as expected [ie rbind() should take any
number of arguments].
This is what I have so far:
setGeneric(".rbind_pair",
2008 May 04
1
texi2dvi instead of pdflatex in R2.7.0? and related bioc 2.2 builds
Dear lists:
I am somewhat puzzled by the use of texi2dvi/pdflatex in R2.7.0. When
building EBImage (bioconductor) with 2.7.0 I get the same error both in
Windows and Linux, which reads the following:
** building package indices ...
* DONE (EBImage)
* creating vignettes ... ERROR
/usr/bin/texi2dvi: pdflatex exited with bad status, quitting.
Error in texi2dvi(file = bft, pdf = TRUE, clean =
2009 Jun 24
1
bwimage
Dear Sir/Madam,
I am using R-Image in an MSc statistics dissertation and have found, in various EBImage manuals a functions - bwimage, which I would like to use, however I can't find it within my version of R.
Could you tell me if the function has changed or what I need to do to be able to use it.
Many thanks
Alice
[[alternative HTML version deleted]]
2009 Dec 08
2
automated image processing
Hi,
I am looking for a R package which is capable to process and analysis pictures of tissues (stained) in an automatic way.
I had a look on biops and EBImage (Bioconductor) but they are not automatic...
Did you already use/know a such package ?
Thanks,
- Martial
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !
2009 Jun 24
1
I meant bwlabel
Sorry I meant bwlabel on this message
Alice
--- On Wed, 24/6/09, aliceduggan@btopenworld.com <aliceduggan@btopenworld.com> wrote:
From: aliceduggan@btopenworld.com <aliceduggan@btopenworld.com>
Subject: bwimage
To: r-help@r-project.org
Date: Wednesday, 24 June, 2009, 12:34 PM
Dear Sir/Madam,
I am using R-Image in an MSc statistics dissertation and have found, in various
2012 Jun 20
1
Question on EBImage package
I am having trouble using the "resize" function (in the package EBImage) with matrices containing double values. Let's say I have a matrix 'b' with these values:
> a = c(1.25,1.555,1.245,1.265,1.656,1.235,1.848,1.959,1.548,1.245454,1.989,1.24)
> b = matrix(a,4,3)
> b
[,1] [,2] [,3]
[1,] 1.250 1.656 1.548000
[2,] 1.555 1.235 1.245454
[3,] 1.245 1.848
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
Hello,
is there any one who uses C++ STL classes when programming shared libs
for R and has had any problems with STL?
In the very simple example below I am constantly getting segfaults when
trying to populate the queue. The segfault occurs at what looks like a
random index in the loop when pushing another element to the queue.
Reproduced on 4 machines. Object x is an Image as in EBImage,
2009 Dec 03
2
adding bmp/jpg/gif to an existing plot
Hi, all.
I searched a lot at mailing list, installed EBImage and gtk packages, but I
couldn't make this simple work:
How to add a image file (jpg or bmp ou gif) to an existing plot window (not
plot over the image), like the code below (pseudo function add.image):
plot(1:10,1:10,main="test")
image = read.X("myimage.jpg")
add.image(image, x.left=2, y.bottom=4,
2009 Jun 15
1
display SVG, PNG, GIF, JPEG, TIFF, PPM in new plot frame
Dear R-help
I want to display an image file in a new plot frame.
SVG is my preferred format, but I can also consider
PNG, GIF, JPEG, TIFF, and PPM (from ImageMagick).
By way of background (although not material to this
posting), the image file is generated by a call to
'dot' (part of the 'Graphviz' suite) after the required
.dot file has been produced using hand-crafted R code.
2008 Jan 08
1
cursor position on image
Hi,
I am using the EBImage package for image display and analysis and want to read the cursor (mouse) position on the image. The function "locator()" would be ideal, but this appears to work only on plots, not images.
> a <- Image((0:(w^2))/w^2, c(w,w))
> if ( interactive() ) display(a)
> locator(n = 10, type = "p")
Error in locator(n = 10, type = "p")