Source/Source/CubeSatCamera.cpp
//takes frame and saves it at path with specified compression format
takes frame and saves it at path with specified compression format
takes frame and saves it at path with specified compression format
bool CubeSatCamera::compress(const Mat &frame, const cameraParams_t *params, string camera) {
  return imwrite(params -> filePath + params -> fileName + "(" + camera + ")" + "." + params -> compression, frame);
}
bool CubeSatCamera :: compress ( const Mat & frame , const cameraParams_t * params , string camera ) { return imwrite ( params -> filePath + params -> fileName + " " + camera + " " + " " + params -> compression , frame ) ; }
takes frame and saves it at path with specified compression format
takes frame and saves it at path with specified compression format
// vector<int> compression_params; // if (params -> compression == "jpeg") { //   compression_params.push_back(IMWRITE_JPEG_QUALITY); //   compression_params.push_back(params -> quality); // } // else if (params -> compression == "png") { //   compression_params.push_back(IMWRITE_PNG_COMPRESSION); //   compression_params.push_back(params -> quality); // }