Re: Joint Histogram
- To: mathgroup at smc.vnet.net
- Subject: [mg81147] Re: Joint Histogram
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 14 Sep 2007 03:31:17 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <fcb3gv$fg5$1@smc.vnet.net>
cimon wrote: > I am completely new to Mathematica > and trying to work with images in it. > > I am trying to create a joint histogram out of an image taking its red > and green channel. > I get this error > > Table::iterb: Iterator (i,1,ydim), does not have appropriate bounds. > Table::iterb: Iterator (i,1,ydim), does not have appropriate bounds. > > (see in code below) > > When I have just written the first five lines and i try to execute. i > dont get this error. > But when I have written the for loop and than i try to execute than I > get this error. > > > I am just not able to fix this out. > can somebody plese guide me with this. > ------------------------------------------------------------------------- > penny = Import["c:\penny.ppm"]; > Shallow[penny]; > data = penny[[1, 1]]; > > ydim = Dimensions[data][[1]]; > xdim = Dimensions[data][[2]]; Note that the expression that contains the code with *Table* is missing in your post. > Table::iterb: Iterator (i,1,ydim), does not have appropriate bounds. > Table::iterb: Iterator (i,1,ydim), does not have appropriate bounds. Nevertheless, looking at the above message, I believe that you have used regular parentheses () rather than /curly brackets/ {}. Try {i, 1, ydim} as iterator. <snip> HTH, -- Jean-Marc