Process

Extra imports for easy of use


In [ ]:
import os
import json

Module import


In [ ]:
from emva1288 import process

Where to find the images


In [ ]:
dir_ = '/home/fede/workspace/datasets1288'
fname = 'EMVA1288_ReferenceSet_003_Simulation_12Bit/EMVA1288_Data.txt'

Parse the decriptor file


In [ ]:
parser = process.ParseEmvaDescriptorFile(os.path.join(dir_, fname))

In [ ]:
parser.images

Load the images


In [ ]:
imgs = process.LoadImageData(parser.images)

In [ ]:
imgs.data

Extract image data


In [ ]:
dat = process.Data1288(imgs.data)

In [ ]:
dat.data

Compute the results


In [ ]:
res = process.Results1288(dat.data)

In [ ]:
res.QE

In [ ]:
res.print_results()

Plot the results


In [ ]:
plot = process.Plotting1288(res)
plot.plot()

In [ ]: