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