Reduce to 2 colors only (black+white) based on threshhold (x-raw GRAY8 format)?
Nicolas Dufresne
nicolas at ndufresne.ca
Mon Nov 20 19:39:22 UTC 2017
Le lundi 20 novembre 2017 à 14:23 -0500, Josh Doe a écrit :
> > There is frei0r-filter-threshold0r that can do that, but the
> > element
> > only inputs RGBA, which forces double color conversion. It's a bit
> > inconvenient. I wonder if it's a Frei0r limitation, or GStreamer
> > here.
>
> It's a frei0r limitation. A while back I made a MATLAB script which
> would turn a MATLAB M-file into a frei0r plugin to be used in
> GStreamer, and found there was no GRAY8 or GRAY16_*. It's a simple
> #define that's needed to add additional color models, though frei0r.h
> hasn't been touched since 2012.
That's unfortunate. Well, writing a GstVideoFilter element for that is
rather trivial though. I like the use of a double for the threshold.
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171120/c3a2b89f/attachment.sig>
More information about the gstreamer-devel
mailing list