2 #file name : data_analysis.py
3 #Laueye - A program to analyze Laue diffraction diagrams.
4 #Copyright (C) <2008> <Grissiom>
6 #This program is free software: you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation, either version 3 of the License, or
9 #(at your option) any later version.
11 #This program is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with this program. If not, see <http://www.gnu.org/licenses/>.
19 from graphical_analysis_pyqt4
import circle
, Laue_diagram
21 from PyQt4
.QtGui
import QImage
24 im_ori
.load('../laue.png')
25 im
= Laue_diagram(im_ori
)
27 im
.figure_out_circles()
30 #while i < len(circles_list):
31 # if len(circles_list[i].x_list) < 5:
35 #im.circles = circles_list
36 print 'we have', len(im
.circles
),'circles'
37 im2
= im
.draw_boundry_center()
38 print 'image saved:', im2
.save('../graphical_analysis_pyqt6.png')