Closed chhtz closed 11 months ago
I think this should be moved to FrameHelper as a "readJPEG" method that returns the frame.
I added corresponding functions to FrameHelper (added a helper function to JpegConversion): https://github.com/rock-core/perception-jpeg_conversion/pull/3 https://github.com/rock-core/perception-frame_helper/pull/18
Closing this, as the feature has been merged into FrameHelper (see links above).
Sometimes, when reading a jpeg file you don't want to fully decompress it, but keep it as compressed imaged.
frame::Frame
still wants to know the size of the image, which can be determined using libjpeg.Open points:
FrameHelper
)FrameHelper
, such asloadImageCompressed
which keeps the jpeg images in compressed mode)FrameHelper
test_suite, but did not make a PR for that)