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