37 lines
749 B
Python
Executable File
37 lines
749 B
Python
Executable File
#!/usr/bin/ipython
|
|
# -*- coding: utf-8 -*-
|
|
# \file test.py
|
|
# \brief TODO
|
|
# \author Florent Guiotte <florent.guiotte@gmail.com>
|
|
# \version 0.1
|
|
# \date 03 avril 2018
|
|
#
|
|
# TODO details
|
|
|
|
#from core import Input, Output, Filter
|
|
from ld2dap import LoadTIFF, SaveFig, Treshold, ShowFig, Differential
|
|
from ld2dap import AttributeProfiles as APs
|
|
from ld2dap.core import logger
|
|
|
|
import numpy as np
|
|
|
|
def main():
|
|
logger.setup_logging()
|
|
i = LoadTIFF(['Data/test.tiff', 'Data/test2.tiff'])
|
|
t = Treshold(1e4)
|
|
ap = APs([100,1e3,1e4])
|
|
o = SaveFig('Res/test.png')
|
|
s = ShowFig(0, True)
|
|
d = Differential()
|
|
|
|
t.input = i
|
|
ap.input = t
|
|
o.input = ap
|
|
d.input = ap
|
|
s.input = d
|
|
|
|
i.run()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|