Re: Starting at square one with image processing

2007-07-10 Thread James Hurley
(Damn, I forgot to include the subject in my post, so here it is again.) Wilhelm Sanke wrote: Hello Jim, your inventive script for the pencil tools proves once more that there are more than one or two approaches to achieve specific effects in x-talk languages. This is what most of us appre

Re: Starting at square one with image processing

2007-07-09 Thread Wilhelm Sanke
On Sun Jul 8, James Hurley jhurley0305 at sbcglobal.net wrote: Second: It is also clear, on closer inspection, that Run Rev is not fast enough for user created paint tools such as a pencil or brush. The poor man's pencil I described earlier is hit and miss if the pencil is moved too fast. I

Re: Starting at square one with image processing

2007-07-08 Thread Chipp Walters
James, Check the alphadata or the maskdata for information concerning transparency of an image. -Chipp On 7/8/07, James Hurley <[EMAIL PROTECTED]> wrote: The imagedata function does not seem to represent images created with the paint tools. ___ use-

Re: Starting at square one with image processing

2007-07-08 Thread James Hurley
Two addenda: FIrst: Create any image. Use the paint tools to create a little black, but keep the paint tools away from the upper left corner. I find that the imagedata shows these pixels to be black. The imagedata function does not seem to represent images created with the paint tools. Se

Re: Starting at square one with image processing

2007-07-07 Thread James Hurley
Message: 7 Date: Sat, 07 Jul 2007 11:40:58 +0200 From: Wilhelm Sanke <[EMAIL PROTECTED]> Subject: Re: Starting at square one with image processing To: use-revolution@lists.runrev.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Re: Starting at square one with image processing

2007-07-07 Thread Wilhelm Sanke
There is a typo in the simplified version of the script most of you will already have noticed: Instead of "put (chartonum(char tij+ 2) of idata)) into tRed" add the missing bracket and use "put (chartonum(char (tij+ 2) of idata)) into tRed" or leave out the inner brackets "put (chartonum(

Re: Starting at square one with image processing

2007-07-07 Thread Wilhelm Sanke
James Hurley jhurley0305 at sbcglobal.net wrote: I've discovered that I have no idea what's going on with the imagedata funct

Re: Starting at square one with image processing

2007-07-06 Thread Brian Yennie
James, You are on the right track. Your interpretation of the pixels is correct. However, I would pay special attention to the size of your image - setting the imageData can reset scaling you have done, which off of the top of my head is probably why you are seeing a line become a square

Re: Starting at square one with image processing

2007-07-06 Thread Jim Ault
Chipp has done some very good imagedata and alphadata example stacks. You should see how he does: ImageTrans.rev altMakeTrans.rev and Wilhelm Sanke tiles_seamless.rev Jim Ault Las Vegas On 7/6/07 4:51 PM, "James Hurley" <[EMAIL PROTECTED]> wrote: > I've discovered that I have no idea what's go

Re: Starting at square one with image processing

2007-07-06 Thread James Hurley
I've discovered that I have no idea what's going on with the imagedata function. I thought that the imagedata was a pixel by pixel map of the image. I tried the following handler to look at each pixel of my image: on mouseUp put the name of image id 1014 into tName put the imagedata of

Re: Starting at square one with image processing

2007-07-06 Thread James Hurley
Message: 24 Date: Thu, 5 Jul 2007 16:42:10 -0700 From: Brian Yennie <[EMAIL PROTECTED]> Subject: Re: Starting at square one with image processing To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Jim, im

Re: Starting at square one with image processing

2007-07-05 Thread Ken Ray
On Thu, 5 Jul 2007 16:17:28 -0700, James Hurley wrote: > I'm trying to understand the rudiments of image processing in Run Rev. Here's a primer on the subject: http://www.sonsothunder.com/devres/revolution/tips/imag003.htm And these help too: http://www.sonsothunder.com/devres/revolution

Re: Starting at square one with image processing

2007-07-05 Thread Brian Yennie
Jim, imageData is a pixel-by-pixel property. Pixels are read in rows across and then down. Each pixel is 4 characters long: alpha, red, green, and blue. So for example, a white pixel would be 0,255,255,255 A black pixel would be 0,0,0,0 A red pixel: 0,255,0,0 A 50% transparent pixel: 127, re

Re: Starting at square one with image processing

2007-07-05 Thread Scott Rossi
On Thu, 5 Jul 2007 4:28 pm, James Hurley wrote: I'm trying to understand the rudiments of image processing in Run Rev. I used the RR pencil (image not graphic) to draw a horizontal line and used the following script to see how the data was stored: All I got for my troubles was string of ze

Starting at square one with image processing

2007-07-05 Thread James Hurley
I'm trying to understand the rudiments of image processing in Run Rev. I used the RR pencil (image not graphic) to draw a horizontal line and used the following script to see how the data was stored: on mouseUp put the imagedata of img id 1003 into tData repeat for each char tChar in tDat