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