Trouble loading saved bmp file using spinnaker SDK
Hi, I am trying to build quick test software by modifying the SpinSimpleGUI_MFC file. I want to load a previously saved file and display in same SpinnakerMFC GUI display window.
I am having trouble in loading the file I saved. Please see below load command I am using.
ImagePtr pImage = Image::Load(filePathA.GetString(), saveImageFormat);
Once loaded how can I display back in the same SpinnakerMFC GUI window? I haven't reached this point as, so didn't get to test if displaying is working or not.
-
Official comment
Hello Mohit,
To load an image back into a Spinnaker image, you can find some example C++ and C# code in our github repo at Spinnaker-Examples/RawToProcessed at main · Teledyne-MV/Spinnaker-Examples (github.com)
That being said, this is to load saved raw images back into a spinnaker image structure. Loading a bitmap into a spinnaker structure is not something we support, since the spinnaker image structure is used for raw data before converting to save the bitmap.
If you have bitmaps that you want to display in a window, I expect you could do this outside of the spinnaker API, using standard calls to load a bitmap and display it in an MFC window, unrelated to the spinnaker objects.
Otherwise, i would recommend you save the spinnaker images as raw in your code, and then read them back in afterwards using the examples in our github repo above.
I hope that helps.
Thank you,
Demos
Please sign in to leave a comment.
Comments
1 comment