Commit 19022025
This commit is contained in:
@@ -361,6 +361,17 @@ public class SomeCodes {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean Save(UMat source, String filename, int[] param){
|
||||
if (source!=null && !source.empty() && ValidString(filename)){
|
||||
try{
|
||||
return opencv_imgcodecs.imwrite(filename, source, param);
|
||||
} catch (Exception e){
|
||||
Logger.error("Error saving file: "+filename+", Msg : "+e.getMessage());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Concatenate byte arrays
|
||||
* @param args byte arrays
|
||||
|
||||
Reference in New Issue
Block a user