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
put
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
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
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
> 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
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
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