If you are going to use SQL select, why use a separate operate statement when you could just use SQL's method for this, update? For that matter, if you are going to use SQL syntax, I would imagine you would want to keep one of the main features, which is joining of datasets. Being able to join an image with itself in some manner (or another image...), would be really useful. Instead of globals, use the images as tabl…
PixQL: SQL for image processing
11–20 of 35 posts
Re: PixQL: SQL for image processing
#12 PixQL: SELECT WHERE COLOR = #FF0000FF; OPERATE SET COLOR = #00FF00FF
JS : if (rgba=='FF0000FF') rgba='00ff00ff'
PixQL: OPERATE SET G = R
JS : g=r
PixQL: SELECT WHERE ROW % 100 = 0 OR COL % 100 = 0; OPERATE SET COLOR = WHITE
JS : if (!(row%100) || !(col%100)) rgba="ffffffff"Re: PixQL: SQL for image processing
#13Wouldn't it be easier to use JavaScript? PixQL: SELECT WHERE COLOR = #FF0000FF; OPERATE SET COLOR = #00FF00FF JS : if (rgba=='FF0000FF') rgba='00ff00ff' PixQL: OPERATE SET G = R JS : g=r PixQL: SELECT WHERE ROW % 100 = 0 OR COL % 100 = 0; OPERATE SET COLOR = WHITE JS : if (!(row%100) || !(col%100)) rgba="ffffffff"
Re: PixQL: SQL for image processing
#14Does this have any practical use? It seems like the image equivalent of treating an HTML file as a huge string of characters -- instead of as the representation of a DOM tree. Which makes very little sense. Plus, you seldom want to do trivial things like selecting red pixels and flipping their color to green. You want to select red eyes and flip those to their correct color.
I find this interesting, but I also would like to see more complex use cases. For example using using some kind of select union on several images to output a synthetic image highlighting differences or similarities?
Re: PixQL: SQL for image processing
#15Re: PixQL: SQL for image processing
#16Interesting! Can you support multiple image buffers? e.g. for xor or morphing operations. I would suggest taking a look at avisynth as an example of a media processing language.
Re: PixQL: SQL for image processing
#17Does this have any practical use? It seems like the image equivalent of treating an HTML file as a huge string of characters -- instead of as the representation of a DOM tree. Which makes very little sense. Plus, you seldom want to do trivial things like selecting red pixels and flipping their color to green. You want to select red eyes and flip those to their correct color.
Re: PixQL: SQL for image processing
#18Re: PixQL: SQL for image processing
#19PS: Under which license is the PixSQL code available?
Re: PixQL: SQL for image processing
#20SELECT *: OPERATE SET COLOR AVG(ROW[-1], ROW[0], ROW[+1]))
To apply a 1 pixel horizontal blur?