Image Processing with Flowstone?
Posted: Fri Mar 12, 2021 4:17 pm
Inspired by the recent Drop Shadow thread, I was wondering to what extent it was possible to do image processing with Flowstone. As promising as the possibilities of Ruby may be, unfortunately there is little available in the implementation at pixel level, and more unfortunately, excecution time is often prohibitive to allow even basic image transformations.
Flowstone has the assembler codebox as a fast number crunching engine, but it is a bit awqward to interface with an image format. Moreover, there are no 2D arrays in ASM and everything is very low level, which makes the addressable audience for this type of excercise rather small.
Anyway, here is an example of a drop shadow effect for an input image with an alpha channel for opacity. It uses a fast blur algorithm by Young et al., if you care.
It would be cool to drag the shadow with the mouse instead of setting x- and y-offsets with knobs. Any volunteers?
Flowstone has the assembler codebox as a fast number crunching engine, but it is a bit awqward to interface with an image format. Moreover, there are no 2D arrays in ASM and everything is very low level, which makes the addressable audience for this type of excercise rather small.
Anyway, here is an example of a drop shadow effect for an input image with an alpha channel for opacity. It uses a fast blur algorithm by Young et al., if you care.
It would be cool to drag the shadow with the mouse instead of setting x- and y-offsets with knobs. Any volunteers?