An example of how to create a source of images as a port.
int main(
int argc,
char* argv[])
{
BufferedPort<ImageOf<PixelRgb>> port;
Property options;
options.fromCommand(argc, argv);
port.open(options.check("name", Value("/image")).asString());
size_t ct = 0;
while (true) {
ImageOf<PixelRgb>& img = port.prepare();
img.resize(100, 100);
img.zero();
PixelRgb blue{0, 0, 255};
ct = (ct + 5) % 100;
port.write();
constexpr double loop_delay = 0.25;
}
return 0;
}