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