Re: Rectangle detection

2015-09-07 Thread Peter Reid
With some input from Bernd Niggemann, I've been able to get my rectangle detection and extraction working OK. Just in case anyone else needs to do something similar, here's my rectangle hunting code: -- start looking for top line of params box: put empty into tXleft

Re: Rectangle detection

2015-09-05 Thread J. Landman Gay
On 9/5/2015 2:42 AM, Peter Reid wrote: 5. Here is the handler that I use to test the colour of a pixel: function getPixelColour pX, pY, pImgWidth local tPix, tImgPos, tRedVal, tGreenVal, tBlueVal put pY * pImgWidth + pX into tPix put tPix * 4 into tImgPos put charToNum(byte (tImg

Re: Rectangle detection

2015-09-05 Thread Peter Reid
Thanks for the initial thoughts on this. Here's some more clarification: 1. The rectangles are not the same size or location, but they generally sit substantially in the upper right quadrant of the graph which is otherwise empty/white. 2. The graphs are all the same dimensions, but the actual

Re: Rectangle detection

2015-09-04 Thread EED-wp Email
Peter, I think you are going to have to analyze the pixels of the image using the byte values. Look in the sample stacks for image processing code. I am on the road until mid next week and if you haven't gotten started by then I will send you some code that can get you started. If the rectangl

Re: Rectangle detection

2015-09-04 Thread Peter W A Wood
> On 5 Sep 2015, at 07:42, Scott Rossi wrote: > > Does the rectangle always appear in the same location in the image and is > it always the same dimensions? If the rectangle doesn’t always appear in the same location or is not always the same size, is the image always the same width? Peter

Re: Rectangle detection

2015-09-04 Thread Scott Rossi
Oops, meant to add: if the size/location of the rectangle is always the same, a simple option would be to import (or export) a snapshot from the rectangle's rect. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/4/15, 4:42 PM, "Scott Rossi" wrote: >Does the rectangle

Re: Rectangle detection

2015-09-04 Thread Scott Rossi
Does the rectangle always appear in the same location in the image and is it always the same dimensions? Can you post a sample? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/4/15, 4:04 PM, "Peter Reid" wrote: >I'm trying to detect and extract a rectangular area of

Rectangle detection

2015-09-04 Thread Peter Reid
I'm trying to detect and extract a rectangular area of an image. The image is a graph with some parameters that are always contained inside a rectangle. The graph consists of curves and axes in black on a white background. The rectangle is a box consisting of black lines and it contains black