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