Skip to content

Instantly share code, notes, and snippets.

@bhalonen
Last active November 21, 2017 04:08
Show Gist options
  • Save bhalonen/fc6798bd661bbec2824358c361bbbda6 to your computer and use it in GitHub Desktop.
Save bhalonen/fc6798bd661bbec2824358c361bbbda6 to your computer and use it in GitHub Desktop.
Follow this pattern.
{
"version" : 2,
"sample-name": "Trial Sample",
"images":[
"../example-photos/Apple-DemoS2-Aluminum-5e5 010.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 011.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 012.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 013.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 014.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 015.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 016.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 017.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 018.jpg",
"../example-photos/Apple-DemoS2-Aluminum-5e5 019.jpg"
],
"roi":"../example-photos/roi.png",
"dic-settings":{
"scale-factor":3,
"interpolation":"Cubic Keys Precompute",
"threads":8,
"subregion":"circle",
"radius-sub": 20,
"dic-config":"NO_UPDATE"
},
"output-settings":{
"ouput-strain-mode":"Lagrangian",
"video-strain-mode":"Eulerian",
"csv-out":["mean e1","mean e2","mean exx","mean eyy","mean exy"],
"video-img-out":"e1",
"units":"inch",
"units-per-px":".01",
"fps":15,
"opencv-color":"COLORMAP_JET",
"end-delay":2,
"fourcc":["M","J","P","G"],
"colorbar": true,
"axes": false,
"scalebar":false,
"num-units":-1,
"font-size":1,
"tick-marks":11,
"strain-min":0,
"strain-max":-1,
"disp-min": 0,
"disp-max": 2.0,
"strain radius":20,
"subregion":"circle",
"output":"image",
"output-dir": "../example-photos/Result/"
},
"results":{
"dic-input":"",
"dic-output":"",
"strain-input":"",
"strain-output":""
}
}
@markhalonen
Copy link

The below is your exact example run through this json formatter. Just to make it easier and consistent for comparison.

{
   "version":2,
   "sample-name":"Trial Sample",
   "images":[
      "../example-photos/Apple-DemoS2-Aluminum-5e5 010.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 011.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 012.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 013.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 014.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 015.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 016.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 017.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 018.jpg",
      "../example-photos/Apple-DemoS2-Aluminum-5e5 019.jpg"
   ],
   "roi":"../example-photos/roi.png",
   "dic-settings":{
      "scale-factor":3,
      "interpolation":"Cubic Keys Precompute",
      "threads":8,
      "subregion":"circle",
      "radius-sub":20,
      "dic-config":"NO_UPDATE"
   },
   "output-settings":{
      "ouput-strain-mode":"Lagrangian",
      "video-strain-mode":"Eulerian",
      "csv-out":[
         "mean e1",
         "mean e2",
         "mean exx",
         "mean eyy",
         "mean exy"
      ],
      "video-img-out":"e1",
      "units":"inch",
      "units-per-px":".01",
      "fps":15,
      "opencv-color":"COLORMAP_JET",
      "end-delay":2,
      "fourcc":[
         "M",
         "J",
         "P",
         "G"
      ],
      "colorbar":true,
      "axes":false,
      "scalebar":false,
      "num-units":-1,
      "font-size":1,
      "tick-marks":11,
      "strain-min":0,
      "strain-max":-1,
      "disp-min":0,
      "disp-max":2.0,
      "strain radius":20,
      "subregion":"circle",
      "output":"image",
      "output-dir":"../example-photos/Result/"
   },
   "results":{
      "dic-input":"",
      "dic-output":"",
      "strain-input":"",
      "strain-output":""
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment