// automatically generated by admSerialization.py, do not edit!
#include "ADM_default.h"
#include "ADM_paramList.h"
#include "ADM_coreJson.h"
#include "imageStab.h"
bool  imageStab_jserialize(const char *file, const imageStab *key){
admJson json;
json.addFloat("smoothing",key->smoothing);
json.addFloat("gravity",key->gravity);
json.addBool("autoGravity",key->autoGravity);
json.addFloat("sceneThreshold",key->sceneThreshold);
json.addFloat("zoom",key->zoom);
json.addUint32("algo",key->algo);
json.addUint32("motionEstimation",key->motionEstimation);
json.addBool("pad",key->pad);
return json.dumpToFile(file);
};
bool  imageStab_jdeserialize(const char *file, const ADM_paramList *tmpl,imageStab *key){
admJsonToCouple json;
CONFcouple *c=json.readFromFile(file);
if(!c) {ADM_error("Cannot read json file");return false;}
bool r= ADM_paramLoadPartial(c,tmpl,key);
delete c;
return r;
};
