[R] pixmap question again

About this list Date view Thread view Subject view Author view Attachment view

From: Christoph Lehmann (lehmann@puk.unibe.ch)
Date: Thu 12 Jun 2003 - 01:15:18 EST


Message-id: <1055344518.1140.33.camel@christophl>

I could load a picture with gray levels only:

x <-
read.pnm("/home/christoph/work/projects/ffa/EPrime/pics_pnm/550_0_1.pnm")

> x
Pixmap image
  Type : pixmapGrey
  Size : 246x192
  Resolution : 1x1
  Bounding box : 0 0 192 246
 
> plot(x)
works fine

BUT: how can I get to the slots as "size", "grey", etc.
 
calling:
> x$grey
NULL
> x$size
NULL
>

why this?

I need to get the grey value of each pixel and average all grey values
over the whole picture...

thanks

christoph

-- 
Christoph Lehmann <lehmann@puk.unibe.ch>
University Hospital of Clinical Psychiatry

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:53 EST