IMP  2.1.1
The Integrative Modeling Platform
em2d/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_em2d', [dirname(__file__)])
19  except ImportError:
20  import _IMP_em2d
21  return _IMP_em2d
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_em2d', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_em2d = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_em2d
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
79 class IMP_EM2D_SwigPyIterator(_object):
80  """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class"""
81  __swig_setmethods__ = {}
82  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_EM2D_SwigPyIterator, name, value)
83  __swig_getmethods__ = {}
84  __getattr__ = lambda self, name: _swig_getattr(self, IMP_EM2D_SwigPyIterator, name)
85  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
91  return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
96  incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
97  """
98  return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
103  decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
104  """
105  return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
106 
107  def distance(self, *args):
108  """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
109  return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, *args)
110 
111  def equal(self, *args):
112  """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
113  return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, *args)
114 
115  def copy(self):
116  """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
117  return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
121  return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
125  return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
129  return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
130 
131  def advance(self, *args):
132  """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
133  return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, *args)
134 
135  def __eq__(self, *args):
136  """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
137  return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, *args)
138 
139  def __ne__(self, *args):
140  """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
141  return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, *args)
142 
143  def __iadd__(self, *args):
144  """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
145  return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, *args)
146 
147  def __isub__(self, *args):
148  """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
149  return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, *args)
150 
151  def __add__(self, *args):
152  """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
153  return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, *args)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
158  __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
161 
162  def __iter__(self): return self
163 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
164 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
171 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
172 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
173 IMP_SILENT = _IMP_em2d.IMP_SILENT
174 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
175 IMP_TERSE = _IMP_em2d.IMP_TERSE
176 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
177 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
178 IMP_NONE = _IMP_em2d.IMP_NONE
179 IMP_USAGE = _IMP_em2d.IMP_USAGE
180 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_em2d.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_em2d.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_em2d.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_em2d.IMPBASE_SHOW_WARNINGS
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
195  def register(self, obj):
196  """Take a reference to a director object; will only work for
197  refcounted C++ classes"""
198  if hasattr(obj, 'get_ref_count'):
199  self._objects.append(obj)
200  def cleanup(self):
201  """Only drop our reference and allow cleanup by Python if no other
202  Python references exist (we hold 3 references: one in self._objects,
203  one in x, and one in the argument list for getrefcount) *and* no
204  other C++ references exist (the Python object always holds one)"""
205  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
206  or x.get_ref_count() > 1]
207 
208 
209  self._objects = objs
210  def get_object_count(self):
211  """Get number of director objects (useful for testing only)"""
212  return len(self._objects)
213 _director_objects = _DirectorObjects()
214 
215 DEFAULT_CHECK = _IMP_em2d.DEFAULT_CHECK
216 NONE = _IMP_em2d.NONE
217 USAGE = _IMP_em2d.USAGE
218 USAGE_AND_INTERNAL = _IMP_em2d.USAGE_AND_INTERNAL
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_em2d.set_check_level(*args)
223 
224 def get_check_level():
225  """get_check_level() -> IMP::base::CheckLevel"""
226  return _IMP_em2d.get_check_level()
227 class _ostream(_object):
228  """Proxy of C++ std::ostream class"""
229  __swig_setmethods__ = {}
230  __setattr__ = lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231  __swig_getmethods__ = {}
232  __getattr__ = lambda self, name: _swig_getattr(self, _ostream, name)
233  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
234  __repr__ = _swig_repr
235  def write(self, *args):
236  """write(_ostream self, char const * osa_buf)"""
237  return _IMP_em2d._ostream_write(self, *args)
238 
239 _ostream_swigregister = _IMP_em2d._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_em2d.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
245 import IMP.base
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
251 import IMP.cgal
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
260 import IMP.algebra
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_em2d.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_em2d.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
267 import IMP.kernel
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_em2d.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
276 import IMP.display
277 IMP_GSL_HAS_IMP_BASE = _IMP_em2d.IMP_GSL_HAS_IMP_BASE
278 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
279 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
280 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
281 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
282 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
283 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
284 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
285 import IMP.gsl
286 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
289 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
290 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
291 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
292 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
293 import IMP.score_functor
294 IMP_STATISTICS_HAS_IMP_BASE = _IMP_em2d.IMP_STATISTICS_HAS_IMP_BASE
295 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
296 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
297 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
298 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
299 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
300 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
301 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
302 import IMP.statistics
303 IMP_CORE_HAS_IMP_BASE = _IMP_em2d.IMP_CORE_HAS_IMP_BASE
304 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
305 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
307 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
308 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
309 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
310 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
311 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
312 import IMP.core
313 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
314 IMP_CONTAINER_HAS_IMP_BASE = _IMP_em2d.IMP_CONTAINER_HAS_IMP_BASE
315 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
316 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
317 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
319 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
320 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
321 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
322 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
323 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
324 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
325 import IMP.container
326 IMP_ATOM_HAS_IMP_BASE = _IMP_em2d.IMP_ATOM_HAS_IMP_BASE
327 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
328 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
329 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
330 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
331 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
332 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
333 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
334 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
335 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
336 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
337 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
338 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
339 import IMP.atom
340 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
341 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
342 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
343 IMP_EM_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM_HAS_IMP_KERNEL
344 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
345 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
346 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
347 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
348 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
349 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
350 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
351 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
352 import IMP.em
353 IMP_RMF_HAS_IMP_BASE = _IMP_em2d.IMP_RMF_HAS_IMP_BASE
354 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
355 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
356 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
357 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
358 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
359 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
360 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
361 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
362 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
363 import IMP.rmf
364 import RMF
365 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
366 IMP_DOMINO_HAS_IMP_BASE = _IMP_em2d.IMP_DOMINO_HAS_IMP_BASE
367 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
368 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
369 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
370 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
371 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
372 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
373 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
374 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
375 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
376 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
377 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
378 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
379 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
380 import RMF_HDF5
381 import IMP.domino
382 IMP_EM2D_HAS_IMP_BASE = _IMP_em2d.IMP_EM2D_HAS_IMP_BASE
383 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
384 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
385 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
386 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
387 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
388 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
389 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
390 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
391 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
392 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
393 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
394 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
395 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
396 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
397 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
398 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
399 PolarResamplingParametersList=list
400 _plural_types.append("PolarResamplingParametersList")
401 _value_types.append("PolarResamplingParameters")
402 
403 ProjectionMasks=list
404 _plural_types.append("ProjectionMasks")
405 _value_types.append("ProjectionMask")
406 
407 MasksManagers=list
408 _plural_types.append("MasksManagers")
409 _value_types.append("MasksManager")
410 
411 RegistrationResults=list
412 _plural_types.append("RegistrationResults")
413 _value_types.append("RegistrationResult")
414 
415 ClusterSets=list
416 _plural_types.append("ClusterSets")
417 _value_types.append("ClusterSet")
418 
419 SingleLinkages=list
420 _plural_types.append("SingleLinkages")
421 _value_types.append("SingleLinkage")
422 
423 CompleteLinkages=list
424 _plural_types.append("CompleteLinkages")
425 _value_types.append("CompleteLinkage")
426 
427 AverageDistanceLinkages=list
428 _plural_types.append("AverageDistanceLinkages")
429 _value_types.append("AverageDistanceLinkage")
430 
431 SegmentationParametersList=list
432 _plural_types.append("SegmentationParametersList")
433 _value_types.append("SegmentationParameters")
434 
435 MatchTemplateResults=list
436 _plural_types.append("MatchTemplateResults")
437 _value_types.append("MatchTemplateResult")
438 
439 ProjectingParametersList=list
440 _plural_types.append("ProjectingParametersList")
441 _value_types.append("ProjectingParameters")
442 
443 ProjectingOptionsList=list
444 _plural_types.append("ProjectingOptionsList")
445 _value_types.append("ProjectingOptions")
446 
447 Em2DRestraintParametersList=list
448 _plural_types.append("Em2DRestraintParametersList")
449 _value_types.append("Em2DRestraintParameters")
450 
451 _object_types.append("ProjectionFinder")
452 
453 
454 def _object_cast_to_ProjectionFinder(*args):
455  """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
456  return _IMP_em2d._object_cast_to_ProjectionFinder(*args)
457 _object_types.append("ScoreFunction")
458 
459 
460 def _object_cast_to_ScoreFunction(*args):
461  """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
462  return _IMP_em2d._object_cast_to_ScoreFunction(*args)
463 _object_types.append("ChiSquaredScore")
464 
465 
466 def _object_cast_to_ChiSquaredScore(*args):
467  """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
468  return _IMP_em2d._object_cast_to_ChiSquaredScore(*args)
469 _object_types.append("EM2DScore")
470 
471 
472 def _object_cast_to_EM2DScore(*args):
473  """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
474  return _IMP_em2d._object_cast_to_EM2DScore(*args)
475 _object_types.append("MeanAbsoluteDifference")
476 
477 
478 def _object_cast_to_MeanAbsoluteDifference(*args):
479  """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
480  return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(*args)
481 _object_types.append("ProjectionParametersScoreState")
482 
483 
484 def _object_cast_to_ProjectionParametersScoreState(*args):
485  """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
486  return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(*args)
487 _object_types.append("Em2DRestraint")
488 
489 
490 def _object_cast_to_Em2DRestraint(*args):
491  """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
492  return _IMP_em2d._object_cast_to_Em2DRestraint(*args)
493 _object_types.append("Image")
494 
495 
496 def _object_cast_to_Image(*args):
497  """_object_cast_to_Image(Object o) -> Image"""
498  return _IMP_em2d._object_cast_to_Image(*args)
499 _object_types.append("ImageReaderWriter")
500 
501 
502 def _object_cast_to_ImageReaderWriter(*args):
503  """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
504  return _IMP_em2d._object_cast_to_ImageReaderWriter(*args)
505 _object_types.append("JPGImageReaderWriter")
506 
507 
508 def _object_cast_to_JPGImageReaderWriter(*args):
509  """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
510  return _IMP_em2d._object_cast_to_JPGImageReaderWriter(*args)
511 _object_types.append("TIFFImageReaderWriter")
512 
513 
514 def _object_cast_to_TIFFImageReaderWriter(*args):
515  """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
516  return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(*args)
517 _object_types.append("SpiderImageReaderWriter")
518 
519 
520 def _object_cast_to_SpiderImageReaderWriter(*args):
521  """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
522  return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(*args)
523 _object_types.append("CollisionCrossSection")
524 
525 
526 def _object_cast_to_CollisionCrossSection(*args):
527  """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
528  return _IMP_em2d._object_cast_to_CollisionCrossSection(*args)
529 _object_types.append("GridStates")
530 
531 
532 def _object_cast_to_GridStates(*args):
533  """_object_cast_to_GridStates(Object o) -> GridStates"""
534  return _IMP_em2d._object_cast_to_GridStates(*args)
535 _object_types.append("ProjectionStates")
536 
537 
538 def _object_cast_to_ProjectionStates(*args):
539  """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
540  return _IMP_em2d._object_cast_to_ProjectionStates(*args)
541 _object_types.append("DistanceFilter")
542 
543 
544 def _object_cast_to_DistanceFilter(*args):
545  """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
546  return _IMP_em2d._object_cast_to_DistanceFilter(*args)
547 _object_types.append("DistanceFilterTable")
548 
549 
550 def _object_cast_to_DistanceFilterTable(*args):
551  """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
552  return _IMP_em2d._object_cast_to_DistanceFilterTable(*args)
553 _object_types.append("RigidBodiesImageFitRestraint")
554 
555 
556 def _object_cast_to_RigidBodiesImageFitRestraint(*args):
557  """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
558  return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(*args)
559 _object_types.append("DummyRestraint")
560 
561 
562 def _object_cast_to_DummyRestraint(*args):
563  """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
564  return _IMP_em2d._object_cast_to_DummyRestraint(*args)
565 _object_types.append("ParticlesDummyRestraint")
566 
567 
568 def _object_cast_to_ParticlesDummyRestraint(*args):
569  """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
570  return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(*args)
571 _object_types.append("RelativePositionMover")
572 
573 
574 def _object_cast_to_RelativePositionMover(*args):
575  """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
576  return _IMP_em2d._object_cast_to_RelativePositionMover(*args)
577 def ProjectionParametersList(l=[]):
578  return [ProjectionParameters(x) for x in l]
579 _plural_types.append("ProjectionParametersList")
580 
581 _value_types.append("ProjectionParameters")
582 
583 
584 def show(*args):
585  """
586  show(cv::Mat const & m, _ostream out=std::cout)
587  show(cv::Mat const & m)
588  """
589  return _IMP_em2d.show(*args)
590 
591 def write_matrix(*args):
592  """write_matrix(cv::Mat & m, std::string name)"""
593  return _IMP_em2d.write_matrix(*args)
594 class ImageReaderWriter(IMP.base.Object):
595  """Proxy of C++ IMP::em2d::ImageReaderWriter class"""
596  __swig_setmethods__ = {}
597  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
598  __setattr__ = lambda self, name, value: _swig_setattr(self, ImageReaderWriter, name, value)
599  __swig_getmethods__ = {}
600  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
601  __getattr__ = lambda self, name: _swig_getattr(self, ImageReaderWriter, name)
602  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
603  def read(self, *args):
604  """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
605  return _IMP_em2d.ImageReaderWriter_read(self, *args)
606 
607  def read_from_floats(self, *args):
608  """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
609  return _IMP_em2d.ImageReaderWriter_read_from_floats(self, *args)
610 
611  def read_from_ints(self, *args):
612  """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
613  return _IMP_em2d.ImageReaderWriter_read_from_ints(self, *args)
614 
615  def write(self, *args):
616  """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
617  return _IMP_em2d.ImageReaderWriter_write(self, *args)
618 
619  def write_to_floats(self, *args):
620  """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
621  return _IMP_em2d.ImageReaderWriter_write_to_floats(self, *args)
622 
623  def write_to_ints(self, *args):
624  """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
625  return _IMP_em2d.ImageReaderWriter_write_to_ints(self, *args)
626 
627  def get_version_info(self):
628  """get_version_info(ImageReaderWriter self) -> VersionInfo"""
629  return _IMP_em2d.ImageReaderWriter_get_version_info(self)
630 
631  __swig_destroy__ = _IMP_em2d.delete_ImageReaderWriter
632  __del__ = lambda self : None;
633  def __str__(self):
634  """__str__(ImageReaderWriter self) -> std::string"""
635  return _IMP_em2d.ImageReaderWriter___str__(self)
636 
637  def __repr__(self):
638  """__repr__(ImageReaderWriter self) -> std::string"""
639  return _IMP_em2d.ImageReaderWriter___repr__(self)
640 
641  def get_from(o):
642  return _object_cast_to_ImageReaderWriter(o)
643  get_from = staticmethod(get_from)
644 
645 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
646 ImageReaderWriter_swigregister(ImageReaderWriter)
647 
648 class PolarResamplingParameters(_object):
649  """Proxy of C++ IMP::em2d::PolarResamplingParameters class"""
650  __swig_setmethods__ = {}
651  __setattr__ = lambda self, name, value: _swig_setattr(self, PolarResamplingParameters, name, value)
652  __swig_getmethods__ = {}
653  __getattr__ = lambda self, name: _swig_getattr(self, PolarResamplingParameters, name)
654  def __init__(self, *args):
655  """
656  __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
657  __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
658  __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
659  """
660  this = _IMP_em2d.new_PolarResamplingParameters(*args)
661  try: self.this.append(this)
662  except: self.this = this
663  __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
664  __del__ = lambda self : None;
665  def setup(self, *args):
666  """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
667  return _IMP_em2d.PolarResamplingParameters_setup(self, *args)
668 
669  def get_starting_radius(self):
670  """get_starting_radius(PolarResamplingParameters self) -> double"""
671  return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
672 
673  def get_ending_radius(self):
674  """get_ending_radius(PolarResamplingParameters self) -> double"""
675  return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
676 
677  def get_radius(self, *args):
678  """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
679  return _IMP_em2d.PolarResamplingParameters_get_radius(self, *args)
680 
681  def get_number_of_rings(self):
682  """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
683  return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
684 
685  def set_estimated_number_of_angles(self, *args):
686  """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
687  return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, *args)
688 
689  def get_number_of_angles(self):
690  """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
691  return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
692 
693  def get_angle_step(self):
694  """get_angle_step(PolarResamplingParameters self) -> double"""
695  return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
696 
697  def get_radius_step(self):
698  """get_radius_step(PolarResamplingParameters self) -> double"""
699  return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
700 
701  def create_maps_for_resampling(self):
702  """create_maps_for_resampling(PolarResamplingParameters self)"""
703  return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
704 
705  def get_resampling_maps(self, *args):
706  """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
707  return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, *args)
708 
709  def get_resampling_map(self, *args):
710  """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
711  return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, *args)
712 
713  def show(self, *args):
714  """show(PolarResamplingParameters self, _ostream out)"""
715  return _IMP_em2d.PolarResamplingParameters_show(self, *args)
716 
717  def get_is_setup(self):
718  """get_is_setup(PolarResamplingParameters self) -> bool"""
719  return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
720 
721  def __str__(self):
722  """__str__(PolarResamplingParameters self) -> std::string"""
723  return _IMP_em2d.PolarResamplingParameters___str__(self)
724 
725  def __repr__(self):
726  """__repr__(PolarResamplingParameters self) -> std::string"""
727  return _IMP_em2d.PolarResamplingParameters___repr__(self)
728 
729 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
730 PolarResamplingParameters_swigregister(PolarResamplingParameters)
731 
732 class SegmentationParameters(_object):
733  """Proxy of C++ IMP::em2d::SegmentationParameters class"""
734  __swig_setmethods__ = {}
735  __setattr__ = lambda self, name, value: _swig_setattr(self, SegmentationParameters, name, value)
736  __swig_getmethods__ = {}
737  __getattr__ = lambda self, name: _swig_getattr(self, SegmentationParameters, name)
738  __swig_setmethods__["image_pixel_size"] = _IMP_em2d.SegmentationParameters_image_pixel_size_set
739  __swig_getmethods__["image_pixel_size"] = _IMP_em2d.SegmentationParameters_image_pixel_size_get
740  if _newclass:image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
741  __swig_setmethods__["diffusion_beta"] = _IMP_em2d.SegmentationParameters_diffusion_beta_set
742  __swig_getmethods__["diffusion_beta"] = _IMP_em2d.SegmentationParameters_diffusion_beta_get
743  if _newclass:diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
744  __swig_setmethods__["diffusion_timesteps"] = _IMP_em2d.SegmentationParameters_diffusion_timesteps_set
745  __swig_getmethods__["diffusion_timesteps"] = _IMP_em2d.SegmentationParameters_diffusion_timesteps_get
746  if _newclass:diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
747  __swig_setmethods__["fill_holes_stddevs"] = _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set
748  __swig_getmethods__["fill_holes_stddevs"] = _IMP_em2d.SegmentationParameters_fill_holes_stddevs_get
749  if _newclass:fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
750  __swig_setmethods__["opening_kernel"] = _IMP_em2d.SegmentationParameters_opening_kernel_set
751  __swig_getmethods__["opening_kernel"] = _IMP_em2d.SegmentationParameters_opening_kernel_get
752  if _newclass:opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
753  __swig_setmethods__["remove_sizing_percentage"] = _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set
754  __swig_getmethods__["remove_sizing_percentage"] = _IMP_em2d.SegmentationParameters_remove_sizing_percentage_get
755  if _newclass:remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
756  __swig_setmethods__["binary_background"] = _IMP_em2d.SegmentationParameters_binary_background_set
757  __swig_getmethods__["binary_background"] = _IMP_em2d.SegmentationParameters_binary_background_get
758  if _newclass:binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
759  __swig_setmethods__["binary_foreground"] = _IMP_em2d.SegmentationParameters_binary_foreground_set
760  __swig_getmethods__["binary_foreground"] = _IMP_em2d.SegmentationParameters_binary_foreground_get
761  if _newclass:binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
762  __swig_setmethods__["threshold"] = _IMP_em2d.SegmentationParameters_threshold_set
763  __swig_getmethods__["threshold"] = _IMP_em2d.SegmentationParameters_threshold_get
764  if _newclass:threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
765  def __init__(self, *args):
766  """
767  __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
768  __init__(IMP::em2d::SegmentationParameters self, double apix, double diff_beta, unsigned int diff_timesteps, double fh_stddevs, cv::Mat const & kr,
769  int background, int foreground) -> SegmentationParameters
770  """
771  this = _IMP_em2d.new_SegmentationParameters(*args)
772  try: self.this.append(this)
773  except: self.this = this
774  def show(self, *args):
775  """
776  show(SegmentationParameters self, _ostream out=std::cout)
777  show(SegmentationParameters self)
778  """
779  return _IMP_em2d.SegmentationParameters_show(self, *args)
780 
781  def __str__(self):
782  """__str__(SegmentationParameters self) -> std::string"""
783  return _IMP_em2d.SegmentationParameters___str__(self)
784 
785  def __repr__(self):
786  """__repr__(SegmentationParameters self) -> std::string"""
787  return _IMP_em2d.SegmentationParameters___repr__(self)
788 
789  __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
790  __del__ = lambda self : None;
791 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
792 SegmentationParameters_swigregister(SegmentationParameters)
793 
794 class MatchTemplateResult(_object):
795  """Proxy of C++ IMP::em2d::MatchTemplateResult class"""
796  __swig_setmethods__ = {}
797  __setattr__ = lambda self, name, value: _swig_setattr(self, MatchTemplateResult, name, value)
798  __swig_getmethods__ = {}
799  __getattr__ = lambda self, name: _swig_getattr(self, MatchTemplateResult, name)
800  __swig_setmethods__["pair"] = _IMP_em2d.MatchTemplateResult_pair_set
801  __swig_getmethods__["pair"] = _IMP_em2d.MatchTemplateResult_pair_get
802  if _newclass:pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
803  __swig_setmethods__["cross_correlation"] = _IMP_em2d.MatchTemplateResult_cross_correlation_set
804  __swig_getmethods__["cross_correlation"] = _IMP_em2d.MatchTemplateResult_cross_correlation_get
805  if _newclass:cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
806  def __init__(self, *args):
807  """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
808  this = _IMP_em2d.new_MatchTemplateResult(*args)
809  try: self.this.append(this)
810  except: self.this = this
811  def show(self, *args):
812  """
813  show(MatchTemplateResult self, _ostream out=std::cout)
814  show(MatchTemplateResult self)
815  """
816  return _IMP_em2d.MatchTemplateResult_show(self, *args)
817 
818  def __str__(self):
819  """__str__(MatchTemplateResult self) -> std::string"""
820  return _IMP_em2d.MatchTemplateResult___str__(self)
821 
822  def __repr__(self):
823  """__repr__(MatchTemplateResult self) -> std::string"""
824  return _IMP_em2d.MatchTemplateResult___repr__(self)
825 
826  __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
827  __del__ = lambda self : None;
828 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
829 MatchTemplateResult_swigregister(MatchTemplateResult)
830 
831 
832 def apply_mask(*args):
833  """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
834  return _IMP_em2d.apply_mask(*args)
835 
836 def apply_circular_mask(*args):
837  """
838  apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
839  apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
840  """
841  return _IMP_em2d.apply_circular_mask(*args)
842 
843 def get_mean(*args):
844  """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
845  return _IMP_em2d.get_mean(*args)
846 
847 def create_circular_mask(*args):
848  """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
849  return _IMP_em2d.create_circular_mask(*args)
850 
851 def do_histogram_stretching(*args):
852  """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
853  return _IMP_em2d.do_histogram_stretching(*args)
854 
855 def do_dilate_and_shrink_warp(*args):
856  """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & greyscale, cv::Mat & kernel)"""
857  return _IMP_em2d.do_dilate_and_shrink_warp(*args)
858 
860  """
861  do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
862  do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
863  """
864  return _IMP_em2d.do_morphologic_reconstruction(*args)
865 
866 def do_labeling(*args):
867  """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
868  return _IMP_em2d.do_labeling(*args)
869 
871  """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
872  return _IMP_em2d.get_diffusion_filtering_partial_derivative(*args)
873 
874 def get_domes(*args):
875  """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
876  return _IMP_em2d.get_domes(*args)
877 
878 def my_meanStdDev(*args):
879  """my_meanStdDev(cv::Mat const & m, cv::Scalar & mean, cv::Scalar & stddev)"""
880  return _IMP_em2d.my_meanStdDev(*args)
881 
882 def get_transformed(*args):
883  """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
884  return _IMP_em2d.get_transformed(*args)
885 
886 def apply_threshold(*args):
887  """
888  apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
889  apply_threshold(cv::Mat & m, cv::Mat & result)
890  """
891  return _IMP_em2d.apply_threshold(*args)
892 
894  """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
895  return _IMP_em2d.do_morphologic_contrast_enhancement(*args)
896 
897 def get_morphologic_gradient(*args):
898  """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
899  return _IMP_em2d.get_morphologic_gradient(*args)
900 
901 def get_overlap_percentage(*args):
902  """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
903  return _IMP_em2d.get_overlap_percentage(*args)
904 
905 def get_best_template_matches(*args):
906  """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
907  return _IMP_em2d.get_best_template_matches(*args)
908 class Image(IMP.base.Object):
909  """Proxy of C++ IMP::em2d::Image class"""
910  __swig_setmethods__ = {}
911  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
912  __setattr__ = lambda self, name, value: _swig_setattr(self, Image, name, value)
913  __swig_getmethods__ = {}
914  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
915  __getattr__ = lambda self, name: _swig_getattr(self, Image, name)
916  def __init__(self, *args):
917  """
918  __init__(IMP::em2d::Image self) -> Image
919  __init__(IMP::em2d::Image self, int rows, int cols) -> Image
920  __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
921  """
922  this = _IMP_em2d.new_Image(*args)
923  try: self.this.append(this)
924  except: self.this = this
925  def get_data(self):
926  """get_data(Image self) -> cv::Mat &"""
927  return _IMP_em2d.Image_get_data(self)
928 
929  def set_data(self, *args):
930  """set_data(Image self, cv::Mat const & mat)"""
931  return _IMP_em2d.Image_set_data(self, *args)
932 
933  def set_zeros(self):
934  """set_zeros(Image self)"""
935  return _IMP_em2d.Image_set_zeros(self)
936 
937  def set_value(self, *args):
938  """
939  set_value(Image self, double val)
940  set_value(Image self, int i, int j, double val)
941  """
942  return _IMP_em2d.Image_set_value(self, *args)
943 
944  def __call__(self, *args):
945  """__call__(Image self, int i, int j) -> double"""
946  return _IMP_em2d.Image___call__(self, *args)
947 
948  def get_header(self):
949  """get_header(Image self) -> ImageHeader"""
950  return _IMP_em2d.Image_get_header(self)
951 
952  def set_size(self, *args):
953  """
954  set_size(Image self, int rows, int cols)
955  set_size(Image self, Image img)
956  """
957  return _IMP_em2d.Image_set_size(self, *args)
958 
959  def update_header(self):
960  """update_header(Image self)"""
961  return _IMP_em2d.Image_update_header(self)
962 
963  def read(self, *args):
964  """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
965  return _IMP_em2d.Image_read(self, *args)
966 
967  def write(self, *args):
968  """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
969  return _IMP_em2d.Image_write(self, *args)
970 
971  def show(self, *args):
972  """show(Image self, _ostream out)"""
973  return _IMP_em2d.Image_show(self, *args)
974 
975  def get_version_info(self):
976  """get_version_info(Image self) -> VersionInfo"""
977  return _IMP_em2d.Image_get_version_info(self)
978 
979  __swig_destroy__ = _IMP_em2d.delete_Image
980  __del__ = lambda self : None;
981  def destroyed_msg(self):
982  """destroyed_msg(Image self)"""
983  return _IMP_em2d.Image_destroyed_msg(self)
984 
985  def set_name(self, *args):
986  """set_name(Image self, IMP::String const & name)"""
987  return _IMP_em2d.Image_set_name(self, *args)
988 
989  def get_name(self):
990  """get_name(Image self) -> IMP::String"""
991  return _IMP_em2d.Image_get_name(self)
992 
993  def get_min_and_max_values(self):
994  """get_min_and_max_values(Image self) -> IMP::FloatRange"""
995  return _IMP_em2d.Image_get_min_and_max_values(self)
996 
997  def __str__(self):
998  """__str__(Image self) -> std::string"""
999  return _IMP_em2d.Image___str__(self)
1000 
1001  def __repr__(self):
1002  """__repr__(Image self) -> std::string"""
1003  return _IMP_em2d.Image___repr__(self)
1004 
1005  def get_from(o):
1006  return _object_cast_to_Image(o)
1007  get_from = staticmethod(get_from)
1008 
1009 Image_swigregister = _IMP_em2d.Image_swigregister
1010 Image_swigregister(Image)
1011 
1012 
1013 def read_images(*args):
1014  """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1015  return _IMP_em2d.read_images(*args)
1016 
1017 def save_images(*args):
1018  """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1019  return _IMP_em2d.save_images(*args)
1020 
1021 def do_normalize(*args):
1022  """
1023  do_normalize(cv::Mat & m)
1024  do_normalize(Image im, bool force=False)
1025  do_normalize(Image im)
1026  """
1027  return _IMP_em2d.do_normalize(*args)
1028 
1029 def get_histogram(*args):
1030  """
1031  get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1032  get_histogram(Image img, int bins) -> IMP::Floats
1033  """
1034  return _IMP_em2d.get_histogram(*args)
1035 
1036 def apply_variance_filter(*args):
1037  """
1038  apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1039  apply_variance_filter(Image input, Image filtered, int kernelsize)
1040  """
1041  return _IMP_em2d.apply_variance_filter(*args)
1042 
1043 def apply_diffusion_filter(*args):
1044  """
1045  apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1046  apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1047  """
1048  return _IMP_em2d.apply_diffusion_filter(*args)
1049 
1050 def do_fill_holes(*args):
1051  """
1052  do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1053  do_fill_holes(Image input, Image result, double n_stddevs)
1054  """
1055  return _IMP_em2d.do_fill_holes(*args)
1056 
1057 def do_combined_fill_holes_and_threshold(*args):
1058  """
1059  do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1060  do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1061  do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1062  """
1063  return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1064 
1065 def do_extend_borders(*args):
1066  """
1067  do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1068  do_extend_borders(Image im1, Image im2, unsigned int pix)
1069  """
1070  return _IMP_em2d.do_extend_borders(*args)
1071 
1072 def do_segmentation(*args):
1073  """
1074  do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1075  do_segmentation(Image input, Image result, SegmentationParameters params)
1076  """
1077  return _IMP_em2d.do_segmentation(*args)
1078 
1079 def do_remove_small_objects(*args):
1080  """
1081  do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1082  do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1083  do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1084  do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1085  do_remove_small_objects(Image input, double percentage, int background=0)
1086  do_remove_small_objects(Image input, double percentage)
1087  """
1088  return _IMP_em2d.do_remove_small_objects(*args)
1089 
1090 def do_subtract_images(*args):
1091  """do_subtract_images(Image first, Image second, Image result)"""
1092  return _IMP_em2d.do_subtract_images(*args)
1093 
1094 def add_noise(*args):
1095  """
1096  add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1097  add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform")
1098  add_noise(cv::Mat & v, double op1, double op2)
1099  add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1100  add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform")
1101  add_noise(Image im1, double op1, double op2)
1102  """
1103  return _IMP_em2d.add_noise(*args)
1104 
1105 def do_resample_polar(*args):
1106  """
1107  do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1108  do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1109  """
1110  return _IMP_em2d.do_resample_polar(*args)
1111 
1112 def crop(*args):
1113  """
1114  crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1115  crop(Image img, IMP::IntPair const & center, int size)
1116  """
1117  return _IMP_em2d.crop(*args)
1118 
1119 def apply_mean_outside_mask(*args):
1120  """apply_mean_outside_mask(Image img, double radius)"""
1121  return _IMP_em2d.apply_mean_outside_mask(*args)
1122 class RegistrationResult(_object):
1123  """Proxy of C++ IMP::em2d::RegistrationResult class"""
1124  __swig_setmethods__ = {}
1125  __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationResult, name, value)
1126  __swig_getmethods__ = {}
1127  __getattr__ = lambda self, name: _swig_getattr(self, RegistrationResult, name)
1128  def __init__(self, *args):
1129  """
1130  __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1131  __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0,
1132  IMP::String name="") -> RegistrationResult
1133  __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1134  __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1135  __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1136  __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0,
1137  int image_index=0, IMP::String name="") -> RegistrationResult
1138  __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0,
1139  int image_index=0) -> RegistrationResult
1140  __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0) -> RegistrationResult
1141  __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.)) -> RegistrationResult
1142  __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1143  """
1144  this = _IMP_em2d.new_RegistrationResult(*args)
1145  try: self.this.append(this)
1146  except: self.this = this
1147  def get_phi(self):
1148  """get_phi(RegistrationResult self) -> double"""
1149  return _IMP_em2d.RegistrationResult_get_phi(self)
1150 
1151  def get_theta(self):
1152  """get_theta(RegistrationResult self) -> double"""
1153  return _IMP_em2d.RegistrationResult_get_theta(self)
1154 
1155  def get_psi(self):
1156  """get_psi(RegistrationResult self) -> double"""
1157  return _IMP_em2d.RegistrationResult_get_psi(self)
1158 
1159  def get_shift(self):
1160  """get_shift(RegistrationResult self) -> Vector2D"""
1161  return _IMP_em2d.RegistrationResult_get_shift(self)
1162 
1163  def get_shift_3d(self):
1164  """get_shift_3d(RegistrationResult self) -> Vector3D"""
1165  return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1166 
1167  def get_projection_index(self):
1168  """get_projection_index(RegistrationResult self) -> int"""
1169  return _IMP_em2d.RegistrationResult_get_projection_index(self)
1170 
1171  def set_projection_index(self, *args):
1172  """set_projection_index(RegistrationResult self, int index)"""
1173  return _IMP_em2d.RegistrationResult_set_projection_index(self, *args)
1174 
1175  def get_image_index(self):
1176  """get_image_index(RegistrationResult self) -> int"""
1177  return _IMP_em2d.RegistrationResult_get_image_index(self)
1178 
1179  def set_image_index(self, *args):
1180  """set_image_index(RegistrationResult self, int index)"""
1181  return _IMP_em2d.RegistrationResult_set_image_index(self, *args)
1182 
1183  def get_name(self):
1184  """get_name(RegistrationResult self) -> IMP::String"""
1185  return _IMP_em2d.RegistrationResult_get_name(self)
1186 
1187  def get_ccc(self):
1188  """get_ccc(RegistrationResult self) -> double"""
1189  return _IMP_em2d.RegistrationResult_get_ccc(self)
1190 
1191  def set_ccc(self, *args):
1192  """set_ccc(RegistrationResult self, double ccc)"""
1193  return _IMP_em2d.RegistrationResult_set_ccc(self, *args)
1194 
1195  def get_score(self):
1196  """get_score(RegistrationResult self) -> double"""
1197  return _IMP_em2d.RegistrationResult_get_score(self)
1198 
1199  def set_score(self, *args):
1200  """set_score(RegistrationResult self, double Score)"""
1201  return _IMP_em2d.RegistrationResult_set_score(self, *args)
1202 
1203  def set_rotation(self, *args):
1204  """
1205  set_rotation(RegistrationResult self, double phi, double theta, double psi)
1206  set_rotation(RegistrationResult self, Rotation3D R)
1207  """
1208  return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1209 
1210  def set_shift(self, *args):
1211  """set_shift(RegistrationResult self, Vector2D shift)"""
1212  return _IMP_em2d.RegistrationResult_set_shift(self, *args)
1213 
1214  def set_name(self, *args):
1215  """set_name(RegistrationResult self, IMP::String name)"""
1216  return _IMP_em2d.RegistrationResult_set_name(self, *args)
1217 
1218  def add_in_plane_transformation(self, *args):
1219  """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1220  return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, *args)
1221 
1222  def show(self, *args):
1223  """
1224  show(RegistrationResult self, _ostream out=std::cout)
1225  show(RegistrationResult self)
1226  """
1227  return _IMP_em2d.RegistrationResult_show(self, *args)
1228 
1229  def write(self, *args):
1230  """
1231  write(RegistrationResult self, _ostream out=std::cout)
1232  write(RegistrationResult self)
1233  """
1234  return _IMP_em2d.RegistrationResult_write(self, *args)
1235 
1236  def write_comment_line(self, *args):
1237  """
1238  write_comment_line(RegistrationResult self, _ostream out=std::cout)
1239  write_comment_line(RegistrationResult self)
1240  """
1241  return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1242 
1243  def read(self, *args):
1244  """read(RegistrationResult self, IMP::String const & s)"""
1245  return _IMP_em2d.RegistrationResult_read(self, *args)
1246 
1247  def set_random_registration(self, *args):
1248  """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1249  return _IMP_em2d.RegistrationResult_set_random_registration(self, *args)
1250 
1251  def get_rotation(self):
1252  """get_rotation(RegistrationResult self) -> Rotation3D"""
1253  return _IMP_em2d.RegistrationResult_get_rotation(self)
1254 
1255  def set_in_image(self, *args):
1256  """set_in_image(RegistrationResult self, ImageHeader header)"""
1257  return _IMP_em2d.RegistrationResult_set_in_image(self, *args)
1258 
1259  def read_from_image(self, *args):
1260  """read_from_image(RegistrationResult self, ImageHeader header)"""
1261  return _IMP_em2d.RegistrationResult_read_from_image(self, *args)
1262 
1263  def get_is_optimized_result(self):
1264  """get_is_optimized_result(RegistrationResult self) -> bool"""
1265  return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1266 
1267  __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1268  __del__ = lambda self : None;
1269  def __str__(self):
1270  """__str__(RegistrationResult self) -> std::string"""
1271  return _IMP_em2d.RegistrationResult___str__(self)
1272 
1273  def __repr__(self):
1274  """__repr__(RegistrationResult self) -> std::string"""
1275  return _IMP_em2d.RegistrationResult___repr__(self)
1276 
1277 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1278 RegistrationResult_swigregister(RegistrationResult)
1279 
1280 
1281 def read_registration_results(*args):
1282  """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1283  return _IMP_em2d.read_registration_results(*args)
1284 
1285 def write_registration_results(*args):
1286  """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1287  return _IMP_em2d.write_registration_results(*args)
1288 
1290  """
1291  get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1292  get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1293  """
1294  return _IMP_em2d.get_random_registration_results(*args)
1295 
1297  """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1298  return _IMP_em2d.get_evenly_distributed_registration_results(*args)
1299 
1300 def get_random_between_zero_and_one():
1301  """get_random_between_zero_and_one() -> double"""
1302  return _IMP_em2d.get_random_between_zero_and_one()
1303 class SpiderImageReaderWriter(ImageReaderWriter):
1304  """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class"""
1305  __swig_setmethods__ = {}
1306  for _s in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1307  __setattr__ = lambda self, name, value: _swig_setattr(self, SpiderImageReaderWriter, name, value)
1308  __swig_getmethods__ = {}
1309  for _s in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1310  __getattr__ = lambda self, name: _swig_getattr(self, SpiderImageReaderWriter, name)
1311  __swig_setmethods__["filename_"] = _IMP_em2d.SpiderImageReaderWriter_filename__set
1312  __swig_getmethods__["filename_"] = _IMP_em2d.SpiderImageReaderWriter_filename__get
1313  if _newclass:filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1314  __swig_setmethods__["skip_type_check_"] = _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set
1315  __swig_getmethods__["skip_type_check_"] = _IMP_em2d.SpiderImageReaderWriter_skip_type_check__get
1316  if _newclass:skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1317  __swig_setmethods__["force_reversed_"] = _IMP_em2d.SpiderImageReaderWriter_force_reversed__set
1318  __swig_getmethods__["force_reversed_"] = _IMP_em2d.SpiderImageReaderWriter_force_reversed__get
1319  if _newclass:force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1320  __swig_setmethods__["skip_extra_checkings_"] = _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set
1321  __swig_getmethods__["skip_extra_checkings_"] = _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get
1322  if _newclass:skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1323  def __init__(self, *args):
1324  """
1325  __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1326  __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1327  """
1328  this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1329  try: self.this.append(this)
1330  except: self.this = this
1331  __swig_destroy__ = _IMP_em2d.delete_SpiderImageReaderWriter
1332  __del__ = lambda self : None;
1333  def __str__(self):
1334  """__str__(SpiderImageReaderWriter self) -> std::string"""
1335  return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1336 
1337  def __repr__(self):
1338  """__repr__(SpiderImageReaderWriter self) -> std::string"""
1339  return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1340 
1341  def get_from(o):
1342  return _object_cast_to_SpiderImageReaderWriter(o)
1343  get_from = staticmethod(get_from)
1344 
1345 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1346 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1347 
1348 class JPGImageReaderWriter(ImageReaderWriter):
1349  """Proxy of C++ IMP::em2d::JPGImageReaderWriter class"""
1350  __swig_setmethods__ = {}
1351  for _s in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1352  __setattr__ = lambda self, name, value: _swig_setattr(self, JPGImageReaderWriter, name, value)
1353  __swig_getmethods__ = {}
1354  for _s in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1355  __getattr__ = lambda self, name: _swig_getattr(self, JPGImageReaderWriter, name)
1356  def __init__(self):
1357  """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1358  this = _IMP_em2d.new_JPGImageReaderWriter()
1359  try: self.this.append(this)
1360  except: self.this = this
1361  __swig_destroy__ = _IMP_em2d.delete_JPGImageReaderWriter
1362  __del__ = lambda self : None;
1363  def __str__(self):
1364  """__str__(JPGImageReaderWriter self) -> std::string"""
1365  return _IMP_em2d.JPGImageReaderWriter___str__(self)
1366 
1367  def __repr__(self):
1368  """__repr__(JPGImageReaderWriter self) -> std::string"""
1369  return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1370 
1371  def get_from(o):
1372  return _object_cast_to_JPGImageReaderWriter(o)
1373  get_from = staticmethod(get_from)
1374 
1375 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1376 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1377 
1378 class TIFFImageReaderWriter(ImageReaderWriter):
1379  """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class"""
1380  __swig_setmethods__ = {}
1381  for _s in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1382  __setattr__ = lambda self, name, value: _swig_setattr(self, TIFFImageReaderWriter, name, value)
1383  __swig_getmethods__ = {}
1384  for _s in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1385  __getattr__ = lambda self, name: _swig_getattr(self, TIFFImageReaderWriter, name)
1386  def __init__(self):
1387  """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1388  this = _IMP_em2d.new_TIFFImageReaderWriter()
1389  try: self.this.append(this)
1390  except: self.this = this
1391  __swig_destroy__ = _IMP_em2d.delete_TIFFImageReaderWriter
1392  __del__ = lambda self : None;
1393  def __str__(self):
1394  """__str__(TIFFImageReaderWriter self) -> std::string"""
1395  return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1396 
1397  def __repr__(self):
1398  """__repr__(TIFFImageReaderWriter self) -> std::string"""
1399  return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1400 
1401  def get_from(o):
1402  return _object_cast_to_TIFFImageReaderWriter(o)
1403  get_from = staticmethod(get_from)
1404 
1405 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1406 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1407 
1408 
1409 def do_matrix_to_image_flip(*args):
1410  """do_matrix_to_image_flip(cv::Mat & m)"""
1411  return _IMP_em2d.do_matrix_to_image_flip(*args)
1412 
1414  """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1415  return _IMP_em2d.get_autocorrelation2d_no_preprocessing(*args)
1416 
1417 def get_autocorrelation2d(*args):
1418  """
1419  get_autocorrelation2d(Image im1, Image im2)
1420  get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1421  """
1422  return _IMP_em2d.get_autocorrelation2d(*args)
1423 
1424 def get_correlation2d(*args):
1425  """
1426  get_correlation2d(Image im1, Image im2, Image corr)
1427  get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1428  """
1429  return _IMP_em2d.get_correlation2d(*args)
1430 
1432  """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1433  return _IMP_em2d.get_correlation2d_no_preprocessing(*args)
1434 
1435 def get_fft_using_optimal_size(*args):
1436  """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1437  return _IMP_em2d.get_fft_using_optimal_size(*args)
1438 
1439 def get_spectrum(*args):
1440  """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1441  return _IMP_em2d.get_spectrum(*args)
1442 
1443 def get_rotation_error(*args):
1444  """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1445  return _IMP_em2d.get_rotation_error(*args)
1446 
1447 def get_shift_error(*args):
1448  """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1449  return _IMP_em2d.get_shift_error(*args)
1450 
1451 def get_average_rotation_error(*args):
1452  """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1453  return _IMP_em2d.get_average_rotation_error(*args)
1454 
1455 def get_average_shift_error(*args):
1456  """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1457  return _IMP_em2d.get_average_shift_error(*args)
1458 
1460  """
1461  get_cross_correlation_coefficient(Image im1, Image im2) -> double
1462  get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1463  """
1464  return _IMP_em2d.get_cross_correlation_coefficient(*args)
1465 
1466 def get_global_score(*args):
1467  """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1468  return _IMP_em2d.get_global_score(*args)
1469 class ScoreFunction(IMP.base.Object):
1470  """Proxy of C++ IMP::em2d::ScoreFunction class"""
1471  __swig_setmethods__ = {}
1472  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1473  __setattr__ = lambda self, name, value: _swig_setattr(self, ScoreFunction, name, value)
1474  __swig_getmethods__ = {}
1475  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1476  __getattr__ = lambda self, name: _swig_getattr(self, ScoreFunction, name)
1477  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
1478  def get_score(self, *args):
1479  """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1480  return _IMP_em2d.ScoreFunction_get_score(self, *args)
1481 
1482  def set_variance_image(self, *args):
1483  """set_variance_image(ScoreFunction self, Image var)"""
1484  return _IMP_em2d.ScoreFunction_set_variance_image(self, *args)
1485 
1486  def get_version_info(self):
1487  """get_version_info(ScoreFunction self) -> VersionInfo"""
1488  return _IMP_em2d.ScoreFunction_get_version_info(self)
1489 
1490  __swig_destroy__ = _IMP_em2d.delete_ScoreFunction
1491  __del__ = lambda self : None;
1492  def __str__(self):
1493  """__str__(ScoreFunction self) -> std::string"""
1494  return _IMP_em2d.ScoreFunction___str__(self)
1495 
1496  def __repr__(self):
1497  """__repr__(ScoreFunction self) -> std::string"""
1498  return _IMP_em2d.ScoreFunction___repr__(self)
1499 
1500  def get_from(o):
1501  return _object_cast_to_ScoreFunction(o)
1502  get_from = staticmethod(get_from)
1503 
1504 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1505 ScoreFunction_swigregister(ScoreFunction)
1506 
1507 class ChiSquaredScore(ScoreFunction):
1508  """Proxy of C++ IMP::em2d::ChiSquaredScore class"""
1509  __swig_setmethods__ = {}
1510  for _s in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1511  __setattr__ = lambda self, name, value: _swig_setattr(self, ChiSquaredScore, name, value)
1512  __swig_getmethods__ = {}
1513  for _s in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1514  __getattr__ = lambda self, name: _swig_getattr(self, ChiSquaredScore, name)
1515  def __init__(self):
1516  """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1517  this = _IMP_em2d.new_ChiSquaredScore()
1518  try: self.this.append(this)
1519  except: self.this = this
1520  def __str__(self):
1521  """__str__(ChiSquaredScore self) -> std::string"""
1522  return _IMP_em2d.ChiSquaredScore___str__(self)
1523 
1524  def __repr__(self):
1525  """__repr__(ChiSquaredScore self) -> std::string"""
1526  return _IMP_em2d.ChiSquaredScore___repr__(self)
1527 
1528  def get_from(o):
1529  return _object_cast_to_ChiSquaredScore(o)
1530  get_from = staticmethod(get_from)
1531 
1532  __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1533  __del__ = lambda self : None;
1534 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1535 ChiSquaredScore_swigregister(ChiSquaredScore)
1536 
1537 class EM2DScore(ScoreFunction):
1538  """Proxy of C++ IMP::em2d::EM2DScore class"""
1539  __swig_setmethods__ = {}
1540  for _s in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1541  __setattr__ = lambda self, name, value: _swig_setattr(self, EM2DScore, name, value)
1542  __swig_getmethods__ = {}
1543  for _s in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1544  __getattr__ = lambda self, name: _swig_getattr(self, EM2DScore, name)
1545  def __init__(self):
1546  """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1547  this = _IMP_em2d.new_EM2DScore()
1548  try: self.this.append(this)
1549  except: self.this = this
1550  def __str__(self):
1551  """__str__(EM2DScore self) -> std::string"""
1552  return _IMP_em2d.EM2DScore___str__(self)
1553 
1554  def __repr__(self):
1555  """__repr__(EM2DScore self) -> std::string"""
1556  return _IMP_em2d.EM2DScore___repr__(self)
1557 
1558  def get_from(o):
1559  return _object_cast_to_EM2DScore(o)
1560  get_from = staticmethod(get_from)
1561 
1562  __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1563  __del__ = lambda self : None;
1564 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1565 EM2DScore_swigregister(EM2DScore)
1566 
1567 class MeanAbsoluteDifference(ScoreFunction):
1568  """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class"""
1569  __swig_setmethods__ = {}
1570  for _s in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1571  __setattr__ = lambda self, name, value: _swig_setattr(self, MeanAbsoluteDifference, name, value)
1572  __swig_getmethods__ = {}
1573  for _s in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1574  __getattr__ = lambda self, name: _swig_getattr(self, MeanAbsoluteDifference, name)
1575  def __init__(self):
1576  """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1577  this = _IMP_em2d.new_MeanAbsoluteDifference()
1578  try: self.this.append(this)
1579  except: self.this = this
1580  def __str__(self):
1581  """__str__(MeanAbsoluteDifference self) -> std::string"""
1582  return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1583 
1584  def __repr__(self):
1585  """__repr__(MeanAbsoluteDifference self) -> std::string"""
1586  return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1587 
1588  def get_from(o):
1589  return _object_cast_to_MeanAbsoluteDifference(o)
1590  get_from = staticmethod(get_from)
1591 
1592  __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1593  __del__ = lambda self : None;
1594 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1595 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1596 
1597 
1598 def read_selection_file(*args):
1599  """read_selection_file(IMP::String fn) -> IMP::Strings"""
1600  return _IMP_em2d.read_selection_file(*args)
1601 
1602 def create_filenames(*args):
1603  """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1604  return _IMP_em2d.create_filenames(*args)
1605 class ProjectionParameters(IMP.kernel.Decorator):
1606  """Proxy of C++ IMP::em2d::ProjectionParameters class"""
1607  __swig_setmethods__ = {}
1608  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1609  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionParameters, name, value)
1610  __swig_getmethods__ = {}
1611  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1612  __getattr__ = lambda self, name: _swig_getattr(self, ProjectionParameters, name)
1613  def __init__(self, *args):
1614  """
1615  __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1616  __init__(IMP::em2d::ProjectionParameters self, Model m, ::IMP::kernel::ParticleIndex id) -> ProjectionParameters
1617  __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1618  """
1619  this = _IMP_em2d.new_ProjectionParameters(*args)
1620  try: self.this.append(this)
1621  except: self.this = this
1622  def decorate_particle(*args):
1623  """decorate_particle(Particle p) -> ProjectionParameters"""
1624  return _IMP_em2d.ProjectionParameters_decorate_particle(*args)
1625 
1626  if _newclass:decorate_particle = staticmethod(decorate_particle)
1627  __swig_getmethods__["decorate_particle"] = lambda x: decorate_particle
1628  def particle_is_instance(*args):
1629  """
1630  particle_is_instance(Particle p) -> bool
1631  particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
1632  """
1633  return _IMP_em2d.ProjectionParameters_particle_is_instance(*args)
1634 
1635  if _newclass:particle_is_instance = staticmethod(particle_is_instance)
1636  __swig_getmethods__["particle_is_instance"] = lambda x: particle_is_instance
1637  def show(self, *args):
1638  """
1639  show(ProjectionParameters self, _ostream out=std::cout)
1640  show(ProjectionParameters self)
1641  """
1642  return _IMP_em2d.ProjectionParameters_show(self, *args)
1643 
1644  def setup_particle(*args):
1645  """
1646  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1647  setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1648  """
1649  return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1650 
1651  if _newclass:setup_particle = staticmethod(setup_particle)
1652  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
1653  __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1654  __del__ = lambda self : None;
1655  def get_keys():
1656  """get_keys() -> IMP::kernel::FloatKeys const &"""
1657  return _IMP_em2d.ProjectionParameters_get_keys()
1658 
1659  if _newclass:get_keys = staticmethod(get_keys)
1660  __swig_getmethods__["get_keys"] = lambda x: get_keys
1661  def set_proper_ranges_for_keys(self, *args):
1662  """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1663  return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, *args)
1664 
1665  def get_is_setup(*args):
1666  """
1667  get_is_setup(_ParticleAdaptor p) -> bool
1668  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1669  """
1670  return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1671 
1672  if _newclass:get_is_setup = staticmethod(get_is_setup)
1673  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
1674  def get_parameters_optimized(self):
1675  """get_parameters_optimized(ProjectionParameters self) -> bool"""
1676  return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
1677 
1678  def get_translation(self):
1679  """get_translation(ProjectionParameters self) -> Vector3D"""
1680  return _IMP_em2d.ProjectionParameters_get_translation(self)
1681 
1682  def set_translation(self, *args):
1683  """set_translation(ProjectionParameters self, Vector3D v)"""
1684  return _IMP_em2d.ProjectionParameters_set_translation(self, *args)
1685 
1686  def get_rotation(self):
1687  """get_rotation(ProjectionParameters self) -> Rotation3D"""
1688  return _IMP_em2d.ProjectionParameters_get_rotation(self)
1689 
1690  def set_rotation(self, *args):
1691  """set_rotation(ProjectionParameters self, Rotation3D R)"""
1692  return _IMP_em2d.ProjectionParameters_set_rotation(self, *args)
1693 
1694  def set_parameters_optimized(self, *args):
1695  """set_parameters_optimized(ProjectionParameters self, bool tf)"""
1696  return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, *args)
1697 
1698  def get_quaternion_1(self):
1699  """get_quaternion_1(ProjectionParameters self) -> double"""
1700  return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
1701 
1702  def set_quaternion_1(self, *args):
1703  """set_quaternion_1(ProjectionParameters self, double t)"""
1704  return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, *args)
1705 
1706  def get_quaternion_2(self):
1707  """get_quaternion_2(ProjectionParameters self) -> double"""
1708  return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
1709 
1710  def set_quaternion_2(self, *args):
1711  """set_quaternion_2(ProjectionParameters self, double t)"""
1712  return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, *args)
1713 
1714  def get_quaternion_3(self):
1715  """get_quaternion_3(ProjectionParameters self) -> double"""
1716  return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
1717 
1718  def set_quaternion_3(self, *args):
1719  """set_quaternion_3(ProjectionParameters self, double t)"""
1720  return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, *args)
1721 
1722  def get_quaternion_4(self):
1723  """get_quaternion_4(ProjectionParameters self) -> double"""
1724  return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
1725 
1726  def set_quaternion_4(self, *args):
1727  """set_quaternion_4(ProjectionParameters self, double t)"""
1728  return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, *args)
1729 
1730  def get_translation_x(self):
1731  """get_translation_x(ProjectionParameters self) -> double"""
1732  return _IMP_em2d.ProjectionParameters_get_translation_x(self)
1733 
1734  def set_translation_x(self, *args):
1735  """set_translation_x(ProjectionParameters self, double t)"""
1736  return _IMP_em2d.ProjectionParameters_set_translation_x(self, *args)
1737 
1738  def get_translation_y(self):
1739  """get_translation_y(ProjectionParameters self) -> double"""
1740  return _IMP_em2d.ProjectionParameters_get_translation_y(self)
1741 
1742  def set_translation_y(self, *args):
1743  """set_translation_y(ProjectionParameters self, double t)"""
1744  return _IMP_em2d.ProjectionParameters_set_translation_y(self, *args)
1745 
1746  def add_attribute(self, *args):
1747  """
1748  add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
1749  add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1750  add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
1751  add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
1752  add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1753  add_attribute(ProjectionParameters self, ObjectKey a0, IMP::Object * a1)
1754  """
1755  return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1756 
1757  def get_value(self, *args):
1758  """
1759  get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1760  get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1761  get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1762  get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1763  get_value(ProjectionParameters self, ObjectKey a0) -> IMP::Object *
1764  """
1765  return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1766 
1767  def set_value(self, *args):
1768  """
1769  set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1770  set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1771  set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1772  set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1773  set_value(ProjectionParameters self, ObjectKey a0, IMP::Object * a1)
1774  """
1775  return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1776 
1777  def remove_attribute(self, *args):
1778  """
1779  remove_attribute(ProjectionParameters self, FloatKey a0)
1780  remove_attribute(ProjectionParameters self, IntKey a0)
1781  remove_attribute(ProjectionParameters self, StringKey a0)
1782  remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1783  remove_attribute(ProjectionParameters self, ObjectKey a0)
1784  """
1785  return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1786 
1787  def has_attribute(self, *args):
1788  """
1789  has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1790  has_attribute(ProjectionParameters self, IntKey a0) -> bool
1791  has_attribute(ProjectionParameters self, StringKey a0) -> bool
1792  has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1793  has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1794  """
1795  return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1796 
1797  def get_derivative(self, *args):
1798  """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1799  return _IMP_em2d.ProjectionParameters_get_derivative(self, *args)
1800 
1801  def get_name(self):
1802  """get_name(ProjectionParameters self) -> std::string"""
1803  return _IMP_em2d.ProjectionParameters_get_name(self)
1804 
1805  def clear_caches(self):
1806  """clear_caches(ProjectionParameters self)"""
1807  return _IMP_em2d.ProjectionParameters_clear_caches(self)
1808 
1809  def set_name(self, *args):
1810  """set_name(ProjectionParameters self, std::string a0)"""
1811  return _IMP_em2d.ProjectionParameters_set_name(self, *args)
1812 
1813  def set_check_level(self, *args):
1814  """set_check_level(ProjectionParameters self, IMP::base::CheckLevel a0)"""
1815  return _IMP_em2d.ProjectionParameters_set_check_level(self, *args)
1816 
1817  def add_to_derivative(self, *args):
1818  """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1819  return _IMP_em2d.ProjectionParameters_add_to_derivative(self, *args)
1820 
1821  def set_is_optimized(self, *args):
1822  """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
1823  return _IMP_em2d.ProjectionParameters_set_is_optimized(self, *args)
1824 
1825  def get_is_optimized(self, *args):
1826  """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
1827  return _IMP_em2d.ProjectionParameters_get_is_optimized(self, *args)
1828 
1829  def get_check_level(self):
1830  """get_check_level(ProjectionParameters self) -> IMP::base::CheckLevel"""
1831  return _IMP_em2d.ProjectionParameters_get_check_level(self)
1832 
1833  def __eq__(self, *args):
1834  """
1835  __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
1836  __eq__(ProjectionParameters self, Particle d) -> bool
1837  """
1838  return _IMP_em2d.ProjectionParameters___eq__(self, *args)
1839 
1840  def __ne__(self, *args):
1841  """
1842  __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
1843  __ne__(ProjectionParameters self, Particle d) -> bool
1844  """
1845  return _IMP_em2d.ProjectionParameters___ne__(self, *args)
1846 
1847  def __le__(self, *args):
1848  """
1849  __le__(ProjectionParameters self, ProjectionParameters o) -> bool
1850  __le__(ProjectionParameters self, Particle d) -> bool
1851  """
1852  return _IMP_em2d.ProjectionParameters___le__(self, *args)
1853 
1854  def __lt__(self, *args):
1855  """
1856  __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
1857  __lt__(ProjectionParameters self, Particle d) -> bool
1858  """
1859  return _IMP_em2d.ProjectionParameters___lt__(self, *args)
1860 
1861  def __ge__(self, *args):
1862  """
1863  __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
1864  __ge__(ProjectionParameters self, Particle d) -> bool
1865  """
1866  return _IMP_em2d.ProjectionParameters___ge__(self, *args)
1867 
1868  def __gt__(self, *args):
1869  """
1870  __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
1871  __gt__(ProjectionParameters self, Particle d) -> bool
1872  """
1873  return _IMP_em2d.ProjectionParameters___gt__(self, *args)
1874 
1875  def __str__(self):
1876  """__str__(ProjectionParameters self) -> std::string"""
1877  return _IMP_em2d.ProjectionParameters___str__(self)
1878 
1879  def __repr__(self):
1880  """__repr__(ProjectionParameters self) -> std::string"""
1881  return _IMP_em2d.ProjectionParameters___repr__(self)
1882 
1883 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
1884 ProjectionParameters_swigregister(ProjectionParameters)
1885 
1886 def ProjectionParameters_decorate_particle(*args):
1887  """ProjectionParameters_decorate_particle(Particle p) -> ProjectionParameters"""
1888  return _IMP_em2d.ProjectionParameters_decorate_particle(*args)
1889 
1890 def ProjectionParameters_particle_is_instance(*args):
1891  """
1892  particle_is_instance(Particle p) -> bool
1893  ProjectionParameters_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
1894  """
1895  return _IMP_em2d.ProjectionParameters_particle_is_instance(*args)
1896 
1897 def ProjectionParameters_setup_particle(*args):
1898  """
1899  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1900  ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1901  """
1902  return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1903 
1904 def ProjectionParameters_get_keys():
1905  """ProjectionParameters_get_keys() -> IMP::kernel::FloatKeys const &"""
1906  return _IMP_em2d.ProjectionParameters_get_keys()
1907 
1908 def ProjectionParameters_get_is_setup(*args):
1909  """
1910  get_is_setup(_ParticleAdaptor p) -> bool
1911  ProjectionParameters_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1912  """
1913  return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1914 
1915 
1916 def __lshift__(*args):
1917  """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
1918  return _IMP_em2d.__lshift__(*args)
1919 class ProjectionParametersScoreState(IMP.kernel.ScoreState):
1920  """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class"""
1921  __swig_setmethods__ = {}
1922  for _s in [IMP.kernel.ScoreState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1923  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionParametersScoreState, name, value)
1924  __swig_getmethods__ = {}
1925  for _s in [IMP.kernel.ScoreState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1926  __getattr__ = lambda self, name: _swig_getattr(self, ProjectionParametersScoreState, name)
1927  def __init__(self, *args):
1928  """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
1929  this = _IMP_em2d.new_ProjectionParametersScoreState(*args)
1930  try: self.this.append(this)
1931  except: self.this = this
1932  def do_before_evaluate(self):
1933  """do_before_evaluate(ProjectionParametersScoreState self)"""
1934  return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
1935 
1936  def do_after_evaluate(self, *args):
1937  """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
1938  return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, *args)
1939 
1940  def do_get_inputs(self):
1941  """do_get_inputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1942  return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
1943 
1944  def do_get_outputs(self):
1945  """do_get_outputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1946  return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
1947 
1948  def get_version_info(self):
1949  """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
1950  return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
1951 
1952  __swig_destroy__ = _IMP_em2d.delete_ProjectionParametersScoreState
1953  __del__ = lambda self : None;
1954  def __str__(self):
1955  """__str__(ProjectionParametersScoreState self) -> std::string"""
1956  return _IMP_em2d.ProjectionParametersScoreState___str__(self)
1957 
1958  def __repr__(self):
1959  """__repr__(ProjectionParametersScoreState self) -> std::string"""
1960  return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
1961 
1962  def get_from(o):
1963  return _object_cast_to_ProjectionParametersScoreState(o)
1964  get_from = staticmethod(get_from)
1965 
1966 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
1967 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
1968 
1969 class ProjectionMask(_object):
1970  """Proxy of C++ IMP::em2d::ProjectionMask class"""
1971  __swig_setmethods__ = {}
1972  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionMask, name, value)
1973  __swig_getmethods__ = {}
1974  __getattr__ = lambda self, name: _swig_getattr(self, ProjectionMask, name)
1975  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
1976  def apply(self, *args):
1977  """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
1978  return _IMP_em2d.ProjectionMask_apply(self, *args)
1979 
1980  def show(self, *args):
1981  """
1982  show(ProjectionMask self, _ostream out=std::cout)
1983  show(ProjectionMask self)
1984  """
1985  return _IMP_em2d.ProjectionMask_show(self, *args)
1986 
1987  __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
1988  __del__ = lambda self : None;
1989  def __str__(self):
1990  """__str__(ProjectionMask self) -> std::string"""
1991  return _IMP_em2d.ProjectionMask___str__(self)
1992 
1993  def __repr__(self):
1994  """__repr__(ProjectionMask self) -> std::string"""
1995  return _IMP_em2d.ProjectionMask___repr__(self)
1996 
1997 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
1998 ProjectionMask_swigregister(ProjectionMask)
1999 
2000 
2001 def do_place(*args):
2002  """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2003  return _IMP_em2d.do_place(*args)
2004 class MasksManager(_object):
2005  """Proxy of C++ IMP::em2d::MasksManager class"""
2006  __swig_setmethods__ = {}
2007  __setattr__ = lambda self, name, value: _swig_setattr(self, MasksManager, name, value)
2008  __swig_getmethods__ = {}
2009  __getattr__ = lambda self, name: _swig_getattr(self, MasksManager, name)
2010  def __init__(self, *args):
2011  """
2012  __init__(IMP::em2d::MasksManager self) -> MasksManager
2013  __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2014  """
2015  this = _IMP_em2d.new_MasksManager(*args)
2016  try: self.this.append(this)
2017  except: self.this = this
2018  def setup_kernel(self, *args):
2019  """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2020  return _IMP_em2d.MasksManager_setup_kernel(self, *args)
2021 
2022  def create_masks(self, *args):
2023  """create_masks(MasksManager self, IMP::kernel::ParticlesTemp const & ps)"""
2024  return _IMP_em2d.MasksManager_create_masks(self, *args)
2025 
2026  def create_mask(self, *args):
2027  """create_mask(MasksManager self, double radius, double mass)"""
2028  return _IMP_em2d.MasksManager_create_mask(self, *args)
2029 
2030  def find_mask(self, *args):
2031  """find_mask(MasksManager self, double radius) -> IMP::em2d::ProjectionMaskPtr"""
2032  return _IMP_em2d.MasksManager_find_mask(self, *args)
2033 
2034  def show(self, *args):
2035  """
2036  show(MasksManager self, _ostream out=std::cout)
2037  show(MasksManager self)
2038  """
2039  return _IMP_em2d.MasksManager_show(self, *args)
2040 
2041  def get_number_of_masks(self):
2042  """get_number_of_masks(MasksManager self) -> unsigned int"""
2043  return _IMP_em2d.MasksManager_get_number_of_masks(self)
2044 
2045  __swig_destroy__ = _IMP_em2d.delete_MasksManager
2046  __del__ = lambda self : None;
2047  def __str__(self):
2048  """__str__(MasksManager self) -> std::string"""
2049  return _IMP_em2d.MasksManager___str__(self)
2050 
2051  def __repr__(self):
2052  """__repr__(MasksManager self) -> std::string"""
2053  return _IMP_em2d.MasksManager___repr__(self)
2054 
2055 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2056 MasksManager_swigregister(MasksManager)
2057 
2058 class ProjectingParameters(_object):
2059  """Proxy of C++ IMP::em2d::ProjectingParameters class"""
2060  __swig_setmethods__ = {}
2061  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectingParameters, name, value)
2062  __swig_getmethods__ = {}
2063  __getattr__ = lambda self, name: _swig_getattr(self, ProjectingParameters, name)
2064  __swig_setmethods__["pixel_size"] = _IMP_em2d.ProjectingParameters_pixel_size_set
2065  __swig_getmethods__["pixel_size"] = _IMP_em2d.ProjectingParameters_pixel_size_get
2066  if _newclass:pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2067  __swig_setmethods__["resolution"] = _IMP_em2d.ProjectingParameters_resolution_set
2068  __swig_getmethods__["resolution"] = _IMP_em2d.ProjectingParameters_resolution_get
2069  if _newclass:resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2070  def __init__(self, *args):
2071  """
2072  __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2073  __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2074  """
2075  this = _IMP_em2d.new_ProjectingParameters(*args)
2076  try: self.this.append(this)
2077  except: self.this = this
2078  def show(self, *args):
2079  """
2080  show(ProjectingParameters self, _ostream out=std::cout)
2081  show(ProjectingParameters self)
2082  """
2083  return _IMP_em2d.ProjectingParameters_show(self, *args)
2084 
2085  def __str__(self):
2086  """__str__(ProjectingParameters self) -> std::string"""
2087  return _IMP_em2d.ProjectingParameters___str__(self)
2088 
2089  def __repr__(self):
2090  """__repr__(ProjectingParameters self) -> std::string"""
2091  return _IMP_em2d.ProjectingParameters___repr__(self)
2092 
2093  __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2094  __del__ = lambda self : None;
2095 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2096 ProjectingParameters_swigregister(ProjectingParameters)
2097 
2098 class ProjectingOptions(ProjectingParameters):
2099  """Proxy of C++ IMP::em2d::ProjectingOptions class"""
2100  __swig_setmethods__ = {}
2101  for _s in [ProjectingParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2102  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectingOptions, name, value)
2103  __swig_getmethods__ = {}
2104  for _s in [ProjectingParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2105  __getattr__ = lambda self, name: _swig_getattr(self, ProjectingOptions, name)
2106  __swig_setmethods__["save_images"] = _IMP_em2d.ProjectingOptions_save_images_set
2107  __swig_getmethods__["save_images"] = _IMP_em2d.ProjectingOptions_save_images_get
2108  if _newclass:save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2109  __swig_setmethods__["normalize"] = _IMP_em2d.ProjectingOptions_normalize_set
2110  __swig_getmethods__["normalize"] = _IMP_em2d.ProjectingOptions_normalize_get
2111  if _newclass:normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2112  __swig_setmethods__["clear_matrix_before_projecting"] = _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set
2113  __swig_getmethods__["clear_matrix_before_projecting"] = _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get
2114  if _newclass:clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2115  def __init__(self, *args):
2116  """
2117  __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2118  __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2119  __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2120  """
2121  this = _IMP_em2d.new_ProjectingOptions(*args)
2122  try: self.this.append(this)
2123  except: self.this = this
2124  def show(self, *args):
2125  """
2126  show(ProjectingOptions self, _ostream out=std::cout)
2127  show(ProjectingOptions self)
2128  """
2129  return _IMP_em2d.ProjectingOptions_show(self, *args)
2130 
2131  def __str__(self):
2132  """__str__(ProjectingOptions self) -> std::string"""
2133  return _IMP_em2d.ProjectingOptions___str__(self)
2134 
2135  def __repr__(self):
2136  """__repr__(ProjectingOptions self) -> std::string"""
2137  return _IMP_em2d.ProjectingOptions___repr__(self)
2138 
2139  __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2140  __del__ = lambda self : None;
2141 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2142 ProjectingOptions_swigregister(ProjectingOptions)
2143 
2144 
2145 def get_projections(*args):
2146  """
2147  get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
2148  int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
2149  get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
2150  int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2151  get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
2152  int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
2153  get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
2154  int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2155  """
2156  return _IMP_em2d.get_projections(*args)
2157 
2158 def get_projection(*args):
2159  """
2160  get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
2161  IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr(),
2162  IMP::String name="")
2163  get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
2164  IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr())
2165  get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2166  """
2167  return _IMP_em2d.get_projection(*args)
2168 
2169 def do_project_particles(*args):
2170  """
2171  do_project_particles(IMP::kernel::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation,
2172  ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2173  """
2174  return _IMP_em2d.do_project_particles(*args)
2175 
2177  """create_evenly_distributed_projections(IMP::kernel::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2178  return _IMP_em2d.create_evenly_distributed_projections(*args)
2179 
2180 def do_project_vectors(*args):
2181  """
2182  do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2183  do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2184  """
2185  return _IMP_em2d.do_project_vectors(*args)
2186 
2187 def get_enclosing_image_size(*args):
2188  """get_enclosing_image_size(IMP::kernel::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2189  return _IMP_em2d.get_enclosing_image_size(*args)
2190 
2191 def get_complete_alignment(*args):
2192  """
2193  get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2194  get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2195  """
2196  return _IMP_em2d.get_complete_alignment(*args)
2197 
2198 def get_rotational_alignment(*args):
2199  """
2200  get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2201  get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2202  """
2203  return _IMP_em2d.get_rotational_alignment(*args)
2204 
2205 def get_translational_alignment(*args):
2206  """
2207  get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2208  get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2209  """
2210  return _IMP_em2d.get_translational_alignment(*args)
2211 
2213  """
2214  get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2215  cv::Mat const & POLAR2, bool apply=False) -> ResultAlign2D
2216  get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2217  cv::Mat const & POLAR2) -> ResultAlign2D
2218  """
2219  return _IMP_em2d.get_complete_alignment_no_preprocessing(*args)
2220 
2222  """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2223  return _IMP_em2d.get_rotational_alignment_no_preprocessing(*args)
2224 
2226  """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2227  return _IMP_em2d.get_translational_alignment_no_preprocessing(*args)
2228 
2230  """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2231  return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(*args)
2232 
2233 def write_vectors_as_pdb(*args):
2234  """
2235  write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2236  write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2237  """
2238  return _IMP_em2d.write_vectors_as_pdb(*args)
2239 class Em2DRestraintParameters(ProjectingParameters):
2240  """Proxy of C++ IMP::em2d::Em2DRestraintParameters class"""
2241  __swig_setmethods__ = {}
2242  for _s in [ProjectingParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2243  __setattr__ = lambda self, name, value: _swig_setattr(self, Em2DRestraintParameters, name, value)
2244  __swig_getmethods__ = {}
2245  for _s in [ProjectingParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2246  __getattr__ = lambda self, name: _swig_getattr(self, Em2DRestraintParameters, name)
2247  __swig_setmethods__["n_projections"] = _IMP_em2d.Em2DRestraintParameters_n_projections_set
2248  __swig_getmethods__["n_projections"] = _IMP_em2d.Em2DRestraintParameters_n_projections_get
2249  if _newclass:n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2250  __swig_setmethods__["coarse_registration_method"] = _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set
2251  __swig_getmethods__["coarse_registration_method"] = _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get
2252  if _newclass:coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2253  __swig_setmethods__["save_match_images"] = _IMP_em2d.Em2DRestraintParameters_save_match_images_set
2254  __swig_getmethods__["save_match_images"] = _IMP_em2d.Em2DRestraintParameters_save_match_images_get
2255  if _newclass:save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2256  __swig_setmethods__["optimization_steps"] = _IMP_em2d.Em2DRestraintParameters_optimization_steps_set
2257  __swig_getmethods__["optimization_steps"] = _IMP_em2d.Em2DRestraintParameters_optimization_steps_get
2258  if _newclass:optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2259  __swig_setmethods__["simplex_initial_length"] = _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set
2260  __swig_getmethods__["simplex_initial_length"] = _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get
2261  if _newclass:simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2262  __swig_setmethods__["simplex_minimum_size"] = _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set
2263  __swig_getmethods__["simplex_minimum_size"] = _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get
2264  if _newclass:simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2265  def __init__(self, *args):
2266  """
2267  __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2268  __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2269  __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2270  """
2271  this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2272  try: self.this.append(this)
2273  except: self.this = this
2274  def show(self, *args):
2275  """
2276  show(Em2DRestraintParameters self, _ostream out=std::cout)
2277  show(Em2DRestraintParameters self)
2278  """
2279  return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2280 
2281  def __str__(self):
2282  """__str__(Em2DRestraintParameters self) -> std::string"""
2283  return _IMP_em2d.Em2DRestraintParameters___str__(self)
2284 
2285  def __repr__(self):
2286  """__repr__(Em2DRestraintParameters self) -> std::string"""
2287  return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2288 
2289  __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2290  __del__ = lambda self : None;
2291 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2292 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2293 cvar = _IMP_em2d.cvar
2294 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2295 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2296 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2297 
2298 class ProjectionFinder(IMP.base.Object):
2299  """Proxy of C++ IMP::em2d::ProjectionFinder class"""
2300  __swig_setmethods__ = {}
2301  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2302  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionFinder, name, value)
2303  __swig_getmethods__ = {}
2304  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2305  __getattr__ = lambda self, name: _swig_getattr(self, ProjectionFinder, name)
2306  def __init__(self):
2307  """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2308  this = _IMP_em2d.new_ProjectionFinder()
2309  try: self.this.append(this)
2310  except: self.this = this
2311  def setup(self, *args):
2312  """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2313  return _IMP_em2d.ProjectionFinder_setup(self, *args)
2314 
2315  def set_subjects(self, *args):
2316  """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2317  return _IMP_em2d.ProjectionFinder_set_subjects(self, *args)
2318 
2319  def set_projections(self, *args):
2320  """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2321  return _IMP_em2d.ProjectionFinder_set_projections(self, *args)
2322 
2323  def set_variance_images(self, *args):
2324  """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2325  return _IMP_em2d.ProjectionFinder_set_variance_images(self, *args)
2326 
2327  def set_model_particles(self, *args):
2328  """set_model_particles(ProjectionFinder self, IMP::kernel::ParticlesTemp const & ps)"""
2329  return _IMP_em2d.ProjectionFinder_set_model_particles(self, *args)
2330 
2331  def set_save_match_images(self, *args):
2332  """set_save_match_images(ProjectionFinder self, bool x)"""
2333  return _IMP_em2d.ProjectionFinder_set_save_match_images(self, *args)
2334 
2335  def get_save_match_images(self):
2336  """get_save_match_images(ProjectionFinder self) -> bool"""
2337  return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2338 
2339  def set_fast_mode(self, *args):
2340  """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2341  return _IMP_em2d.ProjectionFinder_set_fast_mode(self, *args)
2342 
2343  def get_registration_results(self):
2344  """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2345  return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2346 
2347  def get_coarse_registration(self):
2348  """get_coarse_registration(ProjectionFinder self)"""
2349  return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2350 
2351  def get_complete_registration(self):
2352  """get_complete_registration(ProjectionFinder self)"""
2353  return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2354 
2355  def get_global_score(self):
2356  """get_global_score(ProjectionFinder self) -> double"""
2357  return _IMP_em2d.ProjectionFinder_get_global_score(self)
2358 
2359  def show(self, *args):
2360  """show(ProjectionFinder self, _ostream out)"""
2361  return _IMP_em2d.ProjectionFinder_show(self, *args)
2362 
2363  def get_preprocessing_time(self):
2364  """get_preprocessing_time(ProjectionFinder self) -> double"""
2365  return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2366 
2367  def get_coarse_registration_time(self):
2368  """get_coarse_registration_time(ProjectionFinder self) -> double"""
2369  return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2370 
2371  def get_fine_registration_time(self):
2372  """get_fine_registration_time(ProjectionFinder self) -> double"""
2373  return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2374 
2375  def get_number_of_subjects(self):
2376  """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2377  return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2378 
2379  def set_number_of_class_averages_members(self, *args):
2380  """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2381  return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, *args)
2382 
2383  def get_number_of_projections(self):
2384  """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2385  return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2386 
2387  def get_version_info(self):
2388  """get_version_info(ProjectionFinder self) -> VersionInfo"""
2389  return _IMP_em2d.ProjectionFinder_get_version_info(self)
2390 
2391  __swig_destroy__ = _IMP_em2d.delete_ProjectionFinder
2392  __del__ = lambda self : None;
2393  def __str__(self):
2394  """__str__(ProjectionFinder self) -> std::string"""
2395  return _IMP_em2d.ProjectionFinder___str__(self)
2396 
2397  def __repr__(self):
2398  """__repr__(ProjectionFinder self) -> std::string"""
2399  return _IMP_em2d.ProjectionFinder___repr__(self)
2400 
2401  def get_from(o):
2402  return _object_cast_to_ProjectionFinder(o)
2403  get_from = staticmethod(get_from)
2404 
2405 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2406 ProjectionFinder_swigregister(ProjectionFinder)
2407 
2408 class Em2DRestraint(IMP.kernel.Restraint):
2409  """Proxy of C++ IMP::em2d::Em2DRestraint class"""
2410  __swig_setmethods__ = {}
2411  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2412  __setattr__ = lambda self, name, value: _swig_setattr(self, Em2DRestraint, name, value)
2413  __swig_getmethods__ = {}
2414  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2415  __getattr__ = lambda self, name: _swig_getattr(self, Em2DRestraint, name)
2416  def __init__(self):
2417  """__init__(IMP::em2d::Em2DRestraint self) -> Em2DRestraint"""
2418  this = _IMP_em2d.new_Em2DRestraint()
2419  try: self.this.append(this)
2420  except: self.this = this
2421  def setup(self, *args):
2422  """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2423  return _IMP_em2d.Em2DRestraint_setup(self, *args)
2424 
2425  def set_particles(self, *args):
2426  """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2427  return _IMP_em2d.Em2DRestraint_set_particles(self, *args)
2428 
2429  def set_images(self, *args):
2430  """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2431  return _IMP_em2d.Em2DRestraint_set_images(self, *args)
2432 
2433  def set_variance_images(self, *args):
2434  """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2435  return _IMP_em2d.Em2DRestraint_set_variance_images(self, *args)
2436 
2437  def set_fast_mode(self, *args):
2438  """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2439  return _IMP_em2d.Em2DRestraint_set_fast_mode(self, *args)
2440 
2441  def set_coarse_registration_mode(self, *args):
2442  """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2443  return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, *args)
2444 
2445  def get_registration_results(self):
2446  """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2447  return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2448 
2449  def do_get_inputs(self):
2450  """do_get_inputs(Em2DRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2451  return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2452 
2453  def get_version_info(self):
2454  """get_version_info(Em2DRestraint self) -> VersionInfo"""
2455  return _IMP_em2d.Em2DRestraint_get_version_info(self)
2456 
2457  __swig_destroy__ = _IMP_em2d.delete_Em2DRestraint
2458  __del__ = lambda self : None;
2459  def __str__(self):
2460  """__str__(Em2DRestraint self) -> std::string"""
2461  return _IMP_em2d.Em2DRestraint___str__(self)
2462 
2463  def __repr__(self):
2464  """__repr__(Em2DRestraint self) -> std::string"""
2465  return _IMP_em2d.Em2DRestraint___repr__(self)
2466 
2467  def get_from(o):
2468  return _object_cast_to_Em2DRestraint(o)
2469  get_from = staticmethod(get_from)
2470 
2471 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2472 Em2DRestraint_swigregister(Em2DRestraint)
2473 
2474 class ClusterSet(_object):
2475  """Proxy of C++ IMP::em2d::ClusterSet class"""
2476  __swig_setmethods__ = {}
2477  __setattr__ = lambda self, name, value: _swig_setattr(self, ClusterSet, name, value)
2478  __swig_getmethods__ = {}
2479  __getattr__ = lambda self, name: _swig_getattr(self, ClusterSet, name)
2480  def __init__(self, *args):
2481  """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2482  this = _IMP_em2d.new_ClusterSet(*args)
2483  try: self.this.append(this)
2484  except: self.this = this
2485  def do_join_clusters(self, *args):
2486  """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2487  return _IMP_em2d.ClusterSet_do_join_clusters(self, *args)
2488 
2489  def get_cluster_elements(self, *args):
2490  """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2491  return _IMP_em2d.ClusterSet_get_cluster_elements(self, *args)
2492 
2493  def get_clusters_below_cutoff(self, *args):
2494  """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2495  return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, *args)
2496 
2497  def get_cluster_formed_at_step(self, *args):
2498  """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2499  return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, *args)
2500 
2501  def get_distance_at_step(self, *args):
2502  """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2503  return _IMP_em2d.ClusterSet_get_distance_at_step(self, *args)
2504 
2505  def get_id_for_cluster_at_step(self, *args):
2506  """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2507  return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, *args)
2508 
2509  def get_linkage_matrix(self):
2510  """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2511  return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2512 
2513  def get_linkage_matrix_in_matlab_format(self):
2514  """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2515  return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2516 
2517  def get_number_of_steps(self):
2518  """get_number_of_steps(ClusterSet self) -> unsigned int"""
2519  return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2520 
2521  def show(self, *args):
2522  """show(ClusterSet self, _ostream out)"""
2523  return _IMP_em2d.ClusterSet_show(self, *args)
2524 
2525  def __str__(self):
2526  """__str__(ClusterSet self) -> std::string"""
2527  return _IMP_em2d.ClusterSet___str__(self)
2528 
2529  def __repr__(self):
2530  """__repr__(ClusterSet self) -> std::string"""
2531  return _IMP_em2d.ClusterSet___repr__(self)
2532 
2533  __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2534  __del__ = lambda self : None;
2535 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2536 ClusterSet_swigregister(ClusterSet)
2537 
2538 class SingleLinkage(_object):
2539  """Proxy of C++ IMP::em2d::SingleLinkage class"""
2540  __swig_setmethods__ = {}
2541  __setattr__ = lambda self, name, value: _swig_setattr(self, SingleLinkage, name, value)
2542  __swig_getmethods__ = {}
2543  __getattr__ = lambda self, name: _swig_getattr(self, SingleLinkage, name)
2544  def __init__(self):
2545  """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2546  this = _IMP_em2d.new_SingleLinkage()
2547  try: self.this.append(this)
2548  except: self.this = this
2549  def __call__(self, *args):
2550  """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2551  return _IMP_em2d.SingleLinkage___call__(self, *args)
2552 
2553  def show(self, *args):
2554  """show(SingleLinkage self, _ostream out)"""
2555  return _IMP_em2d.SingleLinkage_show(self, *args)
2556 
2557  def __str__(self):
2558  """__str__(SingleLinkage self) -> std::string"""
2559  return _IMP_em2d.SingleLinkage___str__(self)
2560 
2561  def __repr__(self):
2562  """__repr__(SingleLinkage self) -> std::string"""
2563  return _IMP_em2d.SingleLinkage___repr__(self)
2564 
2565  __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2566  __del__ = lambda self : None;
2567 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2568 SingleLinkage_swigregister(SingleLinkage)
2569 
2570 class CompleteLinkage(_object):
2571  """Proxy of C++ IMP::em2d::CompleteLinkage class"""
2572  __swig_setmethods__ = {}
2573  __setattr__ = lambda self, name, value: _swig_setattr(self, CompleteLinkage, name, value)
2574  __swig_getmethods__ = {}
2575  __getattr__ = lambda self, name: _swig_getattr(self, CompleteLinkage, name)
2576  def __init__(self):
2577  """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2578  this = _IMP_em2d.new_CompleteLinkage()
2579  try: self.this.append(this)
2580  except: self.this = this
2581  def __call__(self, *args):
2582  """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2583  return _IMP_em2d.CompleteLinkage___call__(self, *args)
2584 
2585  def show(self, *args):
2586  """show(CompleteLinkage self, _ostream out)"""
2587  return _IMP_em2d.CompleteLinkage_show(self, *args)
2588 
2589  def __str__(self):
2590  """__str__(CompleteLinkage self) -> std::string"""
2591  return _IMP_em2d.CompleteLinkage___str__(self)
2592 
2593  def __repr__(self):
2594  """__repr__(CompleteLinkage self) -> std::string"""
2595  return _IMP_em2d.CompleteLinkage___repr__(self)
2596 
2597  __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2598  __del__ = lambda self : None;
2599 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2600 CompleteLinkage_swigregister(CompleteLinkage)
2601 
2602 class AverageDistanceLinkage(_object):
2603  """Proxy of C++ IMP::em2d::AverageDistanceLinkage class"""
2604  __swig_setmethods__ = {}
2605  __setattr__ = lambda self, name, value: _swig_setattr(self, AverageDistanceLinkage, name, value)
2606  __swig_getmethods__ = {}
2607  __getattr__ = lambda self, name: _swig_getattr(self, AverageDistanceLinkage, name)
2608  def __init__(self):
2609  """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2610  this = _IMP_em2d.new_AverageDistanceLinkage()
2611  try: self.this.append(this)
2612  except: self.this = this
2613  def __call__(self, *args):
2614  """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2615  return _IMP_em2d.AverageDistanceLinkage___call__(self, *args)
2616 
2617  def show(self, *args):
2618  """show(AverageDistanceLinkage self, _ostream out)"""
2619  return _IMP_em2d.AverageDistanceLinkage_show(self, *args)
2620 
2621  def __str__(self):
2622  """__str__(AverageDistanceLinkage self) -> std::string"""
2623  return _IMP_em2d.AverageDistanceLinkage___str__(self)
2624 
2625  def __repr__(self):
2626  """__repr__(AverageDistanceLinkage self) -> std::string"""
2627  return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2628 
2629  __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2630  __del__ = lambda self : None;
2631 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2632 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2633 
2634 class CollisionCrossSection(IMP.base.Object):
2635  """Proxy of C++ IMP::em2d::CollisionCrossSection class"""
2636  __swig_setmethods__ = {}
2637  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2638  __setattr__ = lambda self, name, value: _swig_setattr(self, CollisionCrossSection, name, value)
2639  __swig_getmethods__ = {}
2640  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2641  __getattr__ = lambda self, name: _swig_getattr(self, CollisionCrossSection, name)
2642  def __init__(self, *args):
2643  """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2644  this = _IMP_em2d.new_CollisionCrossSection(*args)
2645  try: self.this.append(this)
2646  except: self.this = this
2647  def set_model_particles(self, *args):
2648  """set_model_particles(CollisionCrossSection self, IMP::kernel::ParticlesTemp const & ps)"""
2649  return _IMP_em2d.CollisionCrossSection_set_model_particles(self, *args)
2650 
2651  def get_ccs(self):
2652  """get_ccs(CollisionCrossSection self) -> double"""
2653  return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2654 
2655  def show(self, *args):
2656  """show(CollisionCrossSection self, _ostream out)"""
2657  return _IMP_em2d.CollisionCrossSection_show(self, *args)
2658 
2659  def get_version_info(self):
2660  """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2661  return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2662 
2663  __swig_destroy__ = _IMP_em2d.delete_CollisionCrossSection
2664  __del__ = lambda self : None;
2665  def __str__(self):
2666  """__str__(CollisionCrossSection self) -> std::string"""
2667  return _IMP_em2d.CollisionCrossSection___str__(self)
2668 
2669  def __repr__(self):
2670  """__repr__(CollisionCrossSection self) -> std::string"""
2671  return _IMP_em2d.CollisionCrossSection___repr__(self)
2672 
2673  def get_from(o):
2674  return _object_cast_to_CollisionCrossSection(o)
2675  get_from = staticmethod(get_from)
2676 
2677 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2678 CollisionCrossSection_swigregister(CollisionCrossSection)
2679 
2680 class GridStates(IMP.domino.ParticleStates):
2681  """Proxy of C++ IMP::em2d::GridStates class"""
2682  __swig_setmethods__ = {}
2683  for _s in [IMP.domino.ParticleStates]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2684  __setattr__ = lambda self, name, value: _swig_setattr(self, GridStates, name, value)
2685  __swig_getmethods__ = {}
2686  for _s in [IMP.domino.ParticleStates]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2687  __getattr__ = lambda self, name: _swig_getattr(self, GridStates, name)
2688  def __init__(self, *args):
2689  """
2690  __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2691  IMP::String const & name="GridStates") -> GridStates
2692  __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2693  """
2694  this = _IMP_em2d.new_GridStates(*args)
2695  try: self.this.append(this)
2696  except: self.this = this
2697  def get_position(self, *args):
2698  """get_position(GridStates self, unsigned int i) -> Vector3D"""
2699  return _IMP_em2d.GridStates_get_position(self, *args)
2700 
2701  def get_orientation(self, *args):
2702  """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2703  return _IMP_em2d.GridStates_get_orientation(self, *args)
2704 
2705  def get_version_info(self):
2706  """get_version_info(GridStates self) -> VersionInfo"""
2707  return _IMP_em2d.GridStates_get_version_info(self)
2708 
2709  def do_show(self, *args):
2710  """do_show(GridStates self, _ostream out)"""
2711  return _IMP_em2d.GridStates_do_show(self, *args)
2712 
2713  __swig_destroy__ = _IMP_em2d.delete_GridStates
2714  __del__ = lambda self : None;
2715  def __str__(self):
2716  """__str__(GridStates self) -> std::string"""
2717  return _IMP_em2d.GridStates___str__(self)
2718 
2719  def __repr__(self):
2720  """__repr__(GridStates self) -> std::string"""
2721  return _IMP_em2d.GridStates___repr__(self)
2722 
2723  def get_from(o):
2724  return _object_cast_to_GridStates(o)
2725  get_from = staticmethod(get_from)
2726 
2727 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2728 GridStates_swigregister(GridStates)
2729 
2730 class ProjectionStates(GridStates):
2731  """Proxy of C++ IMP::em2d::ProjectionStates class"""
2732  __swig_setmethods__ = {}
2733  for _s in [GridStates]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2734  __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionStates, name, value)
2735  __swig_getmethods__ = {}
2736  for _s in [GridStates]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2737  __getattr__ = lambda self, name: _swig_getattr(self, ProjectionStates, name)
2738  def __init__(self, *args):
2739  """
2740  __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2741  IMP::em2d::Images const & projections, IMP::String const & name="ProjectionStates") -> ProjectionStates
2742  __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2743  IMP::em2d::Images const & projections) -> ProjectionStates
2744  """
2745  this = _IMP_em2d.new_ProjectionStates(*args)
2746  try: self.this.append(this)
2747  except: self.this = this
2748  def get_projection(self, *args):
2749  """get_projection(ProjectionStates self, unsigned int i) -> Image"""
2750  return _IMP_em2d.ProjectionStates_get_projection(self, *args)
2751 
2752  def do_show(self, *args):
2753  """do_show(ProjectionStates self, _ostream out)"""
2754  return _IMP_em2d.ProjectionStates_do_show(self, *args)
2755 
2756  __swig_destroy__ = _IMP_em2d.delete_ProjectionStates
2757  __del__ = lambda self : None;
2758  def __str__(self):
2759  """__str__(ProjectionStates self) -> std::string"""
2760  return _IMP_em2d.ProjectionStates___str__(self)
2761 
2762  def __repr__(self):
2763  """__repr__(ProjectionStates self) -> std::string"""
2764  return _IMP_em2d.ProjectionStates___repr__(self)
2765 
2766  def get_from(o):
2767  return _object_cast_to_ProjectionStates(o)
2768  get_from = staticmethod(get_from)
2769 
2770 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
2771 ProjectionStates_swigregister(ProjectionStates)
2772 
2773 class DistanceFilter(IMP.domino.SubsetFilter):
2774  """Proxy of C++ IMP::em2d::DistanceFilter class"""
2775  __swig_setmethods__ = {}
2776  for _s in [IMP.domino.SubsetFilter]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2777  __setattr__ = lambda self, name, value: _swig_setattr(self, DistanceFilter, name, value)
2778  __swig_getmethods__ = {}
2779  for _s in [IMP.domino.SubsetFilter]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2780  __getattr__ = lambda self, name: _swig_getattr(self, DistanceFilter, name)
2781  def __init__(self, *args):
2782  """
2783  __init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table,
2784  double max_distance) -> DistanceFilter
2785  """
2786  this = _IMP_em2d.new_DistanceFilter(*args)
2787  try: self.this.append(this)
2788  except: self.this = this
2789  def show(self, *args):
2790  """
2791  show(DistanceFilter self, _ostream out=std::cout)
2792  show(DistanceFilter self)
2793  """
2794  return _IMP_em2d.DistanceFilter_show(self, *args)
2795 
2796  def get_version_info(self):
2797  """get_version_info(DistanceFilter self) -> VersionInfo"""
2798  return _IMP_em2d.DistanceFilter_get_version_info(self)
2799 
2800  def do_show(self, *args):
2801  """do_show(DistanceFilter self, _ostream out)"""
2802  return _IMP_em2d.DistanceFilter_do_show(self, *args)
2803 
2804  __swig_destroy__ = _IMP_em2d.delete_DistanceFilter
2805  __del__ = lambda self : None;
2806  def __str__(self):
2807  """__str__(DistanceFilter self) -> std::string"""
2808  return _IMP_em2d.DistanceFilter___str__(self)
2809 
2810  def __repr__(self):
2811  """__repr__(DistanceFilter self) -> std::string"""
2812  return _IMP_em2d.DistanceFilter___repr__(self)
2813 
2814  def get_from(o):
2815  return _object_cast_to_DistanceFilter(o)
2816  get_from = staticmethod(get_from)
2817 
2818 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
2819 DistanceFilter_swigregister(DistanceFilter)
2820 
2821 class DistanceFilterTable(IMP.domino.SubsetFilterTable):
2822  """Proxy of C++ IMP::em2d::DistanceFilterTable class"""
2823  __swig_setmethods__ = {}
2824  for _s in [IMP.domino.SubsetFilterTable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2825  __setattr__ = lambda self, name, value: _swig_setattr(self, DistanceFilterTable, name, value)
2826  __swig_getmethods__ = {}
2827  for _s in [IMP.domino.SubsetFilterTable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2828  __getattr__ = lambda self, name: _swig_getattr(self, DistanceFilterTable, name)
2829  def __init__(self, *args):
2830  """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
2831  this = _IMP_em2d.new_DistanceFilterTable(*args)
2832  try: self.this.append(this)
2833  except: self.this = this
2834  def show(self, *args):
2835  """
2836  show(DistanceFilterTable self, _ostream out=std::cout)
2837  show(DistanceFilterTable self)
2838  """
2839  return _IMP_em2d.DistanceFilterTable_show(self, *args)
2840 
2841  def get_version_info(self):
2842  """get_version_info(DistanceFilterTable self) -> VersionInfo"""
2843  return _IMP_em2d.DistanceFilterTable_get_version_info(self)
2844 
2845  def do_show(self, *args):
2846  """do_show(DistanceFilterTable self, _ostream out)"""
2847  return _IMP_em2d.DistanceFilterTable_do_show(self, *args)
2848 
2849  __swig_destroy__ = _IMP_em2d.delete_DistanceFilterTable
2850  __del__ = lambda self : None;
2851  def __str__(self):
2852  """__str__(DistanceFilterTable self) -> std::string"""
2853  return _IMP_em2d.DistanceFilterTable___str__(self)
2854 
2855  def __repr__(self):
2856  """__repr__(DistanceFilterTable self) -> std::string"""
2857  return _IMP_em2d.DistanceFilterTable___repr__(self)
2858 
2859  def get_from(o):
2860  return _object_cast_to_DistanceFilterTable(o)
2861  get_from = staticmethod(get_from)
2862 
2863 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
2864 DistanceFilterTable_swigregister(DistanceFilterTable)
2865 
2866 class IntsOrder(_object):
2867  """Proxy of C++ IMP::em2d::IntsOrder class"""
2868  __swig_setmethods__ = {}
2869  __setattr__ = lambda self, name, value: _swig_setattr(self, IntsOrder, name, value)
2870  __swig_getmethods__ = {}
2871  __getattr__ = lambda self, name: _swig_getattr(self, IntsOrder, name)
2872  __repr__ = _swig_repr
2873  def __call__(self, *args):
2874  """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
2875  return _IMP_em2d.IntsOrder___call__(self, *args)
2876 
2877  def __init__(self):
2878  """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
2879  this = _IMP_em2d.new_IntsOrder()
2880  try: self.this.append(this)
2881  except: self.this = this
2882  __swig_destroy__ = _IMP_em2d.delete_IntsOrder
2883  __del__ = lambda self : None;
2884 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
2885 IntsOrder_swigregister(IntsOrder)
2886 
2887 class RigidBodiesImageFitRestraint(IMP.kernel.Restraint):
2888  """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class"""
2889  __swig_setmethods__ = {}
2890  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2891  __setattr__ = lambda self, name, value: _swig_setattr(self, RigidBodiesImageFitRestraint, name, value)
2892  __swig_getmethods__ = {}
2893  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2894  __getattr__ = lambda self, name: _swig_getattr(self, RigidBodiesImageFitRestraint, name)
2895  def get_version_info(self):
2896  """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
2897  return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
2898 
2899  __swig_destroy__ = _IMP_em2d.delete_RigidBodiesImageFitRestraint
2900  __del__ = lambda self : None;
2901  def __init__(self, *args):
2902  """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
2903  this = _IMP_em2d.new_RigidBodiesImageFitRestraint(*args)
2904  try: self.this.append(this)
2905  except: self.this = this
2906  def set_projecting_parameters(self, *args):
2907  """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
2908  return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, *args)
2909 
2910  def set_orientations(self, *args):
2911  """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
2912  return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, *args)
2913 
2914  def get_number_of_masks(self, *args):
2915  """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
2916  return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, *args)
2917 
2918  def __str__(self):
2919  """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
2920  return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
2921 
2922  def __repr__(self):
2923  """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
2924  return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
2925 
2926  def get_from(o):
2927  return _object_cast_to_RigidBodiesImageFitRestraint(o)
2928  get_from = staticmethod(get_from)
2929 
2930 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
2931 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
2932 
2933 
2934 def get_unique_index(*args):
2935  """get_unique_index(Rotation3D rot) -> IMP::Ints"""
2936  return _IMP_em2d.get_unique_index(*args)
2937 class RelativePositionMover(IMP.core.RigidBodyMover):
2938  """Proxy of C++ IMP::em2d::RelativePositionMover class"""
2939  __swig_setmethods__ = {}
2940  for _s in [IMP.core.RigidBodyMover]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2941  __setattr__ = lambda self, name, value: _swig_setattr(self, RelativePositionMover, name, value)
2942  __swig_getmethods__ = {}
2943  for _s in [IMP.core.RigidBodyMover]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2944  __getattr__ = lambda self, name: _swig_getattr(self, RelativePositionMover, name)
2945  def __init__(self, *args):
2946  """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
2947  this = _IMP_em2d.new_RelativePositionMover(*args)
2948  try: self.this.append(this)
2949  except: self.this = this
2950  def add_internal_transformations(self, *args):
2951  """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
2952  return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, *args)
2953 
2954  def set_random_move_probability(self, *args):
2955  """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
2956  return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, *args)
2957 
2958  __swig_destroy__ = _IMP_em2d.delete_RelativePositionMover
2959  __del__ = lambda self : None;
2960  def __str__(self):
2961  """__str__(RelativePositionMover self) -> std::string"""
2962  return _IMP_em2d.RelativePositionMover___str__(self)
2963 
2964  def __repr__(self):
2965  """__repr__(RelativePositionMover self) -> std::string"""
2966  return _IMP_em2d.RelativePositionMover___repr__(self)
2967 
2968  def get_from(o):
2969  return _object_cast_to_RelativePositionMover(o)
2970  get_from = staticmethod(get_from)
2971 
2972 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
2973 RelativePositionMover_swigregister(RelativePositionMover)
2974 
2975 class DummyRestraint(IMP.kernel.Restraint):
2976  """Proxy of C++ IMP::em2d::DummyRestraint class"""
2977  __swig_setmethods__ = {}
2978  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2979  __setattr__ = lambda self, name, value: _swig_setattr(self, DummyRestraint, name, value)
2980  __swig_getmethods__ = {}
2981  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2982  __getattr__ = lambda self, name: _swig_getattr(self, DummyRestraint, name)
2983  def __init__(self, *args):
2984  """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
2985  this = _IMP_em2d.new_DummyRestraint(*args)
2986  try: self.this.append(this)
2987  except: self.this = this
2988  def show(self, *args):
2989  """
2990  show(DummyRestraint self, _ostream out=std::cout)
2991  show(DummyRestraint self)
2992  """
2993  return _IMP_em2d.DummyRestraint_show(self, *args)
2994 
2995  def do_get_inputs(self):
2996  """do_get_inputs(DummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2997  return _IMP_em2d.DummyRestraint_do_get_inputs(self)
2998 
2999  def get_version_info(self):
3000  """get_version_info(DummyRestraint self) -> VersionInfo"""
3001  return _IMP_em2d.DummyRestraint_get_version_info(self)
3002 
3003  __swig_destroy__ = _IMP_em2d.delete_DummyRestraint
3004  __del__ = lambda self : None;
3005  def __str__(self):
3006  """__str__(DummyRestraint self) -> std::string"""
3007  return _IMP_em2d.DummyRestraint___str__(self)
3008 
3009  def __repr__(self):
3010  """__repr__(DummyRestraint self) -> std::string"""
3011  return _IMP_em2d.DummyRestraint___repr__(self)
3012 
3013  def get_from(o):
3014  return _object_cast_to_DummyRestraint(o)
3015  get_from = staticmethod(get_from)
3016 
3017 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3018 DummyRestraint_swigregister(DummyRestraint)
3019 
3020 class ParticlesDummyRestraint(IMP.kernel.Restraint):
3021  """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class"""
3022  __swig_setmethods__ = {}
3023  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3024  __setattr__ = lambda self, name, value: _swig_setattr(self, ParticlesDummyRestraint, name, value)
3025  __swig_getmethods__ = {}
3026  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3027  __getattr__ = lambda self, name: _swig_getattr(self, ParticlesDummyRestraint, name)
3028  def __init__(self, *args):
3029  """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3030  this = _IMP_em2d.new_ParticlesDummyRestraint(*args)
3031  try: self.this.append(this)
3032  except: self.this = this
3033  def show(self, *args):
3034  """
3035  show(ParticlesDummyRestraint self, _ostream out=std::cout)
3036  show(ParticlesDummyRestraint self)
3037  """
3038  return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3039 
3040  def do_get_inputs(self):
3041  """do_get_inputs(ParticlesDummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
3042  return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3043 
3044  def get_version_info(self):
3045  """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3046  return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3047 
3048  __swig_destroy__ = _IMP_em2d.delete_ParticlesDummyRestraint
3049  __del__ = lambda self : None;
3050  def __str__(self):
3051  """__str__(ParticlesDummyRestraint self) -> std::string"""
3052  return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3053 
3054  def __repr__(self):
3055  """__repr__(ParticlesDummyRestraint self) -> std::string"""
3056  return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3057 
3058  def get_from(o):
3059  return _object_cast_to_ParticlesDummyRestraint(o)
3060  get_from = staticmethod(get_from)
3061 
3062 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3063 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3064 
3065 class ResultAlign2D(_object):
3066  """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class"""
3067  __swig_setmethods__ = {}
3068  __setattr__ = lambda self, name, value: _swig_setattr(self, ResultAlign2D, name, value)
3069  __swig_getmethods__ = {}
3070  __getattr__ = lambda self, name: _swig_getattr(self, ResultAlign2D, name)
3071  __repr__ = _swig_repr
3072  def __init__(self, *args):
3073  """
3074  __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3075  __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3076  __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3077  """
3078  this = _IMP_em2d.new_ResultAlign2D(*args)
3079  try: self.this.append(this)
3080  except: self.this = this
3081  __swig_setmethods__["first"] = _IMP_em2d.ResultAlign2D_first_set
3082  __swig_getmethods__["first"] = _IMP_em2d.ResultAlign2D_first_get
3083  if _newclass:first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3084  __swig_setmethods__["second"] = _IMP_em2d.ResultAlign2D_second_set
3085  __swig_getmethods__["second"] = _IMP_em2d.ResultAlign2D_second_get
3086  if _newclass:second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3087  def __len__(self): return 2
3088  def __repr__(self): return str((self.first, self.second))
3089  def __getitem__(self, index):
3090  if not (index % 2):
3091  return self.first
3092  else:
3093  return self.second
3094  def __setitem__(self, index, val):
3095  if not (index % 2):
3096  self.first = val
3097  else:
3098  self.second = val
3099  __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3100  __del__ = lambda self : None;
3101 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3102 ResultAlign2D_swigregister(ResultAlign2D)
3103 
3104 
3105 def _do_hierarchical_clustering_single_linkage(*args):
3106  """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3107  return _IMP_em2d._do_hierarchical_clustering_single_linkage(*args)
3108 
3109 def _do_hierarchical_clustering_complete_linkage(*args):
3110  """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3111  return _IMP_em2d._do_hierarchical_clustering_complete_linkage(*args)
3112 
3113 def _do_hierarchical_clustering_average_distance_linkage(*args):
3114  """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3115  return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(*args)
3116 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3117 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3118 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3119 
3120 
3121 def get_module_version():
3122  """get_module_version() -> std::string const"""
3123  return _IMP_em2d.get_module_version()
3124 
3125 def get_example_path(*args):
3126  """get_example_path(std::string fname) -> std::string"""
3127  return _IMP_em2d.get_example_path(*args)
3128 
3129 def get_data_path(*args):
3130  """get_data_path(std::string fname) -> std::string"""
3131  return _IMP_em2d.get_data_path(*args)
3132 import _version_check
3133 _version_check.check_version(get_module_version())
3134 
3135 # This file is compatible with both classic and new-style classes.
3136 
3137 
double get_shift_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Distance between the two in-plane translations.
void get_autocorrelation2d_no_preprocessing(const cv::Mat &M, cv::Mat &corr)
Autocorrelation without preprocessing.
void do_morphologic_contrast_enhancement(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel, unsigned int iterations)
void do_project_particles(const kernel::ParticlesTemp &ps, cv::Mat &m2, const algebra::Rotation3D &R, const algebra::Vector3D &translation, const ProjectingOptions &options, MasksManagerPtr masks)
Projects a set of particles. This is the core function that others call.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
setup
Definition: setup.py:1
void apply_threshold(cv::Mat &m, cv::Mat &result, double threshold=0.0)
std::pair< algebra::Transformation2D, double > ResultAlign2D
Definition: align2D.h:22
IMPEM2D_BEGIN_NAMESPACE Strings read_selection_file(String fn)
Reads a selection file.
ResultAlign2D get_complete_alignment_with_centers_no_preprocessing(const algebra::Vector2D &center1, const algebra::Vector2D &center2, const cv::Mat &AUTOC_POLAR1, const cv::Mat &AUTOC_POLAR2)
Strings create_filenames(unsigned long number, String basic_name, String extension)
See IMP.container for more information.
ResultAlign2D get_translational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
Aligns two matrices translationally.
void get_correlation2d(const cv::Mat &A, const cv::Mat &B, cv::Mat &corr)
Correlation matrix between two 2D matrices using FFT.
unsigned int get_enclosing_image_size(const kernel::ParticlesTemp &ps, double pixel_size, unsigned int slack)
Get an automatic size for an image that contains the particles.
cvIntMat create_circular_mask(int rows, int cols, int radius)
ResultAlign2D get_complete_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
em2d::ResultAlign2D get_rotational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
RegistrationResults get_evenly_distributed_registration_results(unsigned int n_projections)
void get_projection(em2d::Image *img, const kernel::ParticlesTemp &ps, const RegistrationResult &reg, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
void apply_variance_filter(Image *input, Image *filtered, int kernelsize)
Definition: Image.h:296
void apply_diffusion_filter(Image *input, Image *filtered, double beta, double pixelsize, int time_steps)
Definition: Image.h:309
int do_labeling(const cvIntMat &m, cvIntMat &mat_to_label)
Labeling function for a matrix.
See IMP.cgal for more information.
Definition: cgal_config.h:107
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
MatchTemplateResults get_best_template_matches(const cv::Mat &m, const cv::Mat &templ, unsigned int n)
Modify the transformation of a rigid body.
See IMP.base for more information.
Definition: base/Array.h:20
void get_autocorrelation2d(const cv::Mat &m, cv::Mat &corr)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
void apply_mean_outside_mask(Image *img, double radius)
See IMP.gsl for more information.
double get_rotation_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
ScoreStates maintian invariants in the Model.
See IMP.score_functor for more information.
Definition: AddScores.h:14
ResultAlign2D get_rotational_alignment_no_preprocessing(const cv::Mat &POLAR1, const cv::Mat &POLAR2)
void get_fft_using_optimal_size(const cv::Mat &m, cv::Mat &M)
Floats get_histogram(Image *img, int bins)
Definition: Image.h:284
void write_matrix(cv::Mat &m, std::string name)
Quick and dirty way of writing a OpenCV matrix to a Spider image.
void do_subtract_images(Image *first, Image *second, Image *result)
See IMP.statistics for more information.
RegistrationResults get_random_registration_results(unsigned int n, double maximum_shift=5.0)
Provides a set of random registration results (or parameters)
algebra::Vector2Ds do_project_vectors(const algebra::Vector3Ds &ps, const algebra::Rotation3D &R, const algebra::Vector3D &translation)
Project the points contained in Vector3Ds to gen vectors in 2D.
void write_vectors_as_pdb(const algebra::Vector2Ds vs, const String filename)
void apply_circular_mask(const cv::Mat &mat, cv::Mat &result, int radius, double value=0.0)
See IMP.kernel for more information.
Images read_images(const Strings &names, const ImageReaderWriter *rw)
A restraint is a term in an IMP ScoringFunction.
void write_registration_results(String filename, const RegistrationResults &results)
Writes a set of registration results.
See IMP.em for more information.
Definition: CoarseCC.h:23
void crop(Image *img, const IntPair &center, int size)
void get_morphologic_gradient(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel)
void apply_mask(const cv::Mat &m, cv::Mat &result, const cvIntMat &mask, double val)
Applies a binary mask to an image.
double get_cross_correlation_coefficient(Image *im1, Image *im2)
Cross correlation between two images.
void save_images(Images images, const Strings &names, const ImageReaderWriter *rw)
Common base class for heavy weight IMP objects.
Images create_evenly_distributed_projections(const kernel::ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
void get_domes(cv::Mat &m, cv::Mat &result, double h)
Gets the domes of m with height h.
void do_normalize(Image *im, bool force=false)
DensityMap * get_transformed(const DensityMap *input, const algebra::Transformation3D &tr, double threshold)
void do_matrix_to_image_flip(cv::Mat &m)
ResultAlign2D get_translational_alignment_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2)
void get_correlation2d_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2, cv::Mat &corr)
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
void do_dilate_and_shrink_warp(cv::Mat &m, const cv::Mat &greyscale, cv::Mat &kernel)
(U. Adiga, 2005)
em2d::Images get_projections(const kernel::ParticlesTemp &ps, const algebra::SphericalVector3Ds &vs, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
void do_resample_polar(Image *im1, Image *im2, const PolarResamplingParameters &polar_params)
See IMP.core for more information.
See IMP.algebra for more information.
em2d::ResultAlign2D get_complete_alignment_no_preprocessing(const cv::Mat &input, const cv::Mat &INPUT, const cv::Mat &POLAR1, cv::Mat &m_to_align, const cv::Mat &POLAR2, bool apply=false)
double get_overlap_percentage(cv::Mat &m1, cv::Mat &m2, const IntPair &center)
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
RegistrationResults read_registration_results(const String &filename)
Reads a set of registration results.
void get_diffusion_filtering_partial_derivative(const cv::Mat &m, cv::Mat &der, double dx, double dy, double ang)
double get_global_score(const RegistrationResults &RRs)
void do_place(cv::Mat &mask, cv::Mat &m, const algebra::Vector2D &v)
void do_morphologic_reconstruction(const cv::Mat &mask, cv::Mat &marker, int neighbors_mode=4)
morphologic grayscale reconstruction (L Vincent, 1993)
See IMP.display for more information.
Definition: BildWriter.h:20
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
See IMP.rmf for more information.
Definition: associations.h:20
See IMP.domino for more information.
Definition: analysis.h:15
void get_spectrum(const cv::Mat &m, cv::Mat &real, cv::Mat &imag)