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