GrubbyHalo
Posts: 25
Joined: Thu Jul 10, 2014 9:33 am

Can image effects only be applied to the camera component ?

Thu Jun 20, 2019 10:44 am

I would like to take advantage of some of the hardware accelerated effects (e.g. blur). Do these effects only apply to the camera component or can they be used by a resizer component for example ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6907
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Can image effects only be applied to the camera component ?

Thu Jun 20, 2019 11:50 am

They are supported by the camera and image_fx components.
If you wish to apply them to something other than the camera, create a MMAL (or IL if you must) pipeline with image_fx in, and you can then apply the effects.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

GrubbyHalo
Posts: 25
Joined: Thu Jul 10, 2014 9:33 am

Re: Can image effects only be applied to the camera component ?

Thu Jun 20, 2019 12:25 pm

6by9 wrote:
Thu Jun 20, 2019 11:50 am
They are supported by the camera and image_fx components.
If you wish to apply them to something other than the camera, create a MMAL (or IL if you must) pipeline with image_fx in, and you can then apply the effects.
That's great! I never knew there was an image_fx component. There doesn't seems to be any info on it in the mmal headers. Is there some documentation on it ? e.g. i would like to apply the blur filter to an image but would like to know what kind of blur (box, median, gaussian) and can i set a kernel size ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6907
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Can image effects only be applied to the camera component ?

Thu Jun 20, 2019 12:33 pm

HTML docs for all the IL / MMAL components are in the firmware repo - https://github.com/raspberrypi/firmware ... components. Someone is directly hosting a version of it at http://www.jvcref.com/files/PI/document ... omponents/ to save you having to download it and point a web browser at the files.

The broad descriptions of the effects is as per the OpenMax IL specifciation.
I previously checked out the parameters that each effect can take, and https://picamera.readthedocs.io/en/late ... ect_params was waveform80 typing those up.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

GrubbyHalo
Posts: 25
Joined: Thu Jul 10, 2014 9:33 am

Re: Can image effects only be applied to the camera component ?

Thu Jun 20, 2019 12:39 pm

6by9 wrote:
Thu Jun 20, 2019 12:33 pm
HTML docs for all the IL / MMAL components are in the firmware repo - https://github.com/raspberrypi/firmware ... components. Someone is directly hosting a version of it at http://www.jvcref.com/files/PI/document ... omponents/ to save you having to download it and point a web browser at the files.

The broad descriptions of the effects is as per the OpenMax IL specifciation.
I previously checked out the parameters that each effect can take, and https://picamera.readthedocs.io/en/late ... ect_params was waveform80 typing those up.
That's fantastic. Thank you very much.

Return to “Camera board”