On Sun, Mar 08, 2015 at 10:25:53PM +0000, Ian MacArthur wrote:
> On Sat Mar 07 2015 14:07:07, Jim Graham wrote:
> So, since Windows, OSX and a lot of Linux boxes are using x86 cores
> capable of SSE, then that are all ???the same??? in this regard. The
> issue arises if you hit a machine *without* SSE, or are running on ARM
> where you???d need to use the equivalent NEON simd operations.
>
> Of course, to do this right, you ought to test for the presence of SSE
> (or NEON) and fallback to doing it the hard way of the simd engine is
> not found.
First, I didn't understand a bit of that. Second, as long as imread,
imencode, imdecode, mat.channels(), mat.size(), mat.convertTo, and
mat.copyTo all work, and as long as FLTK works, it should all work
fine. If those don't work then there's a compatibility problem with
OpenCV and/or FLTK (that, or I just need to find a way to compile on
yet another system I don't have).
I thought I wrote all of this in a file last night, but apparently,
I didn't. The idea is, load the file as a Mat, get all of the specifics
(X size, Y size, number/type of color channels, image type, etc.) from
OpenCV, then convert to that image type and load in the appropriate
Fl image window. For changes, convert to Mat, scale it down to a good
preview size, do the changes, and if/when the user accepts the changes,
repeat the process, including the user's changes, for the real image.
Obviously, it's not quite that simple for everything, but it's a start.
Some operations will be more natural in the Fl image window on the real
image.
> (NEON is pretty good, but there???s still a lot of ARM machines out
There are PCs running ARM? That's news to me, though it doesn't surprise
me.
> > And here's a question (sorry, not quite on-topic): does anyone know how
> > "undo" is normally handled? I'm guessing that undoing filters that
> > destroy image data can't just be undone, so is it more of a start with
> > the original and repeat everything up to but not including the last
> > operation?
I found the answer to that one on Stack Overflow. GIMP, PhotoShop, and
most others keep a copy in memory for each level of undo to be supported.
I'm guessing, from that, that the really huge files will have far fewer
undo levels. The other way is, of course, to start fresh and work your
way back forward. Reversing changes is unreliable, as, for example, if
you convert to grayscale, you can't undo back to color; or if you blur
the image, you can't just undo the blur to get the detail back.
Thanks,
--jim
--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) | Peter da Silva: No, try "rm -rf /"
spook...@gmail.com | Dave Aronson: As your life flashes before
< Running Mac OS X Lion > | your eyes, in the unit of time known as an
ICBM / Hurricane: | ohnosecond.... (alt.sysadmin.recovery)
30.44406N 86. 59909W |
http://fineartamerica.com/profiles/4-james-graham.html