> Is there anything that does something close to this? I'm doing this very
> painful "draw line" sequence (Picture Controls) after loading a bitmap
> into a Picture Control, grabbing the unflattened U16 array data, and
> using "array max & min" (which is OK for now since our peak is clean. I
> know this is not the best way to track a 2D peak...).
>
> It just seems that this would have been tried before; who wants to
> reinvent the wheel! Thanks in advance!
>
> Also, the display of this image is in the standar "while" polling loop,
> where other things are happening/updating. Unfortunately, when I load
> the image and feed it both to a 3D graph and to the peak-finder, the
> image data zeros itself in the next poll loop since no new image was
> loaded from disk (pre
ss a button to do this), so my graph & crosshairs
> flash on briefly then are zero'ed out. Shift registers??
>
I can't help much with finding the peak of the image. I suspect there
are many techniques, and each of them has tradeoffs in accuracy, speed,
and applicability. Once you know the location, though, drawing the
cursor should be easy. If you don't want the picture control to redraw,
then don't send data to it, or send the same data again.. In otherwords,
you can use shift registers to send the same data over and over, or you
can use a case statement, wired to the Load Button, that governs whether
or not the data is sent to the picture control. If the picture control's
terminal is located in the TRUE frame, and only gets new data when the
Boolean button is TRUE, then nothing gets written in the FALSE, and that
is in fact a good place to do a Wait ms of something like 50 or 100.
Greg McKaskle