11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_em2d', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_em2d', fp, pathname, description)
34 _IMP_em2d = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_EM2D_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
127 return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
132 incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
133 incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
135 return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
140 decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
141 decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
143 return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, x)
152 """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
153 return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, x)
157 """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
158 return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
162 """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
163 return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
167 """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
168 return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
172 """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
173 return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
178 return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
183 return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
188 return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
193 return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
198 return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
203 return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
209 __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
215 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
216 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
225 _IMP_em2d.IMP_DEBUG_swigconstant(_IMP_em2d)
226 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
228 _IMP_em2d.IMP_RELEASE_swigconstant(_IMP_em2d)
229 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
231 _IMP_em2d.IMP_SILENT_swigconstant(_IMP_em2d)
232 IMP_SILENT = _IMP_em2d.IMP_SILENT
234 _IMP_em2d.IMP_PROGRESS_swigconstant(_IMP_em2d)
235 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
237 _IMP_em2d.IMP_TERSE_swigconstant(_IMP_em2d)
238 IMP_TERSE = _IMP_em2d.IMP_TERSE
240 _IMP_em2d.IMP_VERBOSE_swigconstant(_IMP_em2d)
241 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
243 _IMP_em2d.IMP_MEMORY_swigconstant(_IMP_em2d)
244 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
246 _IMP_em2d.IMP_NONE_swigconstant(_IMP_em2d)
247 IMP_NONE = _IMP_em2d.IMP_NONE
249 _IMP_em2d.IMP_USAGE_swigconstant(_IMP_em2d)
250 IMP_USAGE = _IMP_em2d.IMP_USAGE
252 _IMP_em2d.IMP_INTERNAL_swigconstant(_IMP_em2d)
253 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
255 _IMP_em2d.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em2d)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_em2d.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em2d)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_em2d.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_em2d)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_em2d.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_em2d.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_em2d)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_em2d.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_em2d.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_em2d)
271 IMP_KERNEL_HAS_NUMPY = _IMP_em2d.IMP_KERNEL_HAS_NUMPY
273 _IMP_em2d.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em2d)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em2d.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em2d)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em2d)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_em2d.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_em2d._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_em2d._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_em2d.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em2d)
328 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
330 _IMP_em2d.IMP_C_OPEN_BINARY_swigconstant(_IMP_em2d)
331 IMP_C_OPEN_BINARY = _IMP_em2d.IMP_C_OPEN_BINARY
334 _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_em2d.IMP_CGAL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
344 IMP_CGAL_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_CGAL_HAS_BOOST_SERIALIZATION
346 _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
347 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
349 _IMP_em2d.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em2d)
350 IMP_CGAL_HAS_NUMPY = _IMP_em2d.IMP_CGAL_HAS_NUMPY
352 _IMP_em2d.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
353 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
356 _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
357 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
359 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
360 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
362 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
363 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
365 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
366 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
368 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
369 IMP_ALGEBRA_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION
371 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
372 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
374 _IMP_em2d.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em2d)
375 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
377 _IMP_em2d.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em2d)
378 IMP_ALGEBRA_HAS_NUMPY = _IMP_em2d.IMP_ALGEBRA_HAS_NUMPY
380 _IMP_em2d.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em2d)
381 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
383 _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em2d)
384 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
387 _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
388 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
390 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
391 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
393 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
394 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
396 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
397 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
399 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
400 IMP_DISPLAY_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SERIALIZATION
402 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
403 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
405 _IMP_em2d.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em2d)
406 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
408 _IMP_em2d.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em2d)
409 IMP_DISPLAY_HAS_NUMPY = _IMP_em2d.IMP_DISPLAY_HAS_NUMPY
411 _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em2d)
412 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
415 _IMP_em2d.IMP_GSL_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
416 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
418 _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
419 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
421 _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
422 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
424 _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
425 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
427 _IMP_em2d.IMP_GSL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
428 IMP_GSL_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_GSL_HAS_BOOST_SERIALIZATION
430 _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
431 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
433 _IMP_em2d.IMP_GSL_HAS_CGAL_swigconstant(_IMP_em2d)
434 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
436 _IMP_em2d.IMP_GSL_HAS_NUMPY_swigconstant(_IMP_em2d)
437 IMP_GSL_HAS_NUMPY = _IMP_em2d.IMP_GSL_HAS_NUMPY
439 _IMP_em2d.IMPGSL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
440 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
443 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
444 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
446 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
447 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
449 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
450 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
452 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
453 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
455 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
456 IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION
458 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
459 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
461 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em2d)
462 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
464 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em2d)
465 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5
467 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em2d)
468 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_NUMPY
470 _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em2d)
471 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
474 _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
475 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
477 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
478 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
480 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
481 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
483 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
484 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
486 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
487 IMP_STATISTICS_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SERIALIZATION
489 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
490 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
492 _IMP_em2d.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em2d)
493 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
495 _IMP_em2d.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em2d)
496 IMP_STATISTICS_HAS_NUMPY = _IMP_em2d.IMP_STATISTICS_HAS_NUMPY
498 _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em2d)
499 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
502 _IMP_em2d.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
503 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
505 _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
506 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
508 _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
509 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
511 _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
512 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
514 _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
515 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
517 _IMP_em2d.IMP_CORE_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
518 IMP_CORE_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_CORE_HAS_BOOST_SERIALIZATION
520 _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
521 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
523 _IMP_em2d.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em2d)
524 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
526 _IMP_em2d.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em2d)
527 IMP_CORE_HAS_HDF5 = _IMP_em2d.IMP_CORE_HAS_HDF5
529 _IMP_em2d.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em2d)
530 IMP_CORE_HAS_NUMPY = _IMP_em2d.IMP_CORE_HAS_NUMPY
532 _IMP_em2d.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em2d)
533 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
536 _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em2d)
537 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
539 _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
540 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
542 _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
543 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
545 _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
546 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
548 _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
549 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
551 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
552 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
554 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
555 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
557 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
558 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
560 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
561 IMP_CONTAINER_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SERIALIZATION
563 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
564 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
566 _IMP_em2d.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em2d)
567 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
569 _IMP_em2d.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em2d)
570 IMP_CONTAINER_HAS_HDF5 = _IMP_em2d.IMP_CONTAINER_HAS_HDF5
572 _IMP_em2d.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em2d)
573 IMP_CONTAINER_HAS_NUMPY = _IMP_em2d.IMP_CONTAINER_HAS_NUMPY
575 _IMP_em2d.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
576 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em2d.IMP_CONTAINER_HAS_PYTHON_IHM
578 _IMP_em2d.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em2d)
579 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em2d.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
581 _IMP_em2d.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em2d)
582 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em2d.IMP_CONTAINER_HAS_ROBIN_MAP
584 _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em2d)
585 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
588 _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
589 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
591 _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
592 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
594 _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
595 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
597 _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
598 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
600 _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
601 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
603 _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
604 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
606 _IMP_em2d.IMP_ATOM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
607 IMP_ATOM_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_ATOM_HAS_BOOST_SERIALIZATION
609 _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
610 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
612 _IMP_em2d.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em2d)
613 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
615 _IMP_em2d.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em2d)
616 IMP_ATOM_HAS_HDF5 = _IMP_em2d.IMP_ATOM_HAS_HDF5
618 _IMP_em2d.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em2d)
619 IMP_ATOM_HAS_NUMPY = _IMP_em2d.IMP_ATOM_HAS_NUMPY
621 _IMP_em2d.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
622 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em2d.IMP_ATOM_HAS_PYTHON_IHM
624 _IMP_em2d.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em2d)
625 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
627 _IMP_em2d.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em2d)
628 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
630 _IMP_em2d.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em2d)
631 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
633 _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em2d)
634 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
636 _IMP_em2d.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em2d)
637 IMP_CHAIN_TYPE_INDEX = _IMP_em2d.IMP_CHAIN_TYPE_INDEX
640 _IMP_em2d.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
641 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
643 _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em2d)
644 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
646 _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
647 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
649 _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
650 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
652 _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
653 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
655 _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
656 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
658 _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
659 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
661 _IMP_em2d.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
662 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
664 _IMP_em2d.IMP_EM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
665 IMP_EM_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_EM_HAS_BOOST_SERIALIZATION
667 _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
668 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
670 _IMP_em2d.IMP_EM_HAS_CGAL_swigconstant(_IMP_em2d)
671 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
673 _IMP_em2d.IMP_EM_HAS_HDF5_swigconstant(_IMP_em2d)
674 IMP_EM_HAS_HDF5 = _IMP_em2d.IMP_EM_HAS_HDF5
676 _IMP_em2d.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em2d)
677 IMP_EM_HAS_NUMPY = _IMP_em2d.IMP_EM_HAS_NUMPY
679 _IMP_em2d.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
680 IMP_EM_HAS_PYTHON_IHM = _IMP_em2d.IMP_EM_HAS_PYTHON_IHM
682 _IMP_em2d.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em2d)
683 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
686 _IMP_em2d.IMP_SAXS_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
687 IMP_SAXS_HAS_IMP_CGAL = _IMP_em2d.IMP_SAXS_HAS_IMP_CGAL
689 _IMP_em2d.IMP_SAXS_HAS_IMP_CONTAINER_swigconstant(_IMP_em2d)
690 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_em2d.IMP_SAXS_HAS_IMP_CONTAINER
692 _IMP_em2d.IMP_SAXS_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
693 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_em2d.IMP_SAXS_HAS_IMP_DISPLAY
695 _IMP_em2d.IMP_SAXS_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
696 IMP_SAXS_HAS_IMP_KERNEL = _IMP_em2d.IMP_SAXS_HAS_IMP_KERNEL
698 _IMP_em2d.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
699 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
701 _IMP_em2d.IMP_SAXS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
702 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SAXS_HAS_BOOST_FILESYSTEM
704 _IMP_em2d.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
705 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
707 _IMP_em2d.IMP_SAXS_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
708 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SAXS_HAS_BOOST_RANDOM
710 _IMP_em2d.IMP_SAXS_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
711 IMP_SAXS_HAS_BOOST_REGEX = _IMP_em2d.IMP_SAXS_HAS_BOOST_REGEX
713 _IMP_em2d.IMP_SAXS_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
714 IMP_SAXS_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_SAXS_HAS_BOOST_SERIALIZATION
716 _IMP_em2d.IMP_SAXS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
717 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SAXS_HAS_BOOST_SYSTEM
719 _IMP_em2d.IMP_SAXS_HAS_CGAL_swigconstant(_IMP_em2d)
720 IMP_SAXS_HAS_CGAL = _IMP_em2d.IMP_SAXS_HAS_CGAL
722 _IMP_em2d.IMP_SAXS_HAS_HDF5_swigconstant(_IMP_em2d)
723 IMP_SAXS_HAS_HDF5 = _IMP_em2d.IMP_SAXS_HAS_HDF5
725 _IMP_em2d.IMP_SAXS_HAS_NUMPY_swigconstant(_IMP_em2d)
726 IMP_SAXS_HAS_NUMPY = _IMP_em2d.IMP_SAXS_HAS_NUMPY
728 _IMP_em2d.IMP_SAXS_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
729 IMP_SAXS_HAS_PYTHON_IHM = _IMP_em2d.IMP_SAXS_HAS_PYTHON_IHM
731 _IMP_em2d.IMPSAXS_SHOW_WARNINGS_swigconstant(_IMP_em2d)
732 IMPSAXS_SHOW_WARNINGS = _IMP_em2d.IMPSAXS_SHOW_WARNINGS
735 _IMP_em2d.IMP_ISD_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
736 IMP_ISD_HAS_IMP_CGAL = _IMP_em2d.IMP_ISD_HAS_IMP_CGAL
738 _IMP_em2d.IMP_ISD_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
739 IMP_ISD_HAS_IMP_DISPLAY = _IMP_em2d.IMP_ISD_HAS_IMP_DISPLAY
741 _IMP_em2d.IMP_ISD_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
742 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
744 _IMP_em2d.IMP_ISD_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
745 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ISD_HAS_BOOST_FILESYSTEM
747 _IMP_em2d.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
748 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
750 _IMP_em2d.IMP_ISD_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
751 IMP_ISD_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ISD_HAS_BOOST_RANDOM
753 _IMP_em2d.IMP_ISD_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
754 IMP_ISD_HAS_BOOST_REGEX = _IMP_em2d.IMP_ISD_HAS_BOOST_REGEX
756 _IMP_em2d.IMP_ISD_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
757 IMP_ISD_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_ISD_HAS_BOOST_SERIALIZATION
759 _IMP_em2d.IMP_ISD_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
760 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ISD_HAS_BOOST_SYSTEM
762 _IMP_em2d.IMP_ISD_HAS_CGAL_swigconstant(_IMP_em2d)
763 IMP_ISD_HAS_CGAL = _IMP_em2d.IMP_ISD_HAS_CGAL
765 _IMP_em2d.IMP_ISD_HAS_HDF5_swigconstant(_IMP_em2d)
766 IMP_ISD_HAS_HDF5 = _IMP_em2d.IMP_ISD_HAS_HDF5
768 _IMP_em2d.IMP_ISD_HAS_NUMPY_swigconstant(_IMP_em2d)
769 IMP_ISD_HAS_NUMPY = _IMP_em2d.IMP_ISD_HAS_NUMPY
771 _IMP_em2d.IMP_ISD_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
772 IMP_ISD_HAS_PYTHON_IHM = _IMP_em2d.IMP_ISD_HAS_PYTHON_IHM
774 _IMP_em2d.IMPISD_SHOW_WARNINGS_swigconstant(_IMP_em2d)
775 IMPISD_SHOW_WARNINGS = _IMP_em2d.IMPISD_SHOW_WARNINGS
778 _IMP_em2d.IMP_RMF_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
779 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
781 _IMP_em2d.IMP_RMF_HAS_IMP_EM_swigconstant(_IMP_em2d)
782 IMP_RMF_HAS_IMP_EM = _IMP_em2d.IMP_RMF_HAS_IMP_EM
784 _IMP_em2d.IMP_RMF_HAS_IMP_SAXS_swigconstant(_IMP_em2d)
785 IMP_RMF_HAS_IMP_SAXS = _IMP_em2d.IMP_RMF_HAS_IMP_SAXS
787 _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
788 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
790 _IMP_em2d.IMP_RMF_HAS_IMP_STATISTICS_swigconstant(_IMP_em2d)
791 IMP_RMF_HAS_IMP_STATISTICS = _IMP_em2d.IMP_RMF_HAS_IMP_STATISTICS
793 _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
794 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
796 _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
797 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
799 _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
800 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
802 _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
803 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
805 _IMP_em2d.IMP_RMF_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
806 IMP_RMF_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_RMF_HAS_BOOST_SERIALIZATION
808 _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
809 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
811 _IMP_em2d.IMP_RMF_HAS_CGAL_swigconstant(_IMP_em2d)
812 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
814 _IMP_em2d.IMP_RMF_HAS_HDF5_swigconstant(_IMP_em2d)
815 IMP_RMF_HAS_HDF5 = _IMP_em2d.IMP_RMF_HAS_HDF5
817 _IMP_em2d.IMP_RMF_HAS_NUMPY_swigconstant(_IMP_em2d)
818 IMP_RMF_HAS_NUMPY = _IMP_em2d.IMP_RMF_HAS_NUMPY
820 _IMP_em2d.IMP_RMF_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
821 IMP_RMF_HAS_PYTHON_IHM = _IMP_em2d.IMP_RMF_HAS_PYTHON_IHM
823 _IMP_em2d.IMPRMF_SHOW_WARNINGS_swigconstant(_IMP_em2d)
824 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
828 _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM_swigconstant(_IMP_em2d)
829 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
831 _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
832 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
834 _IMP_em2d.IMP_DOMINO_HAS_IMP_EM_swigconstant(_IMP_em2d)
835 IMP_DOMINO_HAS_IMP_EM = _IMP_em2d.IMP_DOMINO_HAS_IMP_EM
837 _IMP_em2d.IMP_DOMINO_HAS_IMP_ISD_swigconstant(_IMP_em2d)
838 IMP_DOMINO_HAS_IMP_ISD = _IMP_em2d.IMP_DOMINO_HAS_IMP_ISD
840 _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
841 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
843 _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF_swigconstant(_IMP_em2d)
844 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
846 _IMP_em2d.IMP_DOMINO_HAS_IMP_SAXS_swigconstant(_IMP_em2d)
847 IMP_DOMINO_HAS_IMP_SAXS = _IMP_em2d.IMP_DOMINO_HAS_IMP_SAXS
849 _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
850 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
852 _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
853 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
855 _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
856 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
858 _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
859 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
861 _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
862 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
864 _IMP_em2d.IMP_DOMINO_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
865 IMP_DOMINO_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SERIALIZATION
867 _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
868 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
870 _IMP_em2d.IMP_DOMINO_HAS_CGAL_swigconstant(_IMP_em2d)
871 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
873 _IMP_em2d.IMP_DOMINO_HAS_HDF5_swigconstant(_IMP_em2d)
874 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
876 _IMP_em2d.IMP_DOMINO_HAS_NUMPY_swigconstant(_IMP_em2d)
877 IMP_DOMINO_HAS_NUMPY = _IMP_em2d.IMP_DOMINO_HAS_NUMPY
879 _IMP_em2d.IMP_DOMINO_HAS_RMF_swigconstant(_IMP_em2d)
880 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
882 _IMP_em2d.IMP_DOMINO_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
883 IMP_DOMINO_HAS_PYTHON_IHM = _IMP_em2d.IMP_DOMINO_HAS_PYTHON_IHM
885 _IMP_em2d.IMPDOMINO_SHOW_WARNINGS_swigconstant(_IMP_em2d)
886 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
890 _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
891 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
893 _IMP_em2d.IMP_EM2D_HAS_IMP_ISD_swigconstant(_IMP_em2d)
894 IMP_EM2D_HAS_IMP_ISD = _IMP_em2d.IMP_EM2D_HAS_IMP_ISD
896 _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
897 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
899 _IMP_em2d.IMP_EM2D_HAS_IMP_RMF_swigconstant(_IMP_em2d)
900 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
902 _IMP_em2d.IMP_EM2D_HAS_IMP_SAXS_swigconstant(_IMP_em2d)
903 IMP_EM2D_HAS_IMP_SAXS = _IMP_em2d.IMP_EM2D_HAS_IMP_SAXS
905 _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
906 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
908 _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS_swigconstant(_IMP_em2d)
909 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
911 _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH_swigconstant(_IMP_em2d)
912 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
914 _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
915 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
917 _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
918 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
920 _IMP_em2d.IMP_EM2D_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em2d)
921 IMP_EM2D_HAS_BOOST_SERIALIZATION = _IMP_em2d.IMP_EM2D_HAS_BOOST_SERIALIZATION
923 _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
924 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
926 _IMP_em2d.IMP_EM2D_HAS_CGAL_swigconstant(_IMP_em2d)
927 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
929 _IMP_em2d.IMP_EM2D_HAS_GSL_swigconstant(_IMP_em2d)
930 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
932 _IMP_em2d.IMP_EM2D_HAS_HDF5_swigconstant(_IMP_em2d)
933 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
935 _IMP_em2d.IMP_EM2D_HAS_NUMPY_swigconstant(_IMP_em2d)
936 IMP_EM2D_HAS_NUMPY = _IMP_em2d.IMP_EM2D_HAS_NUMPY
938 _IMP_em2d.IMP_EM2D_HAS_OPENCV22_swigconstant(_IMP_em2d)
939 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
941 _IMP_em2d.IMP_EM2D_HAS_RMF_swigconstant(_IMP_em2d)
942 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
944 _IMP_em2d.IMP_EM2D_HAS_PYTHON_IHM_swigconstant(_IMP_em2d)
945 IMP_EM2D_HAS_PYTHON_IHM = _IMP_em2d.IMP_EM2D_HAS_PYTHON_IHM
947 _IMP_em2d.IMP_EM2D_HAS_OPENCV21_swigconstant(_IMP_em2d)
948 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
950 _IMP_em2d.IMP_EM2D_HAS_OPENCV3_swigconstant(_IMP_em2d)
951 IMP_EM2D_HAS_OPENCV3 = _IMP_em2d.IMP_EM2D_HAS_OPENCV3
953 _IMP_em2d.IMPEM2D_SHOW_WARNINGS_swigconstant(_IMP_em2d)
954 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
956 PolarResamplingParametersList=list
957 _plural_types.append(
"PolarResamplingParametersList")
958 _value_types.append(
"PolarResamplingParameters")
962 _plural_types.append(
"ProjectionMasks")
963 _value_types.append(
"ProjectionMask")
967 _plural_types.append(
"MasksManagers")
968 _value_types.append(
"MasksManager")
971 RegistrationResults=list
972 _plural_types.append(
"RegistrationResults")
973 _value_types.append(
"RegistrationResult")
977 _plural_types.append(
"ClusterSets")
978 _value_types.append(
"ClusterSet")
982 _plural_types.append(
"SingleLinkages")
983 _value_types.append(
"SingleLinkage")
986 CompleteLinkages=list
987 _plural_types.append(
"CompleteLinkages")
988 _value_types.append(
"CompleteLinkage")
991 AverageDistanceLinkages=list
992 _plural_types.append(
"AverageDistanceLinkages")
993 _value_types.append(
"AverageDistanceLinkage")
996 SegmentationParametersList=list
997 _plural_types.append(
"SegmentationParametersList")
998 _value_types.append(
"SegmentationParameters")
1001 MatchTemplateResults=list
1002 _plural_types.append(
"MatchTemplateResults")
1003 _value_types.append(
"MatchTemplateResult")
1006 ProjectingParametersList=list
1007 _plural_types.append(
"ProjectingParametersList")
1008 _value_types.append(
"ProjectingParameters")
1011 ProjectingOptionsList=list
1012 _plural_types.append(
"ProjectingOptionsList")
1013 _value_types.append(
"ProjectingOptions")
1016 Em2DRestraintParametersList=list
1017 _plural_types.append(
"Em2DRestraintParametersList")
1018 _value_types.append(
"Em2DRestraintParameters")
1021 _object_types.append(
"ProjectionFinder")
1024 def _object_cast_to_ProjectionFinder(o):
1025 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
1026 return _IMP_em2d._object_cast_to_ProjectionFinder(o)
1028 _object_types.append(
"ScoreFunction")
1031 def _object_cast_to_ScoreFunction(o):
1032 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
1033 return _IMP_em2d._object_cast_to_ScoreFunction(o)
1035 _object_types.append(
"ChiSquaredScore")
1038 def _object_cast_to_ChiSquaredScore(o):
1039 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
1040 return _IMP_em2d._object_cast_to_ChiSquaredScore(o)
1042 _object_types.append(
"EM2DScore")
1045 def _object_cast_to_EM2DScore(o):
1046 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
1047 return _IMP_em2d._object_cast_to_EM2DScore(o)
1049 _object_types.append(
"MeanAbsoluteDifference")
1052 def _object_cast_to_MeanAbsoluteDifference(o):
1053 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
1054 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(o)
1056 _object_types.append(
"ProjectionParametersScoreState")
1059 def _object_cast_to_ProjectionParametersScoreState(o):
1060 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
1061 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(o)
1063 _object_types.append(
"Em2DRestraint")
1066 def _object_cast_to_Em2DRestraint(o):
1067 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
1068 return _IMP_em2d._object_cast_to_Em2DRestraint(o)
1070 _object_types.append(
"Image")
1073 def _object_cast_to_Image(o):
1074 """_object_cast_to_Image(Object o) -> Image"""
1075 return _IMP_em2d._object_cast_to_Image(o)
1077 _object_types.append(
"ImageReaderWriter")
1080 def _object_cast_to_ImageReaderWriter(o):
1081 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
1082 return _IMP_em2d._object_cast_to_ImageReaderWriter(o)
1084 _object_types.append(
"JPGImageReaderWriter")
1087 def _object_cast_to_JPGImageReaderWriter(o):
1088 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
1089 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(o)
1091 _object_types.append(
"TIFFImageReaderWriter")
1094 def _object_cast_to_TIFFImageReaderWriter(o):
1095 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
1096 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(o)
1098 _object_types.append(
"SpiderImageReaderWriter")
1101 def _object_cast_to_SpiderImageReaderWriter(o):
1102 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
1103 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(o)
1105 _object_types.append(
"CollisionCrossSection")
1108 def _object_cast_to_CollisionCrossSection(o):
1109 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
1110 return _IMP_em2d._object_cast_to_CollisionCrossSection(o)
1112 _object_types.append(
"GridStates")
1115 def _object_cast_to_GridStates(o):
1116 """_object_cast_to_GridStates(Object o) -> GridStates"""
1117 return _IMP_em2d._object_cast_to_GridStates(o)
1119 _object_types.append(
"ProjectionStates")
1122 def _object_cast_to_ProjectionStates(o):
1123 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
1124 return _IMP_em2d._object_cast_to_ProjectionStates(o)
1126 _object_types.append(
"DistanceFilter")
1129 def _object_cast_to_DistanceFilter(o):
1130 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
1131 return _IMP_em2d._object_cast_to_DistanceFilter(o)
1133 _object_types.append(
"DistanceFilterTable")
1136 def _object_cast_to_DistanceFilterTable(o):
1137 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
1138 return _IMP_em2d._object_cast_to_DistanceFilterTable(o)
1140 _object_types.append(
"RigidBodiesImageFitRestraint")
1143 def _object_cast_to_RigidBodiesImageFitRestraint(o):
1144 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
1145 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(o)
1147 _object_types.append(
"DummyRestraint")
1150 def _object_cast_to_DummyRestraint(o):
1151 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
1152 return _IMP_em2d._object_cast_to_DummyRestraint(o)
1154 _object_types.append(
"ParticlesDummyRestraint")
1157 def _object_cast_to_ParticlesDummyRestraint(o):
1158 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
1159 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(o)
1161 _object_types.append(
"RelativePositionMover")
1164 def _object_cast_to_RelativePositionMover(o):
1165 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
1166 return _IMP_em2d._object_cast_to_RelativePositionMover(o)
1168 _object_types.append(
"PCAFitRestraint")
1171 def _object_cast_to_em2dPCAFitRestraint(o):
1172 """_object_cast_to_em2dPCAFitRestraint(Object o) -> PCAFitRestraint"""
1173 return _IMP_em2d._object_cast_to_em2dPCAFitRestraint(o)
1175 def ProjectionParametersList(l=[]):
1176 return [ProjectionParameters(x)
for x
in l]
1177 _plural_types.append(
"ProjectionParametersList")
1180 _value_types.append(
"ProjectionParameters")
1185 show(cv::Mat const & m, _ostream out)
1186 show(cv::Mat const & m)
1188 return _IMP_em2d.show(*args)
1191 """write_matrix(cv::Mat & m, std::string name)"""
1192 return _IMP_em2d.write_matrix(m, name)
1194 """Proxy of C++ IMP::em2d::ImageReaderWriter class"""
1195 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1197 def __init__(self, *args, **kwargs):
1198 raise AttributeError(
"No constructor defined - class is abstract")
1200 def read(self, filename, header, data):
1201 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
1202 return _IMP_em2d.ImageReaderWriter_read(self, filename, header, data)
1205 def read_from_floats(self, filename, header, data):
1206 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
1207 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, filename, header, data)
1210 def read_from_ints(self, filename, header, data):
1211 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
1212 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, filename, header, data)
1215 def write(self, filename, header, data):
1216 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
1217 return _IMP_em2d.ImageReaderWriter_write(self, filename, header, data)
1220 def write_to_floats(self, filename, header, data):
1221 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
1222 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, filename, header, data)
1225 def write_to_ints(self, filename, header, data):
1226 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
1227 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, filename, header, data)
1230 def get_version_info(self):
1231 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
1232 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
1236 """__str__(ImageReaderWriter self) -> std::string"""
1237 return _IMP_em2d.ImageReaderWriter___str__(self)
1241 """__repr__(ImageReaderWriter self) -> std::string"""
1242 return _IMP_em2d.ImageReaderWriter___repr__(self)
1247 return _object_cast_to_ImageReaderWriter(o)
1249 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
1250 ImageReaderWriter_swigregister(ImageReaderWriter)
1252 class PolarResamplingParameters(object):
1253 """Proxy of C++ IMP::em2d::PolarResamplingParameters class"""
1254 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1256 def __init__(self, *args):
1258 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
1259 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
1260 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
1262 this = _IMP_em2d.new_PolarResamplingParameters(*args)
1264 self.this.append(this)
1267 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
1268 __del__ =
lambda self:
None
1270 def setup(self, rows, cols):
1271 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
1272 return _IMP_em2d.PolarResamplingParameters_setup(self, rows, cols)
1275 def get_starting_radius(self):
1276 """get_starting_radius(PolarResamplingParameters self) -> double"""
1277 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
1280 def get_ending_radius(self):
1281 """get_ending_radius(PolarResamplingParameters self) -> double"""
1282 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
1285 def get_radius(self, n_ring):
1286 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
1287 return _IMP_em2d.PolarResamplingParameters_get_radius(self, n_ring)
1290 def get_number_of_rings(self):
1291 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
1292 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
1295 def set_estimated_number_of_angles(self, aprox_value):
1296 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
1297 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, aprox_value)
1300 def get_number_of_angles(self):
1301 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
1302 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
1305 def get_angle_step(self):
1306 """get_angle_step(PolarResamplingParameters self) -> double"""
1307 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
1310 def get_radius_step(self):
1311 """get_radius_step(PolarResamplingParameters self) -> double"""
1312 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
1315 def create_maps_for_resampling(self):
1316 """create_maps_for_resampling(PolarResamplingParameters self)"""
1317 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
1320 def get_resampling_maps(self, m1, m2):
1321 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
1322 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, m1, m2)
1325 def get_resampling_map(self, m1):
1326 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
1327 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, m1)
1330 def show(self, out):
1331 """show(PolarResamplingParameters self, _ostream out)"""
1332 return _IMP_em2d.PolarResamplingParameters_show(self, out)
1335 def get_is_setup(self):
1336 """get_is_setup(PolarResamplingParameters self) -> bool"""
1337 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
1341 """__str__(PolarResamplingParameters self) -> std::string"""
1342 return _IMP_em2d.PolarResamplingParameters___str__(self)
1346 """__repr__(PolarResamplingParameters self) -> std::string"""
1347 return _IMP_em2d.PolarResamplingParameters___repr__(self)
1350 def _get_as_binary(self):
1351 """_get_as_binary(PolarResamplingParameters self) -> PyObject *"""
1352 return _IMP_em2d.PolarResamplingParameters__get_as_binary(self)
1355 def _set_from_binary(self, p):
1356 """_set_from_binary(PolarResamplingParameters self, PyObject * p)"""
1357 return _IMP_em2d.PolarResamplingParameters__set_from_binary(self, p)
1360 def __getstate__(self):
1361 p = self._get_as_binary()
1362 if len(self.__dict__) > 1:
1363 d = self.__dict__.copy()
1368 def __setstate__(self, p):
1369 if not hasattr(self,
'this'):
1371 if isinstance(p, tuple):
1373 self.__dict__.update(d)
1374 return self._set_from_binary(p)
1376 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
1377 PolarResamplingParameters_swigregister(PolarResamplingParameters)
1379 class SegmentationParameters(object):
1380 """Proxy of C++ IMP::em2d::SegmentationParameters class"""
1381 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1382 image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
1383 diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
1384 diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
1385 fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
1386 opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
1387 remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
1388 binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
1389 binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
1390 threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
1392 def __init__(self, *args):
1394 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
1395 __init__(IMP::em2d::SegmentationParameters self, double apix, double diff_beta, unsigned int diff_timesteps, double fh_stddevs, cv::Mat const & kr, int background, int foreground) -> SegmentationParameters
1397 this = _IMP_em2d.new_SegmentationParameters(*args)
1399 self.this.append(this)
1403 def show(self, *args):
1405 show(SegmentationParameters self, _ostream out)
1406 show(SegmentationParameters self)
1408 return _IMP_em2d.SegmentationParameters_show(self, *args)
1412 """__str__(SegmentationParameters self) -> std::string"""
1413 return _IMP_em2d.SegmentationParameters___str__(self)
1417 """__repr__(SegmentationParameters self) -> std::string"""
1418 return _IMP_em2d.SegmentationParameters___repr__(self)
1421 def _get_as_binary(self):
1422 """_get_as_binary(SegmentationParameters self) -> PyObject *"""
1423 return _IMP_em2d.SegmentationParameters__get_as_binary(self)
1426 def _set_from_binary(self, p):
1427 """_set_from_binary(SegmentationParameters self, PyObject * p)"""
1428 return _IMP_em2d.SegmentationParameters__set_from_binary(self, p)
1431 def __getstate__(self):
1432 p = self._get_as_binary()
1433 if len(self.__dict__) > 1:
1434 d = self.__dict__.copy()
1439 def __setstate__(self, p):
1440 if not hasattr(self,
'this'):
1442 if isinstance(p, tuple):
1444 self.__dict__.update(d)
1445 return self._set_from_binary(p)
1447 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
1448 __del__ =
lambda self:
None
1449 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
1450 SegmentationParameters_swigregister(SegmentationParameters)
1452 class MatchTemplateResult(object):
1453 """Proxy of C++ IMP::em2d::MatchTemplateResult class"""
1454 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1455 pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
1456 cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
1458 def __init__(self, p, cc):
1459 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
1460 this = _IMP_em2d.new_MatchTemplateResult(p, cc)
1462 self.this.append(this)
1466 def show(self, *args):
1468 show(MatchTemplateResult self, _ostream out)
1469 show(MatchTemplateResult self)
1471 return _IMP_em2d.MatchTemplateResult_show(self, *args)
1475 """__str__(MatchTemplateResult self) -> std::string"""
1476 return _IMP_em2d.MatchTemplateResult___str__(self)
1480 """__repr__(MatchTemplateResult self) -> std::string"""
1481 return _IMP_em2d.MatchTemplateResult___repr__(self)
1484 def _get_as_binary(self):
1485 """_get_as_binary(MatchTemplateResult self) -> PyObject *"""
1486 return _IMP_em2d.MatchTemplateResult__get_as_binary(self)
1489 def _set_from_binary(self, p):
1490 """_set_from_binary(MatchTemplateResult self, PyObject * p)"""
1491 return _IMP_em2d.MatchTemplateResult__set_from_binary(self, p)
1494 def __getstate__(self):
1495 p = self._get_as_binary()
1496 if len(self.__dict__) > 1:
1497 d = self.__dict__.copy()
1502 def __setstate__(self, p):
1503 if not hasattr(self,
'this'):
1505 if isinstance(p, tuple):
1507 self.__dict__.update(d)
1508 return self._set_from_binary(p)
1510 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
1511 __del__ =
lambda self:
None
1512 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
1513 MatchTemplateResult_swigregister(MatchTemplateResult)
1517 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
1518 return _IMP_em2d.apply_mask(m, result, mask, val)
1522 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
1523 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
1525 return _IMP_em2d.apply_circular_mask(mat, result, radius, value)
1528 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
1529 return _IMP_em2d.get_mean(mat, mask)
1532 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
1533 return _IMP_em2d.create_circular_mask(rows, cols, radius)
1535 def do_histogram_stretching(m, boxes, offset):
1536 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
1537 return _IMP_em2d.do_histogram_stretching(m, boxes, offset)
1540 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & grayscale, cv::Mat & kernel)"""
1541 return _IMP_em2d.do_dilate_and_shrink_warp(m, grayscale, kernel)
1545 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
1546 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
1548 return _IMP_em2d.do_morphologic_reconstruction(mask, marker, neighbors_mode)
1551 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
1552 return _IMP_em2d.do_labeling(m, mat_to_label)
1555 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
1556 return _IMP_em2d.get_diffusion_filtering_partial_derivative(m, der, dx, dy, ang)
1559 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
1560 return _IMP_em2d.get_domes(m, result, h)
1562 def get_transformed(input, transformed, T):
1563 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
1564 return _IMP_em2d.get_transformed(input, transformed, T)
1568 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
1569 apply_threshold(cv::Mat & m, cv::Mat & result)
1571 return _IMP_em2d.apply_threshold(m, result, threshold)
1574 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
1575 return _IMP_em2d.do_morphologic_contrast_enhancement(m, result, kernel, iterations)
1578 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
1579 return _IMP_em2d.get_morphologic_gradient(m, result, kernel)
1582 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
1583 return _IMP_em2d.get_overlap_percentage(m1, m2, center)
1586 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
1587 return _IMP_em2d.get_best_template_matches(m, templ, n)
1589 """Proxy of C++ IMP::em2d::Image class"""
1590 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1592 def __init__(self, *args):
1594 __init__(IMP::em2d::Image self) -> Image
1595 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
1596 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
1598 this = _IMP_em2d.new_Image(*args)
1600 self.this.append(this)
1605 """get_data(Image self) -> cv::Mat &"""
1606 return _IMP_em2d.Image_get_data(self)
1609 def set_data(self, mat):
1610 """set_data(Image self, cv::Mat const & mat)"""
1611 return _IMP_em2d.Image_set_data(self, mat)
1614 def set_zeros(self):
1615 """set_zeros(Image self)"""
1616 return _IMP_em2d.Image_set_zeros(self)
1619 def set_value(self, *args):
1621 set_value(Image self, double val)
1622 set_value(Image self, int i, int j, double val)
1624 return _IMP_em2d.Image_set_value(self, *args)
1627 def __call__(self, i, j):
1628 """__call__(Image self, int i, int j) -> double"""
1629 return _IMP_em2d.Image___call__(self, i, j)
1632 def get_header(self):
1633 """get_header(Image self) -> ImageHeader"""
1634 return _IMP_em2d.Image_get_header(self)
1637 def set_size(self, *args):
1639 set_size(Image self, int rows, int cols)
1640 set_size(Image self, Image img)
1642 return _IMP_em2d.Image_set_size(self, *args)
1645 def update_header(self):
1646 """update_header(Image self)"""
1647 return _IMP_em2d.Image_update_header(self)
1650 def read(self, filename, reader):
1651 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
1652 return _IMP_em2d.Image_read(self, filename, reader)
1655 def write(self, filename, writer):
1656 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
1657 return _IMP_em2d.Image_write(self, filename, writer)
1660 def show(self, out):
1661 """show(Image self, _ostream out)"""
1662 return _IMP_em2d.Image_show(self, out)
1665 def get_version_info(self):
1666 """get_version_info(Image self) -> VersionInfo"""
1667 return _IMP_em2d.Image_get_version_info(self)
1670 def set_name(self, name):
1671 """set_name(Image self, IMP::String const & name)"""
1672 return _IMP_em2d.Image_set_name(self, name)
1676 """get_name(Image self) -> IMP::String"""
1677 return _IMP_em2d.Image_get_name(self)
1680 def get_min_and_max_values(self):
1681 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
1682 return _IMP_em2d.Image_get_min_and_max_values(self)
1686 """__str__(Image self) -> std::string"""
1687 return _IMP_em2d.Image___str__(self)
1691 """__repr__(Image self) -> std::string"""
1692 return _IMP_em2d.Image___repr__(self)
1697 return _object_cast_to_Image(o)
1699 Image_swigregister = _IMP_em2d.Image_swigregister
1700 Image_swigregister(Image)
1704 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1705 return _IMP_em2d.read_images(names, rw)
1708 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1709 return _IMP_em2d.save_images(images, names, rw)
1713 do_normalize(cv::Mat & m)
1714 do_normalize(Image im, bool force=False)
1715 do_normalize(Image im)
1717 return _IMP_em2d.do_normalize(*args)
1721 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1722 get_histogram(Image img, int bins) -> IMP::Floats
1724 return _IMP_em2d.get_histogram(*args)
1728 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1729 apply_variance_filter(Image input, Image filtered, int kernelsize)
1731 return _IMP_em2d.apply_variance_filter(*args)
1735 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1736 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1738 return _IMP_em2d.apply_diffusion_filter(*args)
1740 def do_fill_holes(*args):
1742 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1743 do_fill_holes(Image input, Image result, double n_stddevs)
1745 return _IMP_em2d.do_fill_holes(*args)
1747 def do_combined_fill_holes_and_threshold(*args):
1749 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1750 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1751 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1753 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1755 def do_extend_borders(*args):
1757 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1758 do_extend_borders(Image im1, Image im2, unsigned int pix)
1760 return _IMP_em2d.do_extend_borders(*args)
1762 def do_segmentation(*args):
1764 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1765 do_segmentation(Image input, Image result, SegmentationParameters params)
1767 return _IMP_em2d.do_segmentation(*args)
1769 def do_remove_small_objects(*args):
1771 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1772 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1773 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1774 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1775 do_remove_small_objects(Image input, double percentage, int background=0)
1776 do_remove_small_objects(Image input, double percentage)
1778 return _IMP_em2d.do_remove_small_objects(*args)
1781 """do_subtract_images(Image first, Image second, Image result)"""
1782 return _IMP_em2d.do_subtract_images(first, second, result)
1784 def add_noise(*args):
1786 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode, double df=3)
1787 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode)
1788 add_noise(cv::Mat & v, double op1, double op2)
1789 add_noise(Image im1, double op1, double op2, IMP::String const & mode, double df=3)
1790 add_noise(Image im1, double op1, double op2, IMP::String const & mode)
1791 add_noise(Image im1, double op1, double op2)
1793 return _IMP_em2d.add_noise(*args)
1797 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1798 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1800 return _IMP_em2d.do_resample_polar(*args)
1804 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1805 crop(Image img, IMP::IntPair const & center, int size)
1807 return _IMP_em2d.crop(*args)
1810 """apply_mean_outside_mask(Image img, double radius)"""
1811 return _IMP_em2d.apply_mean_outside_mask(img, radius)
1812 class RegistrationResult(object):
1813 """Proxy of C++ IMP::em2d::RegistrationResult class"""
1814 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1816 def __init__(self, *args):
1818 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1819 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1820 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1821 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1822 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1823 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1824 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1825 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0) -> RegistrationResult
1826 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift) -> RegistrationResult
1827 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1829 this = _IMP_em2d.new_RegistrationResult(*args)
1831 self.this.append(this)
1836 """get_phi(RegistrationResult self) -> double"""
1837 return _IMP_em2d.RegistrationResult_get_phi(self)
1840 def get_theta(self):
1841 """get_theta(RegistrationResult self) -> double"""
1842 return _IMP_em2d.RegistrationResult_get_theta(self)
1846 """get_psi(RegistrationResult self) -> double"""
1847 return _IMP_em2d.RegistrationResult_get_psi(self)
1850 def get_shift(self):
1851 """get_shift(RegistrationResult self) -> Vector2D"""
1852 return _IMP_em2d.RegistrationResult_get_shift(self)
1855 def get_shift_3d(self):
1856 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1857 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1860 def get_projection_index(self):
1861 """get_projection_index(RegistrationResult self) -> int"""
1862 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1865 def set_projection_index(self, index):
1866 """set_projection_index(RegistrationResult self, int index)"""
1867 return _IMP_em2d.RegistrationResult_set_projection_index(self, index)
1870 def get_image_index(self):
1871 """get_image_index(RegistrationResult self) -> int"""
1872 return _IMP_em2d.RegistrationResult_get_image_index(self)
1875 def set_image_index(self, index):
1876 """set_image_index(RegistrationResult self, int index)"""
1877 return _IMP_em2d.RegistrationResult_set_image_index(self, index)
1881 """get_name(RegistrationResult self) -> IMP::String"""
1882 return _IMP_em2d.RegistrationResult_get_name(self)
1886 """get_ccc(RegistrationResult self) -> double"""
1887 return _IMP_em2d.RegistrationResult_get_ccc(self)
1890 def set_ccc(self, ccc):
1891 """set_ccc(RegistrationResult self, double ccc)"""
1892 return _IMP_em2d.RegistrationResult_set_ccc(self, ccc)
1895 def get_score(self):
1896 """get_score(RegistrationResult self) -> double"""
1897 return _IMP_em2d.RegistrationResult_get_score(self)
1900 def set_score(self, Score):
1901 """set_score(RegistrationResult self, double Score)"""
1902 return _IMP_em2d.RegistrationResult_set_score(self, Score)
1905 def set_rotation(self, *args):
1907 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1908 set_rotation(RegistrationResult self, Rotation3D R)
1910 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1913 def set_shift(self, shift):
1914 """set_shift(RegistrationResult self, Vector2D shift)"""
1915 return _IMP_em2d.RegistrationResult_set_shift(self, shift)
1918 def set_name(self, name):
1919 """set_name(RegistrationResult self, IMP::String name)"""
1920 return _IMP_em2d.RegistrationResult_set_name(self, name)
1923 def add_in_plane_transformation(self, t):
1924 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1925 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, t)
1928 def show(self, *args):
1930 show(RegistrationResult self, _ostream out)
1931 show(RegistrationResult self)
1933 return _IMP_em2d.RegistrationResult_show(self, *args)
1936 def write(self, *args):
1938 write(RegistrationResult self, _ostream out)
1939 write(RegistrationResult self)
1941 return _IMP_em2d.RegistrationResult_write(self, *args)
1944 def write_comment_line(self, *args):
1946 write_comment_line(RegistrationResult self, _ostream out)
1947 write_comment_line(RegistrationResult self)
1949 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1953 """read(RegistrationResult self, IMP::String const & s)"""
1954 return _IMP_em2d.RegistrationResult_read(self, s)
1957 def set_random_registration(self, index, maximum_shift):
1958 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1959 return _IMP_em2d.RegistrationResult_set_random_registration(self, index, maximum_shift)
1962 def get_rotation(self):
1963 """get_rotation(RegistrationResult self) -> Rotation3D"""
1964 return _IMP_em2d.RegistrationResult_get_rotation(self)
1967 def set_in_image(self, header):
1968 """set_in_image(RegistrationResult self, ImageHeader header)"""
1969 return _IMP_em2d.RegistrationResult_set_in_image(self, header)
1972 def read_from_image(self, header):
1973 """read_from_image(RegistrationResult self, ImageHeader header)"""
1974 return _IMP_em2d.RegistrationResult_read_from_image(self, header)
1977 def get_is_optimized_result(self):
1978 """get_is_optimized_result(RegistrationResult self) -> bool"""
1979 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1981 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1982 __del__ =
lambda self:
None
1985 """__str__(RegistrationResult self) -> std::string"""
1986 return _IMP_em2d.RegistrationResult___str__(self)
1990 """__repr__(RegistrationResult self) -> std::string"""
1991 return _IMP_em2d.RegistrationResult___repr__(self)
1994 def _get_as_binary(self):
1995 """_get_as_binary(RegistrationResult self) -> PyObject *"""
1996 return _IMP_em2d.RegistrationResult__get_as_binary(self)
1999 def _set_from_binary(self, p):
2000 """_set_from_binary(RegistrationResult self, PyObject * p)"""
2001 return _IMP_em2d.RegistrationResult__set_from_binary(self, p)
2004 def __getstate__(self):
2005 p = self._get_as_binary()
2006 if len(self.__dict__) > 1:
2007 d = self.__dict__.copy()
2012 def __setstate__(self, p):
2013 if not hasattr(self,
'this'):
2015 if isinstance(p, tuple):
2017 self.__dict__.update(d)
2018 return self._set_from_binary(p)
2020 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
2021 RegistrationResult_swigregister(RegistrationResult)
2025 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
2026 return _IMP_em2d.read_registration_results(filename)
2029 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
2030 return _IMP_em2d.write_registration_results(filename, results)
2034 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
2035 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
2037 return _IMP_em2d.get_random_registration_results(n, maximum_shift)
2040 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
2041 return _IMP_em2d.get_evenly_distributed_registration_results(n_projections)
2042 class SpiderImageReaderWriter(ImageReaderWriter):
2043 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class"""
2044 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2045 filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
2046 skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
2047 force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
2048 skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
2050 def __init__(self, *args):
2052 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
2053 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
2055 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
2057 self.this.append(this)
2062 """__str__(SpiderImageReaderWriter self) -> std::string"""
2063 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
2067 """__repr__(SpiderImageReaderWriter self) -> std::string"""
2068 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
2073 return _object_cast_to_SpiderImageReaderWriter(o)
2075 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
2076 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
2078 class JPGImageReaderWriter(ImageReaderWriter):
2079 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class"""
2080 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2083 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
2084 this = _IMP_em2d.new_JPGImageReaderWriter()
2086 self.this.append(this)
2091 """__str__(JPGImageReaderWriter self) -> std::string"""
2092 return _IMP_em2d.JPGImageReaderWriter___str__(self)
2096 """__repr__(JPGImageReaderWriter self) -> std::string"""
2097 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
2102 return _object_cast_to_JPGImageReaderWriter(o)
2104 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
2105 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
2107 class TIFFImageReaderWriter(ImageReaderWriter):
2108 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class"""
2109 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2112 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
2113 this = _IMP_em2d.new_TIFFImageReaderWriter()
2115 self.this.append(this)
2120 """__str__(TIFFImageReaderWriter self) -> std::string"""
2121 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
2125 """__repr__(TIFFImageReaderWriter self) -> std::string"""
2126 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
2131 return _object_cast_to_TIFFImageReaderWriter(o)
2133 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
2134 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
2138 """do_matrix_to_image_flip(cv::Mat & m)"""
2139 return _IMP_em2d.do_matrix_to_image_flip(m)
2142 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
2143 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(M, corr)
2147 get_autocorrelation2d(Image im1, Image im2)
2148 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
2150 return _IMP_em2d.get_autocorrelation2d(*args)
2154 get_correlation2d(Image im1, Image im2, Image corr)
2155 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
2157 return _IMP_em2d.get_correlation2d(*args)
2160 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
2161 return _IMP_em2d.get_correlation2d_no_preprocessing(M1, M2, corr)
2164 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
2165 return _IMP_em2d.get_fft_using_optimal_size(m, M)
2168 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
2169 return _IMP_em2d.get_spectrum(m, real, imag)
2172 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
2173 return _IMP_em2d.get_rotation_error(rr1, rr2)
2176 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
2177 return _IMP_em2d.get_shift_error(rr1, rr2)
2179 def get_average_rotation_error(correct_RRs, computed_RRs):
2180 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
2181 return _IMP_em2d.get_average_rotation_error(correct_RRs, computed_RRs)
2183 def get_average_shift_error(correct_RRs, computed_RRs):
2184 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
2185 return _IMP_em2d.get_average_shift_error(correct_RRs, computed_RRs)
2189 get_cross_correlation_coefficient(Image im1, Image im2) -> double
2190 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
2192 return _IMP_em2d.get_cross_correlation_coefficient(*args)
2195 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
2196 return _IMP_em2d.get_global_score(RRs)
2198 """Proxy of C++ IMP::em2d::ScoreFunction class"""
2199 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2201 def __init__(self, *args, **kwargs):
2202 raise AttributeError(
"No constructor defined - class is abstract")
2204 def get_score(self, image, projection):
2205 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
2206 return _IMP_em2d.ScoreFunction_get_score(self, image, projection)
2209 def set_variance_image(self, var):
2210 """set_variance_image(ScoreFunction self, Image var)"""
2211 return _IMP_em2d.ScoreFunction_set_variance_image(self, var)
2214 def get_version_info(self):
2215 """get_version_info(ScoreFunction self) -> VersionInfo"""
2216 return _IMP_em2d.ScoreFunction_get_version_info(self)
2220 """__str__(ScoreFunction self) -> std::string"""
2221 return _IMP_em2d.ScoreFunction___str__(self)
2225 """__repr__(ScoreFunction self) -> std::string"""
2226 return _IMP_em2d.ScoreFunction___repr__(self)
2231 return _object_cast_to_ScoreFunction(o)
2233 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
2234 ScoreFunction_swigregister(ScoreFunction)
2236 class ChiSquaredScore(ScoreFunction):
2237 """Proxy of C++ IMP::em2d::ChiSquaredScore class"""
2238 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2241 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
2242 this = _IMP_em2d.new_ChiSquaredScore()
2244 self.this.append(this)
2249 """__str__(ChiSquaredScore self) -> std::string"""
2250 return _IMP_em2d.ChiSquaredScore___str__(self)
2254 """__repr__(ChiSquaredScore self) -> std::string"""
2255 return _IMP_em2d.ChiSquaredScore___repr__(self)
2260 return _object_cast_to_ChiSquaredScore(o)
2262 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
2263 __del__ =
lambda self:
None
2264 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
2265 ChiSquaredScore_swigregister(ChiSquaredScore)
2267 class EM2DScore(ScoreFunction):
2268 """Proxy of C++ IMP::em2d::EM2DScore class"""
2269 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2272 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
2273 this = _IMP_em2d.new_EM2DScore()
2275 self.this.append(this)
2280 """__str__(EM2DScore self) -> std::string"""
2281 return _IMP_em2d.EM2DScore___str__(self)
2285 """__repr__(EM2DScore self) -> std::string"""
2286 return _IMP_em2d.EM2DScore___repr__(self)
2291 return _object_cast_to_EM2DScore(o)
2293 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
2294 __del__ =
lambda self:
None
2295 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
2296 EM2DScore_swigregister(EM2DScore)
2298 class MeanAbsoluteDifference(ScoreFunction):
2299 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class"""
2300 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2303 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
2304 this = _IMP_em2d.new_MeanAbsoluteDifference()
2306 self.this.append(this)
2311 """__str__(MeanAbsoluteDifference self) -> std::string"""
2312 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
2316 """__repr__(MeanAbsoluteDifference self) -> std::string"""
2317 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
2322 return _object_cast_to_MeanAbsoluteDifference(o)
2324 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
2325 __del__ =
lambda self:
None
2326 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
2327 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
2331 """read_selection_file(IMP::String fn) -> IMP::Strings"""
2332 return _IMP_em2d.read_selection_file(fn)
2335 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
2336 return _IMP_em2d.create_filenames(number, basic_name, extension)
2338 """Proxy of C++ IMP::em2d::ProjectionParameters class"""
2339 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2341 def __init__(self, *args):
2343 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
2344 __init__(IMP::em2d::ProjectionParameters self, Model m, ParticleIndex id) -> ProjectionParameters
2345 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
2347 this = _IMP_em2d.new_ProjectionParameters(*args)
2349 self.this.append(this)
2353 def show(self, *args):
2355 show(ProjectionParameters self, _ostream out)
2356 show(ProjectionParameters self)
2358 return _IMP_em2d.ProjectionParameters_show(self, *args)
2361 def setup_particle(*args):
2363 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2364 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2366 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2368 setup_particle = staticmethod(setup_particle)
2369 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
2370 __del__ =
lambda self:
None
2373 """get_keys() -> IMP::FloatKeys const &"""
2374 return _IMP_em2d.ProjectionParameters_get_keys()
2376 get_keys = staticmethod(get_keys)
2378 def set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values):
2379 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
2380 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values)
2383 def get_is_setup(*args):
2385 get_is_setup(_ParticleAdaptor p) -> bool
2386 get_is_setup(Model m, ParticleIndex pi) -> bool
2388 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2390 get_is_setup = staticmethod(get_is_setup)
2392 def get_parameters_optimized(self):
2393 """get_parameters_optimized(ProjectionParameters self) -> bool"""
2394 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
2397 def get_translation(self):
2398 """get_translation(ProjectionParameters self) -> Vector3D"""
2399 return _IMP_em2d.ProjectionParameters_get_translation(self)
2402 def set_translation(self, v):
2403 """set_translation(ProjectionParameters self, Vector3D v)"""
2404 return _IMP_em2d.ProjectionParameters_set_translation(self, v)
2407 def get_rotation(self):
2408 """get_rotation(ProjectionParameters self) -> Rotation3D"""
2409 return _IMP_em2d.ProjectionParameters_get_rotation(self)
2412 def set_rotation(self, R):
2413 """set_rotation(ProjectionParameters self, Rotation3D R)"""
2414 return _IMP_em2d.ProjectionParameters_set_rotation(self, R)
2417 def set_parameters_optimized(self, tf):
2418 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
2419 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, tf)
2422 def get_quaternion_1(self):
2423 """get_quaternion_1(ProjectionParameters self) -> double"""
2424 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
2427 def set_quaternion_1(self, t):
2428 """set_quaternion_1(ProjectionParameters self, double t)"""
2429 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, t)
2432 def get_quaternion_2(self):
2433 """get_quaternion_2(ProjectionParameters self) -> double"""
2434 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
2437 def set_quaternion_2(self, t):
2438 """set_quaternion_2(ProjectionParameters self, double t)"""
2439 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, t)
2442 def get_quaternion_3(self):
2443 """get_quaternion_3(ProjectionParameters self) -> double"""
2444 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
2447 def set_quaternion_3(self, t):
2448 """set_quaternion_3(ProjectionParameters self, double t)"""
2449 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, t)
2452 def get_quaternion_4(self):
2453 """get_quaternion_4(ProjectionParameters self) -> double"""
2454 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
2457 def set_quaternion_4(self, t):
2458 """set_quaternion_4(ProjectionParameters self, double t)"""
2459 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, t)
2462 def get_translation_x(self):
2463 """get_translation_x(ProjectionParameters self) -> double"""
2464 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
2467 def set_translation_x(self, t):
2468 """set_translation_x(ProjectionParameters self, double t)"""
2469 return _IMP_em2d.ProjectionParameters_set_translation_x(self, t)
2472 def get_translation_y(self):
2473 """get_translation_y(ProjectionParameters self) -> double"""
2474 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
2477 def set_translation_y(self, t):
2478 """set_translation_y(ProjectionParameters self, double t)"""
2479 return _IMP_em2d.ProjectionParameters_set_translation_y(self, t)
2482 def add_attribute(self, *args):
2484 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
2485 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
2486 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
2487 add_attribute(ProjectionParameters self, FloatsKey a0, IMP::Floats a1)
2488 add_attribute(ProjectionParameters self, IntsKey a0, IMP::Ints a1)
2489 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
2490 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
2491 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
2493 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
2496 def get_value(self, *args):
2498 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
2499 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
2500 get_value(ProjectionParameters self, FloatsKey a0) -> IMP::Floats
2501 get_value(ProjectionParameters self, IntsKey a0) -> IMP::Ints
2502 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
2503 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
2504 get_value(ProjectionParameters self, ObjectKey a0) -> Object
2506 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
2509 def set_value(self, *args):
2511 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
2512 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
2513 set_value(ProjectionParameters self, FloatsKey a0, IMP::Floats a1)
2514 set_value(ProjectionParameters self, IntsKey a0, IMP::Ints a1)
2515 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
2516 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
2517 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
2519 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
2522 def remove_attribute(self, *args):
2524 remove_attribute(ProjectionParameters self, FloatKey a0)
2525 remove_attribute(ProjectionParameters self, IntKey a0)
2526 remove_attribute(ProjectionParameters self, FloatsKey a0)
2527 remove_attribute(ProjectionParameters self, IntsKey a0)
2528 remove_attribute(ProjectionParameters self, StringKey a0)
2529 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
2530 remove_attribute(ProjectionParameters self, ObjectKey a0)
2532 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
2535 def has_attribute(self, *args):
2537 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
2538 has_attribute(ProjectionParameters self, IntKey a0) -> bool
2539 has_attribute(ProjectionParameters self, FloatsKey a0) -> bool
2540 has_attribute(ProjectionParameters self, IntsKey a0) -> bool
2541 has_attribute(ProjectionParameters self, StringKey a0) -> bool
2542 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
2543 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
2545 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
2548 def get_derivative(self, a0):
2549 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
2550 return _IMP_em2d.ProjectionParameters_get_derivative(self, a0)
2554 """get_name(ProjectionParameters self) -> std::string"""
2555 return _IMP_em2d.ProjectionParameters_get_name(self)
2558 def clear_caches(self):
2559 """clear_caches(ProjectionParameters self)"""
2560 return _IMP_em2d.ProjectionParameters_clear_caches(self)
2563 def set_name(self, a0):
2564 """set_name(ProjectionParameters self, std::string a0)"""
2565 return _IMP_em2d.ProjectionParameters_set_name(self, a0)
2569 """set_check_level(ProjectionParameters self, IMP::CheckLevel a0)"""
2570 return _IMP_em2d.ProjectionParameters_set_check_level(self, a0)
2573 def add_to_derivative(self, a0, a1, a2):
2574 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2575 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, a0, a1, a2)
2578 def set_is_optimized(self, a0, a1):
2579 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
2580 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, a0, a1)
2583 def get_is_optimized(self, a0):
2584 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
2585 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, a0)
2589 """get_check_level(ProjectionParameters self) -> IMP::CheckLevel"""
2590 return _IMP_em2d.ProjectionParameters_get_check_level(self)
2593 def __eq__(self, *args):
2595 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
2596 __eq__(ProjectionParameters self, Particle d) -> bool
2598 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
2601 def __ne__(self, *args):
2603 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
2604 __ne__(ProjectionParameters self, Particle d) -> bool
2606 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
2609 def __le__(self, *args):
2611 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
2612 __le__(ProjectionParameters self, Particle d) -> bool
2614 return _IMP_em2d.ProjectionParameters___le__(self, *args)
2617 def __lt__(self, *args):
2619 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
2620 __lt__(ProjectionParameters self, Particle d) -> bool
2622 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
2625 def __ge__(self, *args):
2627 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
2628 __ge__(ProjectionParameters self, Particle d) -> bool
2630 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
2633 def __gt__(self, *args):
2635 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
2636 __gt__(ProjectionParameters self, Particle d) -> bool
2638 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
2642 """__hash__(ProjectionParameters self) -> std::size_t"""
2643 return _IMP_em2d.ProjectionParameters___hash__(self)
2647 """__str__(ProjectionParameters self) -> std::string"""
2648 return _IMP_em2d.ProjectionParameters___str__(self)
2652 """__repr__(ProjectionParameters self) -> std::string"""
2653 return _IMP_em2d.ProjectionParameters___repr__(self)
2655 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
2656 ProjectionParameters_swigregister(ProjectionParameters)
2658 def ProjectionParameters_setup_particle(*args):
2660 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2661 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2663 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2665 def ProjectionParameters_get_keys():
2666 """ProjectionParameters_get_keys() -> IMP::FloatKeys const &"""
2667 return _IMP_em2d.ProjectionParameters_get_keys()
2669 def ProjectionParameters_get_is_setup(*args):
2671 get_is_setup(_ParticleAdaptor p) -> bool
2672 ProjectionParameters_get_is_setup(Model m, ParticleIndex pi) -> bool
2674 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2677 def __lshift__(out, n):
2678 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
2679 return _IMP_em2d.__lshift__(out, n)
2681 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class"""
2682 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2684 def __init__(self, p):
2685 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
2686 this = _IMP_em2d.new_ProjectionParametersScoreState(p)
2688 self.this.append(this)
2692 def do_before_evaluate(self):
2693 """do_before_evaluate(ProjectionParametersScoreState self)"""
2694 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
2697 def do_after_evaluate(self, da):
2698 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
2699 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, da)
2702 def do_get_inputs(self):
2703 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2704 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
2707 def do_get_outputs(self):
2708 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2709 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
2712 def get_version_info(self):
2713 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
2714 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
2718 """__str__(ProjectionParametersScoreState self) -> std::string"""
2719 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
2723 """__repr__(ProjectionParametersScoreState self) -> std::string"""
2724 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
2729 return _object_cast_to_ProjectionParametersScoreState(o)
2731 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
2732 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
2734 class ProjectionMask(object):
2735 """Proxy of C++ IMP::em2d::ProjectionMask class"""
2736 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2739 """__init__(IMP::em2d::ProjectionMask self) -> ProjectionMask"""
2740 this = _IMP_em2d.new_ProjectionMask()
2742 self.this.append(this)
2746 def apply(self, m, v):
2747 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
2748 return _IMP_em2d.ProjectionMask_apply(self, m, v)
2751 def show(self, *args):
2753 show(ProjectionMask self, _ostream out)
2754 show(ProjectionMask self)
2756 return _IMP_em2d.ProjectionMask_show(self, *args)
2758 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
2759 __del__ =
lambda self:
None
2762 """__str__(ProjectionMask self) -> std::string"""
2763 return _IMP_em2d.ProjectionMask___str__(self)
2767 """__repr__(ProjectionMask self) -> std::string"""
2768 return _IMP_em2d.ProjectionMask___repr__(self)
2771 def _get_as_binary(self):
2772 """_get_as_binary(ProjectionMask self) -> PyObject *"""
2773 return _IMP_em2d.ProjectionMask__get_as_binary(self)
2776 def _set_from_binary(self, p):
2777 """_set_from_binary(ProjectionMask self, PyObject * p)"""
2778 return _IMP_em2d.ProjectionMask__set_from_binary(self, p)
2781 def __getstate__(self):
2782 p = self._get_as_binary()
2783 if len(self.__dict__) > 1:
2784 d = self.__dict__.copy()
2789 def __setstate__(self, p):
2790 if not hasattr(self,
'this'):
2792 if isinstance(p, tuple):
2794 self.__dict__.update(d)
2795 return self._set_from_binary(p)
2797 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
2798 ProjectionMask_swigregister(ProjectionMask)
2802 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2803 return _IMP_em2d.do_place(mask, m, v)
2804 class MasksManager(object):
2805 """Proxy of C++ IMP::em2d::MasksManager class"""
2806 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2808 def __init__(self, *args):
2810 __init__(IMP::em2d::MasksManager self) -> MasksManager
2811 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2813 this = _IMP_em2d.new_MasksManager(*args)
2815 self.this.append(this)
2819 def setup_kernel(self, resolution, pixelsize):
2820 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2821 return _IMP_em2d.MasksManager_setup_kernel(self, resolution, pixelsize)
2824 def create_masks(self, ps):
2825 """create_masks(MasksManager self, IMP::ParticlesTemp const & ps)"""
2826 return _IMP_em2d.MasksManager_create_masks(self, ps)
2829 def create_mask(self, mass):
2830 """create_mask(MasksManager self, double mass)"""
2831 return _IMP_em2d.MasksManager_create_mask(self, mass)
2834 def find_mask(self, mass):
2835 """find_mask(MasksManager self, double mass) -> IMP::em2d::ProjectionMaskPtr"""
2836 return _IMP_em2d.MasksManager_find_mask(self, mass)
2839 def show(self, *args):
2841 show(MasksManager self, _ostream out)
2842 show(MasksManager self)
2844 return _IMP_em2d.MasksManager_show(self, *args)
2847 def get_number_of_masks(self):
2848 """get_number_of_masks(MasksManager self) -> unsigned int"""
2849 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2851 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2852 __del__ =
lambda self:
None
2855 """__str__(MasksManager self) -> std::string"""
2856 return _IMP_em2d.MasksManager___str__(self)
2860 """__repr__(MasksManager self) -> std::string"""
2861 return _IMP_em2d.MasksManager___repr__(self)
2864 def _get_as_binary(self):
2865 """_get_as_binary(MasksManager self) -> PyObject *"""
2866 return _IMP_em2d.MasksManager__get_as_binary(self)
2869 def _set_from_binary(self, p):
2870 """_set_from_binary(MasksManager self, PyObject * p)"""
2871 return _IMP_em2d.MasksManager__set_from_binary(self, p)
2874 def __getstate__(self):
2875 p = self._get_as_binary()
2876 if len(self.__dict__) > 1:
2877 d = self.__dict__.copy()
2882 def __setstate__(self, p):
2883 if not hasattr(self,
'this'):
2885 if isinstance(p, tuple):
2887 self.__dict__.update(d)
2888 return self._set_from_binary(p)
2890 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2891 MasksManager_swigregister(MasksManager)
2893 class ProjectingParameters(object):
2894 """Proxy of C++ IMP::em2d::ProjectingParameters class"""
2895 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2896 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2897 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2899 def __init__(self, *args):
2901 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2902 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2904 this = _IMP_em2d.new_ProjectingParameters(*args)
2906 self.this.append(this)
2910 def show(self, *args):
2912 show(ProjectingParameters self, _ostream out)
2913 show(ProjectingParameters self)
2915 return _IMP_em2d.ProjectingParameters_show(self, *args)
2919 """__str__(ProjectingParameters self) -> std::string"""
2920 return _IMP_em2d.ProjectingParameters___str__(self)
2924 """__repr__(ProjectingParameters self) -> std::string"""
2925 return _IMP_em2d.ProjectingParameters___repr__(self)
2928 def _get_as_binary(self):
2929 """_get_as_binary(ProjectingParameters self) -> PyObject *"""
2930 return _IMP_em2d.ProjectingParameters__get_as_binary(self)
2933 def _set_from_binary(self, p):
2934 """_set_from_binary(ProjectingParameters self, PyObject * p)"""
2935 return _IMP_em2d.ProjectingParameters__set_from_binary(self, p)
2938 def __getstate__(self):
2939 p = self._get_as_binary()
2940 if len(self.__dict__) > 1:
2941 d = self.__dict__.copy()
2946 def __setstate__(self, p):
2947 if not hasattr(self,
'this'):
2949 if isinstance(p, tuple):
2951 self.__dict__.update(d)
2952 return self._set_from_binary(p)
2954 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2955 __del__ =
lambda self:
None
2956 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2957 ProjectingParameters_swigregister(ProjectingParameters)
2959 class ProjectingOptions(ProjectingParameters):
2960 """Proxy of C++ IMP::em2d::ProjectingOptions class"""
2961 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2962 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2963 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2964 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2966 def __init__(self, *args):
2968 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2969 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2970 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2972 this = _IMP_em2d.new_ProjectingOptions(*args)
2974 self.this.append(this)
2978 def show(self, *args):
2980 show(ProjectingOptions self, _ostream out)
2981 show(ProjectingOptions self)
2983 return _IMP_em2d.ProjectingOptions_show(self, *args)
2987 """__str__(ProjectingOptions self) -> std::string"""
2988 return _IMP_em2d.ProjectingOptions___str__(self)
2992 """__repr__(ProjectingOptions self) -> std::string"""
2993 return _IMP_em2d.ProjectingOptions___repr__(self)
2995 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2996 __del__ =
lambda self:
None
2997 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2998 ProjectingOptions_swigregister(ProjectingOptions)
3003 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
3004 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
3005 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
3006 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
3008 return _IMP_em2d.get_projections(*args)
3012 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks, IMP::String name)
3013 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
3014 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
3016 return _IMP_em2d.get_projection(*args)
3019 """do_project_particles(IMP::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)"""
3020 return _IMP_em2d.do_project_particles(ps, m2, R, translation, options, masks)
3023 """create_evenly_distributed_projections(IMP::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
3024 return _IMP_em2d.create_evenly_distributed_projections(ps, n, options)
3028 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
3029 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
3031 return _IMP_em2d.do_project_vectors(*args)
3034 """get_enclosing_image_size(IMP::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
3035 return _IMP_em2d.get_enclosing_image_size(ps, pixel_size, slack)
3039 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
3040 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
3042 return _IMP_em2d.get_complete_alignment(input, m_to_align, apply)
3046 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
3047 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
3049 return _IMP_em2d.get_rotational_alignment(input, m_to_align, apply)
3053 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
3054 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
3056 return _IMP_em2d.get_translational_alignment(input, m_to_align, apply)
3060 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align, cv::Mat const & POLAR2, bool apply=False) -> ResultAlign2D
3061 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align, cv::Mat const & POLAR2) -> ResultAlign2D
3063 return _IMP_em2d.get_complete_alignment_no_preprocessing(input, INPUT, POLAR1, m_to_align, POLAR2, apply)
3066 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
3067 return _IMP_em2d.get_rotational_alignment_no_preprocessing(POLAR1, POLAR2)
3070 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
3071 return _IMP_em2d.get_translational_alignment_no_preprocessing(M1, M2)
3074 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
3075 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(center1, center2, AUTOC_POLAR1, AUTOC_POLAR2)
3079 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
3080 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
3082 return _IMP_em2d.write_vectors_as_pdb(*args)
3083 class Em2DRestraintParameters(ProjectingParameters):
3084 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class"""
3085 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3086 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
3087 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
3088 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
3089 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
3090 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
3091 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
3093 def __init__(self, *args):
3095 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
3096 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
3097 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
3099 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
3101 self.this.append(this)
3105 def show(self, *args):
3107 show(Em2DRestraintParameters self, _ostream out)
3108 show(Em2DRestraintParameters self)
3110 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
3114 """__str__(Em2DRestraintParameters self) -> std::string"""
3115 return _IMP_em2d.Em2DRestraintParameters___str__(self)
3119 """__repr__(Em2DRestraintParameters self) -> std::string"""
3120 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
3123 def _get_as_binary(self):
3124 """_get_as_binary(Em2DRestraintParameters self) -> PyObject *"""
3125 return _IMP_em2d.Em2DRestraintParameters__get_as_binary(self)
3128 def _set_from_binary(self, p):
3129 """_set_from_binary(Em2DRestraintParameters self, PyObject * p)"""
3130 return _IMP_em2d.Em2DRestraintParameters__set_from_binary(self, p)
3133 def __getstate__(self):
3134 p = self._get_as_binary()
3135 if len(self.__dict__) > 1:
3136 d = self.__dict__.copy()
3141 def __setstate__(self, p):
3142 if not hasattr(self,
'this'):
3144 if isinstance(p, tuple):
3146 self.__dict__.update(d)
3147 return self._set_from_binary(p)
3149 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
3150 __del__ =
lambda self:
None
3151 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
3152 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
3153 cvar = _IMP_em2d.cvar
3154 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
3155 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
3156 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
3159 """Proxy of C++ IMP::em2d::ProjectionFinder class"""
3160 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3163 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
3164 this = _IMP_em2d.new_ProjectionFinder()
3166 self.this.append(this)
3170 def setup(self, score_function, params):
3171 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
3172 return _IMP_em2d.ProjectionFinder_setup(self, score_function, params)
3175 def set_subjects(self, subjects):
3176 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
3177 return _IMP_em2d.ProjectionFinder_set_subjects(self, subjects)
3180 def set_projections(self, projections):
3181 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
3182 return _IMP_em2d.ProjectionFinder_set_projections(self, projections)
3185 def set_variance_images(self, variances):
3186 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
3187 return _IMP_em2d.ProjectionFinder_set_variance_images(self, variances)
3190 def set_model_particles(self, ps):
3191 """set_model_particles(ProjectionFinder self, IMP::ParticlesTemp const & ps)"""
3192 return _IMP_em2d.ProjectionFinder_set_model_particles(self, ps)
3195 def set_save_match_images(self, x):
3196 """set_save_match_images(ProjectionFinder self, bool x)"""
3197 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, x)
3200 def get_save_match_images(self):
3201 """get_save_match_images(ProjectionFinder self) -> bool"""
3202 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
3205 def set_fast_mode(self, n):
3206 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
3207 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, n)
3210 def get_registration_results(self):
3211 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
3212 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
3215 def get_coarse_registration(self):
3216 """get_coarse_registration(ProjectionFinder self)"""
3217 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
3220 def get_complete_registration(self):
3221 """get_complete_registration(ProjectionFinder self)"""
3222 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
3226 """get_global_score(ProjectionFinder self) -> double"""
3227 return _IMP_em2d.ProjectionFinder_get_global_score(self)
3230 def show(self, out):
3231 """show(ProjectionFinder self, _ostream out)"""
3232 return _IMP_em2d.ProjectionFinder_show(self, out)
3235 def get_preprocessing_time(self):
3236 """get_preprocessing_time(ProjectionFinder self) -> double"""
3237 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
3240 def get_coarse_registration_time(self):
3241 """get_coarse_registration_time(ProjectionFinder self) -> double"""
3242 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
3245 def get_fine_registration_time(self):
3246 """get_fine_registration_time(ProjectionFinder self) -> double"""
3247 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
3250 def get_number_of_subjects(self):
3251 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
3252 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
3255 def set_number_of_class_averages_members(self, n_members):
3256 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
3257 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, n_members)
3260 def get_number_of_projections(self):
3261 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
3262 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
3265 def get_version_info(self):
3266 """get_version_info(ProjectionFinder self) -> VersionInfo"""
3267 return _IMP_em2d.ProjectionFinder_get_version_info(self)
3271 """__str__(ProjectionFinder self) -> std::string"""
3272 return _IMP_em2d.ProjectionFinder___str__(self)
3276 """__repr__(ProjectionFinder self) -> std::string"""
3277 return _IMP_em2d.ProjectionFinder___repr__(self)
3282 return _object_cast_to_ProjectionFinder(o)
3284 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
3285 ProjectionFinder_swigregister(ProjectionFinder)
3288 """Proxy of C++ IMP::em2d::Em2DRestraint class"""
3289 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3291 def __init__(self, m):
3292 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
3293 this = _IMP_em2d.new_Em2DRestraint(m)
3295 self.this.append(this)
3299 def setup(self, score_function, params):
3300 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
3301 return _IMP_em2d.Em2DRestraint_setup(self, score_function, params)
3304 def set_particles(self, particles_container):
3305 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
3306 return _IMP_em2d.Em2DRestraint_set_particles(self, particles_container)
3309 def set_images(self, em_images):
3310 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
3311 return _IMP_em2d.Em2DRestraint_set_images(self, em_images)
3314 def set_variance_images(self, variance_images):
3315 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
3316 return _IMP_em2d.Em2DRestraint_set_variance_images(self, variance_images)
3319 def set_fast_mode(self, n):
3320 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
3321 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, n)
3324 def set_coarse_registration_mode(self, opt):
3325 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
3326 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, opt)
3329 def get_registration_results(self):
3330 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
3331 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
3334 def do_get_inputs(self):
3335 """do_get_inputs(Em2DRestraint self) -> IMP::ModelObjectsTemp"""
3336 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
3339 def get_version_info(self):
3340 """get_version_info(Em2DRestraint self) -> VersionInfo"""
3341 return _IMP_em2d.Em2DRestraint_get_version_info(self)
3345 """__str__(Em2DRestraint self) -> std::string"""
3346 return _IMP_em2d.Em2DRestraint___str__(self)
3350 """__repr__(Em2DRestraint self) -> std::string"""
3351 return _IMP_em2d.Em2DRestraint___repr__(self)
3356 return _object_cast_to_Em2DRestraint(o)
3358 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
3359 Em2DRestraint_swigregister(Em2DRestraint)
3361 class ClusterSet(object):
3362 """Proxy of C++ IMP::em2d::ClusterSet class"""
3363 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3365 def __init__(self, *args):
3367 __init__(IMP::em2d::ClusterSet self) -> ClusterSet
3368 __init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet
3370 this = _IMP_em2d.new_ClusterSet(*args)
3372 self.this.append(this)
3376 def do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters):
3377 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
3378 return _IMP_em2d.ClusterSet_do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters)
3381 def get_cluster_elements(self, id):
3382 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
3383 return _IMP_em2d.ClusterSet_get_cluster_elements(self, id)
3386 def get_clusters_below_cutoff(self, cutoff):
3387 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
3388 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, cutoff)
3391 def get_cluster_formed_at_step(self, step):
3392 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
3393 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, step)
3396 def get_distance_at_step(self, step):
3397 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
3398 return _IMP_em2d.ClusterSet_get_distance_at_step(self, step)
3401 def get_id_for_cluster_at_step(self, step):
3402 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
3403 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, step)
3406 def get_linkage_matrix(self):
3407 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
3408 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
3411 def get_linkage_matrix_in_matlab_format(self):
3412 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
3413 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
3416 def get_number_of_steps(self):
3417 """get_number_of_steps(ClusterSet self) -> unsigned int"""
3418 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
3421 def show(self, out):
3422 """show(ClusterSet self, _ostream out)"""
3423 return _IMP_em2d.ClusterSet_show(self, out)
3427 """__str__(ClusterSet self) -> std::string"""
3428 return _IMP_em2d.ClusterSet___str__(self)
3432 """__repr__(ClusterSet self) -> std::string"""
3433 return _IMP_em2d.ClusterSet___repr__(self)
3436 def _get_as_binary(self):
3437 """_get_as_binary(ClusterSet self) -> PyObject *"""
3438 return _IMP_em2d.ClusterSet__get_as_binary(self)
3441 def _set_from_binary(self, p):
3442 """_set_from_binary(ClusterSet self, PyObject * p)"""
3443 return _IMP_em2d.ClusterSet__set_from_binary(self, p)
3446 def __getstate__(self):
3447 p = self._get_as_binary()
3448 if len(self.__dict__) > 1:
3449 d = self.__dict__.copy()
3454 def __setstate__(self, p):
3455 if not hasattr(self,
'this'):
3457 if isinstance(p, tuple):
3459 self.__dict__.update(d)
3460 return self._set_from_binary(p)
3462 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
3463 __del__ =
lambda self:
None
3464 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
3465 ClusterSet_swigregister(ClusterSet)
3467 class SingleLinkage(object):
3468 """Proxy of C++ IMP::em2d::SingleLinkage class"""
3469 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3472 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
3473 this = _IMP_em2d.new_SingleLinkage()
3475 self.this.append(this)
3479 def __call__(self, id1, id2, cluster_set, distances):
3480 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
3481 return _IMP_em2d.SingleLinkage___call__(self, id1, id2, cluster_set, distances)
3484 def show(self, out):
3485 """show(SingleLinkage self, _ostream out)"""
3486 return _IMP_em2d.SingleLinkage_show(self, out)
3490 """__str__(SingleLinkage self) -> std::string"""
3491 return _IMP_em2d.SingleLinkage___str__(self)
3495 """__repr__(SingleLinkage self) -> std::string"""
3496 return _IMP_em2d.SingleLinkage___repr__(self)
3499 def _get_as_binary(self):
3500 """_get_as_binary(SingleLinkage self) -> PyObject *"""
3501 return _IMP_em2d.SingleLinkage__get_as_binary(self)
3504 def _set_from_binary(self, p):
3505 """_set_from_binary(SingleLinkage self, PyObject * p)"""
3506 return _IMP_em2d.SingleLinkage__set_from_binary(self, p)
3509 def __getstate__(self):
3510 p = self._get_as_binary()
3511 if len(self.__dict__) > 1:
3512 d = self.__dict__.copy()
3517 def __setstate__(self, p):
3518 if not hasattr(self,
'this'):
3520 if isinstance(p, tuple):
3522 self.__dict__.update(d)
3523 return self._set_from_binary(p)
3525 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
3526 __del__ =
lambda self:
None
3527 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
3528 SingleLinkage_swigregister(SingleLinkage)
3530 class CompleteLinkage(object):
3531 """Proxy of C++ IMP::em2d::CompleteLinkage class"""
3532 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3535 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
3536 this = _IMP_em2d.new_CompleteLinkage()
3538 self.this.append(this)
3542 def __call__(self, id1, id2, cluster_set, distances):
3543 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
3544 return _IMP_em2d.CompleteLinkage___call__(self, id1, id2, cluster_set, distances)
3547 def show(self, out):
3548 """show(CompleteLinkage self, _ostream out)"""
3549 return _IMP_em2d.CompleteLinkage_show(self, out)
3553 """__str__(CompleteLinkage self) -> std::string"""
3554 return _IMP_em2d.CompleteLinkage___str__(self)
3558 """__repr__(CompleteLinkage self) -> std::string"""
3559 return _IMP_em2d.CompleteLinkage___repr__(self)
3562 def _get_as_binary(self):
3563 """_get_as_binary(CompleteLinkage self) -> PyObject *"""
3564 return _IMP_em2d.CompleteLinkage__get_as_binary(self)
3567 def _set_from_binary(self, p):
3568 """_set_from_binary(CompleteLinkage self, PyObject * p)"""
3569 return _IMP_em2d.CompleteLinkage__set_from_binary(self, p)
3572 def __getstate__(self):
3573 p = self._get_as_binary()
3574 if len(self.__dict__) > 1:
3575 d = self.__dict__.copy()
3580 def __setstate__(self, p):
3581 if not hasattr(self,
'this'):
3583 if isinstance(p, tuple):
3585 self.__dict__.update(d)
3586 return self._set_from_binary(p)
3588 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
3589 __del__ =
lambda self:
None
3590 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
3591 CompleteLinkage_swigregister(CompleteLinkage)
3593 class AverageDistanceLinkage(object):
3594 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class"""
3595 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3598 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
3599 this = _IMP_em2d.new_AverageDistanceLinkage()
3601 self.this.append(this)
3605 def __call__(self, id1, id2, cluster_set, distances):
3606 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
3607 return _IMP_em2d.AverageDistanceLinkage___call__(self, id1, id2, cluster_set, distances)
3610 def show(self, out):
3611 """show(AverageDistanceLinkage self, _ostream out)"""
3612 return _IMP_em2d.AverageDistanceLinkage_show(self, out)
3616 """__str__(AverageDistanceLinkage self) -> std::string"""
3617 return _IMP_em2d.AverageDistanceLinkage___str__(self)
3621 """__repr__(AverageDistanceLinkage self) -> std::string"""
3622 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
3625 def _get_as_binary(self):
3626 """_get_as_binary(AverageDistanceLinkage self) -> PyObject *"""
3627 return _IMP_em2d.AverageDistanceLinkage__get_as_binary(self)
3630 def _set_from_binary(self, p):
3631 """_set_from_binary(AverageDistanceLinkage self, PyObject * p)"""
3632 return _IMP_em2d.AverageDistanceLinkage__set_from_binary(self, p)
3635 def __getstate__(self):
3636 p = self._get_as_binary()
3637 if len(self.__dict__) > 1:
3638 d = self.__dict__.copy()
3643 def __setstate__(self, p):
3644 if not hasattr(self,
'this'):
3646 if isinstance(p, tuple):
3648 self.__dict__.update(d)
3649 return self._set_from_binary(p)
3651 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
3652 __del__ =
lambda self:
None
3653 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
3654 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
3657 """Proxy of C++ IMP::em2d::CollisionCrossSection class"""
3658 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3660 def __init__(self, n_projections, resolution, pixel_size, projection_image_size):
3661 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
3662 this = _IMP_em2d.new_CollisionCrossSection(n_projections, resolution, pixel_size, projection_image_size)
3664 self.this.append(this)
3668 def set_model_particles(self, ps):
3669 """set_model_particles(CollisionCrossSection self, IMP::ParticlesTemp const & ps)"""
3670 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, ps)
3674 """get_ccs(CollisionCrossSection self) -> double"""
3675 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
3678 def show(self, out):
3679 """show(CollisionCrossSection self, _ostream out)"""
3680 return _IMP_em2d.CollisionCrossSection_show(self, out)
3683 def get_version_info(self):
3684 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
3685 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
3689 """__str__(CollisionCrossSection self) -> std::string"""
3690 return _IMP_em2d.CollisionCrossSection___str__(self)
3694 """__repr__(CollisionCrossSection self) -> std::string"""
3695 return _IMP_em2d.CollisionCrossSection___repr__(self)
3700 return _object_cast_to_CollisionCrossSection(o)
3702 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
3703 CollisionCrossSection_swigregister(CollisionCrossSection)
3706 """Proxy of C++ IMP::em2d::GridStates class"""
3707 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3709 def __init__(self, *args):
3711 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::String const & name) -> GridStates
3712 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
3714 this = _IMP_em2d.new_GridStates(*args)
3716 self.this.append(this)
3720 def get_position(self, i):
3721 """get_position(GridStates self, unsigned int i) -> Vector3D"""
3722 return _IMP_em2d.GridStates_get_position(self, i)
3725 def get_orientation(self, i):
3726 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
3727 return _IMP_em2d.GridStates_get_orientation(self, i)
3730 def get_version_info(self):
3731 """get_version_info(GridStates self) -> VersionInfo"""
3732 return _IMP_em2d.GridStates_get_version_info(self)
3736 """__str__(GridStates self) -> std::string"""
3737 return _IMP_em2d.GridStates___str__(self)
3741 """__repr__(GridStates self) -> std::string"""
3742 return _IMP_em2d.GridStates___repr__(self)
3747 return _object_cast_to_GridStates(o)
3749 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
3750 GridStates_swigregister(GridStates)
3752 class ProjectionStates(GridStates):
3753 """Proxy of C++ IMP::em2d::ProjectionStates class"""
3754 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3756 def __init__(self, *args):
3758 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections, IMP::String const & name) -> ProjectionStates
3759 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections) -> ProjectionStates
3761 this = _IMP_em2d.new_ProjectionStates(*args)
3763 self.this.append(this)
3768 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
3769 return _IMP_em2d.ProjectionStates_get_projection(self, i)
3773 """__str__(ProjectionStates self) -> std::string"""
3774 return _IMP_em2d.ProjectionStates___str__(self)
3778 """__repr__(ProjectionStates self) -> std::string"""
3779 return _IMP_em2d.ProjectionStates___repr__(self)
3784 return _object_cast_to_ProjectionStates(o)
3786 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
3787 ProjectionStates_swigregister(ProjectionStates)
3790 """Proxy of C++ IMP::em2d::DistanceFilter class"""
3791 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3793 def __init__(self, subset_to_act_on, subset_to_restrain, ps_table, max_distance):
3794 """__init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table, double max_distance) -> DistanceFilter"""
3795 this = _IMP_em2d.new_DistanceFilter(subset_to_act_on, subset_to_restrain, ps_table, max_distance)
3797 self.this.append(this)
3801 def show(self, *args):
3803 show(DistanceFilter self, _ostream out)
3804 show(DistanceFilter self)
3806 return _IMP_em2d.DistanceFilter_show(self, *args)
3809 def get_version_info(self):
3810 """get_version_info(DistanceFilter self) -> VersionInfo"""
3811 return _IMP_em2d.DistanceFilter_get_version_info(self)
3815 """__str__(DistanceFilter self) -> std::string"""
3816 return _IMP_em2d.DistanceFilter___str__(self)
3820 """__repr__(DistanceFilter self) -> std::string"""
3821 return _IMP_em2d.DistanceFilter___repr__(self)
3826 return _object_cast_to_DistanceFilter(o)
3828 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
3829 DistanceFilter_swigregister(DistanceFilter)
3832 """Proxy of C++ IMP::em2d::DistanceFilterTable class"""
3833 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3835 def __init__(self, subset_to_act_on, ps_table, max_distance):
3836 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
3837 this = _IMP_em2d.new_DistanceFilterTable(subset_to_act_on, ps_table, max_distance)
3839 self.this.append(this)
3843 def show(self, *args):
3845 show(DistanceFilterTable self, _ostream out)
3846 show(DistanceFilterTable self)
3848 return _IMP_em2d.DistanceFilterTable_show(self, *args)
3851 def get_version_info(self):
3852 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
3853 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
3857 """__str__(DistanceFilterTable self) -> std::string"""
3858 return _IMP_em2d.DistanceFilterTable___str__(self)
3862 """__repr__(DistanceFilterTable self) -> std::string"""
3863 return _IMP_em2d.DistanceFilterTable___repr__(self)
3868 return _object_cast_to_DistanceFilterTable(o)
3870 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
3871 DistanceFilterTable_swigregister(DistanceFilterTable)
3873 class IntsOrder(object):
3874 """Proxy of C++ IMP::em2d::IntsOrder class"""
3875 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3876 __repr__ = _swig_repr
3878 def __call__(self, a, b):
3879 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
3880 return _IMP_em2d.IntsOrder___call__(self, a, b)
3884 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
3885 this = _IMP_em2d.new_IntsOrder()
3887 self.this.append(this)
3890 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
3891 __del__ =
lambda self:
None
3892 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
3893 IntsOrder_swigregister(IntsOrder)
3896 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class"""
3897 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3899 def get_version_info(self):
3900 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
3901 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
3904 def __init__(self, scf, rbs, img):
3905 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
3906 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(scf, rbs, img)
3908 self.this.append(this)
3912 def set_projecting_parameters(self, p):
3913 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
3914 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, p)
3917 def set_orientations(self, rb, rots):
3918 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
3919 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, rb, rots)
3922 def get_number_of_masks(self, rb):
3923 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
3924 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, rb)
3928 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
3929 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
3933 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
3934 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
3939 return _object_cast_to_RigidBodiesImageFitRestraint(o)
3941 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
3942 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
3946 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
3947 return _IMP_em2d.get_unique_index(rot)
3949 """Proxy of C++ IMP::em2d::RelativePositionMover class"""
3950 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3952 def __init__(self, d, max_translation, max_rotation):
3953 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
3954 this = _IMP_em2d.new_RelativePositionMover(d, max_translation, max_rotation)
3956 self.this.append(this)
3960 def add_internal_transformations(self, d, transforms):
3961 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
3962 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, d, transforms)
3965 def set_random_move_probability(self, p):
3966 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
3967 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, p)
3971 """__str__(RelativePositionMover self) -> std::string"""
3972 return _IMP_em2d.RelativePositionMover___str__(self)
3976 """__repr__(RelativePositionMover self) -> std::string"""
3977 return _IMP_em2d.RelativePositionMover___repr__(self)
3982 return _object_cast_to_RelativePositionMover(o)
3984 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
3985 RelativePositionMover_swigregister(RelativePositionMover)
3988 """Proxy of C++ IMP::em2d::DummyRestraint class"""
3989 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3991 def __init__(self, p, q):
3992 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
3993 this = _IMP_em2d.new_DummyRestraint(p, q)
3995 self.this.append(this)
3999 def show(self, *args):
4001 show(DummyRestraint self, _ostream out)
4002 show(DummyRestraint self)
4004 return _IMP_em2d.DummyRestraint_show(self, *args)
4007 def do_get_inputs(self):
4008 """do_get_inputs(DummyRestraint self) -> IMP::ModelObjectsTemp"""
4009 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
4012 def get_version_info(self):
4013 """get_version_info(DummyRestraint self) -> VersionInfo"""
4014 return _IMP_em2d.DummyRestraint_get_version_info(self)
4018 """__str__(DummyRestraint self) -> std::string"""
4019 return _IMP_em2d.DummyRestraint___str__(self)
4023 """__repr__(DummyRestraint self) -> std::string"""
4024 return _IMP_em2d.DummyRestraint___repr__(self)
4029 return _object_cast_to_DummyRestraint(o)
4031 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
4032 DummyRestraint_swigregister(DummyRestraint)
4035 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class"""
4036 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4038 def __init__(self, sc):
4039 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
4040 this = _IMP_em2d.new_ParticlesDummyRestraint(sc)
4042 self.this.append(this)
4046 def show(self, *args):
4048 show(ParticlesDummyRestraint self, _ostream out)
4049 show(ParticlesDummyRestraint self)
4051 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
4054 def do_get_inputs(self):
4055 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::ModelObjectsTemp"""
4056 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
4059 def get_version_info(self):
4060 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
4061 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
4065 """__str__(ParticlesDummyRestraint self) -> std::string"""
4066 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
4070 """__repr__(ParticlesDummyRestraint self) -> std::string"""
4071 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
4076 return _object_cast_to_ParticlesDummyRestraint(o)
4078 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
4079 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
4082 """Proxy of C++ IMP::em2d::PCAFitRestraint class"""
4083 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4085 def __init__(self, particles, image_files, pixel_size, resolution=10.0, projection_number=100, reuse_direction=False, n_components=1):
4087 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100, bool reuse_direction=False, unsigned int n_components=1) -> PCAFitRestraint
4088 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100, bool reuse_direction=False) -> PCAFitRestraint
4089 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100) -> PCAFitRestraint
4090 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
4091 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
4093 this = _IMP_em2d.new_PCAFitRestraint(particles, image_files, pixel_size, resolution, projection_number, reuse_direction, n_components)
4095 self.this.append(this)
4099 def get_projection_number(self):
4100 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
4101 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
4104 def set_projection_number(self, n):
4105 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
4106 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, n)
4109 def get_transformation(self, image_number):
4110 """get_transformation(PCAFitRestraint self, unsigned int image_number) -> Transformation3D"""
4111 return _IMP_em2d.PCAFitRestraint_get_transformation(self, image_number)
4115 """get_cross_correlation_coefficient(PCAFitRestraint self, unsigned int image_number) -> double"""
4116 return _IMP_em2d.PCAFitRestraint_get_cross_correlation_coefficient(self, image_number)
4119 def write_best_projections(self, file_name, evaluate=False):
4121 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
4122 write_best_projections(PCAFitRestraint self, std::string file_name)
4124 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, file_name, evaluate)
4127 def do_get_inputs(self):
4128 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
4129 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
4132 def get_version_info(self):
4133 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
4134 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
4138 """__str__(PCAFitRestraint self) -> std::string"""
4139 return _IMP_em2d.PCAFitRestraint___str__(self)
4143 """__repr__(PCAFitRestraint self) -> std::string"""
4144 return _IMP_em2d.PCAFitRestraint___repr__(self)
4149 return _object_cast_to_em2dPCAFitRestraint(o)
4151 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
4152 PCAFitRestraint_swigregister(PCAFitRestraint)
4155 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class"""
4156 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4157 __repr__ = _swig_repr
4159 def __init__(self, *args):
4161 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
4162 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
4163 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
4165 this = _IMP_em2d.new_ResultAlign2D(*args)
4167 self.this.append(this)
4170 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
4171 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
4175 return str((self.first, self.second))
4176 def __getitem__(self, index):
4181 def __setitem__(self, index, val):
4186 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
4187 __del__ =
lambda self:
None
4188 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
4189 ResultAlign2D_swigregister(ResultAlign2D)
4192 def _do_hierarchical_clustering_single_linkage(distances):
4193 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
4194 return _IMP_em2d._do_hierarchical_clustering_single_linkage(distances)
4196 def _do_hierarchical_clustering_complete_linkage(distances):
4197 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
4198 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(distances)
4200 def _do_hierarchical_clustering_average_distance_linkage(distances):
4201 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
4202 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(distances)
4204 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
4205 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
4206 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
4210 """get_module_version() -> std::string const"""
4211 return _IMP_em2d.get_module_version()
4214 """get_example_path(std::string fname) -> std::string"""
4215 return _IMP_em2d.get_example_path(fname)
4218 """get_data_path(std::string fname) -> std::string"""
4219 return _IMP_em2d.get_data_path(fname)
4221 from .
import _version_check
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.
void apply_threshold(cv::Mat &m, cv::Mat &result, double threshold=0.0)
em2d::Images get_projections(const ParticlesTemp &ps, const algebra::SphericalVector3Ds &vs, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
std::string get_module_version()
Return the version of this module, as a string.
IMPEM2D_BEGIN_NAMESPACE Strings read_selection_file(String fn)
Reads a selection file.
ResultAlign2D get_complete_alignment_with_centers_no_preprocessing(const algebra::Vector2D ¢er1, const algebra::Vector2D ¢er2, 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)
void apply_diffusion_filter(Image *input, Image *filtered, double beta, double pixelsize, int time_steps)
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)
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.
ScoreStates maintain invariants in the Model.
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 ¢er, 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)
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
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 ¢er)
RegistrationResults read_registration_results(const String &filename)
Reads a set of registration results.
void get_diffusion_filtering_partial_derivative(const cv::Mat &m, cv::Mat &der, double dx, double dy, double ang)
Ints get_unique_index(const algebra::Rotation3D &rot)
Map a rotation to a list of 4 "unique" integers.
double get_global_score(const RegistrationResults &RRs)
void do_place(cv::Mat &mask, cv::Mat &m, const algebra::Vector2D &v)
void do_morphologic_reconstruction(const cv::Mat &mask, cv::Mat &marker, int neighbors_mode=4)
morphologic grayscale reconstruction (L Vincent, 1993)
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
Divide-and-conquer inferential optimization in discrete space.
Support for small angle X-ray scattering (SAXS) data.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...
A restraint is a term in an IMP ScoringFunction.
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.