#include <noaa_apt_sink.h>
|
static sptr | make (const char *filename_png, size_t width, size_t height, bool sync, bool flip) |
|
Sink block for NOAA satellites
◆ sptr
◆ make()
static sptr gr::satnogs::noaa_apt_sink::make |
( |
const char * |
filename_png, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
bool |
sync, |
|
|
bool |
flip |
|
) |
| |
|
static |
Accepts a stream of floats in the range [0,1] which correspond to one sample per symbol (pixel) and outputs a grayscale PNG image. The user can choose between deriving a single PNG file for each width x length pixels or two PNG files corresponding to each one of the two different spectrum images contained in a NOAA APT transmission. The notation 'left' and 'right' is with respect to the original image sent by the satellite. Further, this block performs normalization on the input float values based on the max and min values observed in the stream. Adding to that, the user has the option to synchronize to the first of the two training sequences used by the NOAA APT protocol so that the two images are displayed one next to the other. The user can also select to rotate the image 180 degrees in case the captured one is upside down.
- Parameters
-
filename_png | the base filename of the output PNG file(s) |
width | the width of the image in the APT transmission |
height | the height of the image in the APT transmission |
sync | user option for synchronizing to the first of the two training sequences |
flip | user option to rotate the image(s) 180 degrees |
The documentation for this class was generated from the following file: