I am writing (or rather capturing) a small network camera capture program written in Visual C ++. The camera is Allied Vision Technologies and uses PvAPI.h, while the GUI was recorded in wxwidgets. The project was abandoned when they could not get tiff images for loading under wxWidgets. I traced the problem to one line, unfortunately, this is the line where the frame is taken from the camera.
if( !ImageWriteTiff(GCamera.Filename,pFrame) )
if I comment on this line, the next line works fine
image = new wxStaticBitmap(mainPanel, wxID_ANY, wxBitmap("C:\\path-to\\horse.tif",
wxBITMAP_TYPE_TIF), wxPoint(244,64));
For some reason, if I use ImageWriteTiff, this prevents wxWidgets from importing tiff. I also definitely import all image processors
wxInitAllImageHandlers();
source
share