Skip to main content

pylon

Pylon CPP API Reference

Image Stitching Example

#include <iostream>
#include <pylon/Pixel.h>
#include <pylon/PylonIncludes.h>
#include "StitchImage.h"
// https://github.com/MattsProjects/StitchImage/blob/master/StitchImage.h

int main(int argc, char * argv[]) {
Pylon::CPylonImage image1;
image1.Load("left_1.png");
std::cout << image1.GetHeight() << std::endl;
std::cout << image1.GetWidth() << std::endl;

Pylon::CPylonImage image2;
image2.Load("right_1.png");
std::cout << image2.GetHeight() << std::endl;
std::cout << image2.GetWidth() << std::endl;

Pylon::CPylonImage horizontalStitchedImage;

std::string errorMessage = "";

StitchImage::StitchToRight(horizontalStitchedImage, image1, &horizontalStitchedImage, errorMessage);
StitchImage::StitchToRight(horizontalStitchedImage, image2, &horizontalStitchedImage, errorMessage);

const Pylon::String_t image_name = "image_stitching/stitch.png";

horizontalStitchedImage.Save(Pylon::ImageFileFormat_Png, image_name);

return 0;
}

pylon Network configuration

ROI

Stacked Zone Imaging

OpenCV pylon