10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_em2d', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_em2d', fp, pathname, description)
32 _IMP_em2d = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_EM2D_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
125 return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
130 incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
131 incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
133 return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
138 decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
139 decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
141 return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, x)
150 """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
151 return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, x)
155 """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
156 return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
160 """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
161 return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
165 """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
166 return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
170 """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
171 return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
176 return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
181 return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
186 return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
191 return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
196 return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
201 return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
207 __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
213 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
214 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
222 _IMP_em2d.IMP_DEBUG_swigconstant(_IMP_em2d)
223 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
225 _IMP_em2d.IMP_RELEASE_swigconstant(_IMP_em2d)
226 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
228 _IMP_em2d.IMP_SILENT_swigconstant(_IMP_em2d)
229 IMP_SILENT = _IMP_em2d.IMP_SILENT
231 _IMP_em2d.IMP_PROGRESS_swigconstant(_IMP_em2d)
232 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
234 _IMP_em2d.IMP_TERSE_swigconstant(_IMP_em2d)
235 IMP_TERSE = _IMP_em2d.IMP_TERSE
237 _IMP_em2d.IMP_VERBOSE_swigconstant(_IMP_em2d)
238 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
240 _IMP_em2d.IMP_MEMORY_swigconstant(_IMP_em2d)
241 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
243 _IMP_em2d.IMP_NONE_swigconstant(_IMP_em2d)
244 IMP_NONE = _IMP_em2d.IMP_NONE
246 _IMP_em2d.IMP_USAGE_swigconstant(_IMP_em2d)
247 IMP_USAGE = _IMP_em2d.IMP_USAGE
249 _IMP_em2d.IMP_INTERNAL_swigconstant(_IMP_em2d)
250 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
252 _IMP_em2d.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em2d)
253 IMP_KERNEL_HAS_LOG4CXX = _IMP_em2d.IMP_KERNEL_HAS_LOG4CXX
255 _IMP_em2d.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_em2d)
256 IMP_COMPILER_HAS_AUTO = _IMP_em2d.IMP_COMPILER_HAS_AUTO
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_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
262 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
264 _IMP_em2d.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em2d)
265 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em2d.IMP_KERNEL_HAS_GPERFTOOLS
267 _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em2d)
268 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
270 _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em2d)
271 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
273 _IMP_em2d.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
274 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
276 class _DirectorObjects(object):
277 """@internal Simple class to keep references to director objects
278 to prevent premature deletion."""
281 def register(self, obj):
282 """Take a reference to a director object; will only work for
283 refcounted C++ classes"""
284 if hasattr(obj,
'get_ref_count'):
285 self._objects.append(obj)
287 """Only drop our reference and allow cleanup by Python if no other
288 Python references exist (we hold 3 references: one in self._objects,
289 one in x, and one in the argument list for getrefcount) *and* no
290 other C++ references exist (the Python object always holds one)"""
291 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
292 or x.get_ref_count() > 1]
296 def get_object_count(self):
297 """Get number of director objects (useful for testing only)"""
298 return len(self._objects)
299 _director_objects = _DirectorObjects()
301 class _ostream(object):
302 """Proxy of C++ std::ostream class"""
303 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
305 def __init__(self, *args, **kwargs):
306 raise AttributeError(
"No constructor defined")
307 __repr__ = _swig_repr
309 def write(self, osa_buf):
310 """write(_ostream self, char const * osa_buf)"""
311 return _IMP_em2d._ostream_write(self, osa_buf)
313 _ostream_swigregister = _IMP_em2d._ostream_swigregister
314 _ostream_swigregister(_ostream)
317 _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_em2d)
318 IMP_COMPILER_HAS_OVERRIDE = _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE
320 _IMP_em2d.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_em2d)
321 IMP_COMPILER_HAS_FINAL = _IMP_em2d.IMP_COMPILER_HAS_FINAL
323 _IMP_em2d.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em2d)
324 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
327 _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
328 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
330 _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
331 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
333 _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
334 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
336 _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
337 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
339 _IMP_em2d.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
340 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
343 _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
344 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
346 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
347 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
349 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
350 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
352 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
353 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
355 _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
356 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
358 _IMP_em2d.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em2d)
359 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
361 _IMP_em2d.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em2d)
362 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
364 _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em2d)
365 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
368 _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
369 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
371 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
372 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
374 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
375 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
377 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
378 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
380 _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
381 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
383 _IMP_em2d.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em2d)
384 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
386 _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em2d)
387 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
390 _IMP_em2d.IMP_GSL_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
391 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
393 _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
394 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
396 _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
397 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
399 _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
400 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
402 _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
403 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
405 _IMP_em2d.IMP_GSL_HAS_CGAL_swigconstant(_IMP_em2d)
406 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
408 _IMP_em2d.IMPGSL_SHOW_WARNINGS_swigconstant(_IMP_em2d)
409 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
412 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
413 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
415 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
416 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
418 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
421 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
422 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
424 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
425 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
427 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em2d)
428 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
430 _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em2d)
431 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5
433 _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em2d)
434 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
437 _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
438 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
440 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
441 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
443 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
444 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
446 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
447 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
449 _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
450 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
452 _IMP_em2d.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em2d)
453 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
455 _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em2d)
456 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
459 _IMP_em2d.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
460 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
462 _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
463 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
465 _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
466 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
468 _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
469 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
471 _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
472 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
474 _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
475 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
477 _IMP_em2d.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em2d)
478 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
480 _IMP_em2d.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em2d)
481 IMP_CORE_HAS_HDF5 = _IMP_em2d.IMP_CORE_HAS_HDF5
483 _IMP_em2d.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em2d)
484 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
487 _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em2d)
488 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
490 _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
491 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
493 _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
494 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
496 _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
497 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
499 _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
500 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
502 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
503 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
505 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
506 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
508 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
509 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
511 _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
512 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
514 _IMP_em2d.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em2d)
515 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
517 _IMP_em2d.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em2d)
518 IMP_CONTAINER_HAS_HDF5 = _IMP_em2d.IMP_CONTAINER_HAS_HDF5
520 _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em2d)
521 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
524 _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
525 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
527 _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
528 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
530 _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
531 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
533 _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
534 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
536 _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
537 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
539 _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
540 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
542 _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
543 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
545 _IMP_em2d.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em2d)
546 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
548 _IMP_em2d.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em2d)
549 IMP_ATOM_HAS_HDF5 = _IMP_em2d.IMP_ATOM_HAS_HDF5
551 _IMP_em2d.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em2d)
552 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
554 _IMP_em2d.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em2d)
555 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
557 _IMP_em2d.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em2d)
558 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
560 _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em2d)
561 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
564 _IMP_em2d.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
565 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
567 _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em2d)
568 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
570 _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em2d)
571 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
573 _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
574 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
576 _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
577 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
579 _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
580 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
582 _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
583 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
585 _IMP_em2d.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
586 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
588 _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
589 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
591 _IMP_em2d.IMP_EM_HAS_CGAL_swigconstant(_IMP_em2d)
592 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
594 _IMP_em2d.IMP_EM_HAS_HDF5_swigconstant(_IMP_em2d)
595 IMP_EM_HAS_HDF5 = _IMP_em2d.IMP_EM_HAS_HDF5
597 _IMP_em2d.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em2d)
598 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
601 _IMP_em2d.IMP_RMF_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
602 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
604 _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
605 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
607 _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
608 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
610 _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
611 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
613 _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
614 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
616 _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
617 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
619 _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
620 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
622 _IMP_em2d.IMP_RMF_HAS_CGAL_swigconstant(_IMP_em2d)
623 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
625 _IMP_em2d.IMP_RMF_HAS_HDF5_swigconstant(_IMP_em2d)
626 IMP_RMF_HAS_HDF5 = _IMP_em2d.IMP_RMF_HAS_HDF5
628 _IMP_em2d.IMPRMF_SHOW_WARNINGS_swigconstant(_IMP_em2d)
629 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
633 _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM_swigconstant(_IMP_em2d)
634 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
636 _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
637 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
639 _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
640 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
642 _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF_swigconstant(_IMP_em2d)
643 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
645 _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
646 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
648 _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em2d)
649 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
651 _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em2d)
652 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
654 _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
655 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
657 _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
658 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
660 _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
661 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
663 _IMP_em2d.IMP_DOMINO_HAS_CGAL_swigconstant(_IMP_em2d)
664 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
666 _IMP_em2d.IMP_DOMINO_HAS_HDF5_swigconstant(_IMP_em2d)
667 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
669 _IMP_em2d.IMP_DOMINO_HAS_RMF_swigconstant(_IMP_em2d)
670 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
672 _IMP_em2d.IMPDOMINO_SHOW_WARNINGS_swigconstant(_IMP_em2d)
673 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
677 _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL_swigconstant(_IMP_em2d)
678 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
680 _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL_swigconstant(_IMP_em2d)
681 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
683 _IMP_em2d.IMP_EM2D_HAS_IMP_RMF_swigconstant(_IMP_em2d)
684 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
686 _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em2d)
687 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
689 _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS_swigconstant(_IMP_em2d)
690 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
692 _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH_swigconstant(_IMP_em2d)
693 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
695 _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM_swigconstant(_IMP_em2d)
696 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
698 _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX_swigconstant(_IMP_em2d)
699 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
701 _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM_swigconstant(_IMP_em2d)
702 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
704 _IMP_em2d.IMP_EM2D_HAS_CGAL_swigconstant(_IMP_em2d)
705 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
707 _IMP_em2d.IMP_EM2D_HAS_GSL_swigconstant(_IMP_em2d)
708 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
710 _IMP_em2d.IMP_EM2D_HAS_HDF5_swigconstant(_IMP_em2d)
711 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
713 _IMP_em2d.IMP_EM2D_HAS_OPENCV22_swigconstant(_IMP_em2d)
714 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
716 _IMP_em2d.IMP_EM2D_HAS_RMF_swigconstant(_IMP_em2d)
717 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
719 _IMP_em2d.IMP_EM2D_HAS_OPENCV21_swigconstant(_IMP_em2d)
720 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
722 _IMP_em2d.IMPEM2D_SHOW_WARNINGS_swigconstant(_IMP_em2d)
723 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
724 PolarResamplingParametersList=list
725 _plural_types.append(
"PolarResamplingParametersList")
726 _value_types.append(
"PolarResamplingParameters")
729 _plural_types.append(
"ProjectionMasks")
730 _value_types.append(
"ProjectionMask")
733 _plural_types.append(
"MasksManagers")
734 _value_types.append(
"MasksManager")
736 RegistrationResults=list
737 _plural_types.append(
"RegistrationResults")
738 _value_types.append(
"RegistrationResult")
741 _plural_types.append(
"ClusterSets")
742 _value_types.append(
"ClusterSet")
745 _plural_types.append(
"SingleLinkages")
746 _value_types.append(
"SingleLinkage")
748 CompleteLinkages=list
749 _plural_types.append(
"CompleteLinkages")
750 _value_types.append(
"CompleteLinkage")
752 AverageDistanceLinkages=list
753 _plural_types.append(
"AverageDistanceLinkages")
754 _value_types.append(
"AverageDistanceLinkage")
756 SegmentationParametersList=list
757 _plural_types.append(
"SegmentationParametersList")
758 _value_types.append(
"SegmentationParameters")
760 MatchTemplateResults=list
761 _plural_types.append(
"MatchTemplateResults")
762 _value_types.append(
"MatchTemplateResult")
764 ProjectingParametersList=list
765 _plural_types.append(
"ProjectingParametersList")
766 _value_types.append(
"ProjectingParameters")
768 ProjectingOptionsList=list
769 _plural_types.append(
"ProjectingOptionsList")
770 _value_types.append(
"ProjectingOptions")
772 Em2DRestraintParametersList=list
773 _plural_types.append(
"Em2DRestraintParametersList")
774 _value_types.append(
"Em2DRestraintParameters")
776 _object_types.append(
"ProjectionFinder")
779 def _object_cast_to_ProjectionFinder(o):
780 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
781 return _IMP_em2d._object_cast_to_ProjectionFinder(o)
782 _object_types.append(
"ScoreFunction")
785 def _object_cast_to_ScoreFunction(o):
786 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
787 return _IMP_em2d._object_cast_to_ScoreFunction(o)
788 _object_types.append(
"ChiSquaredScore")
791 def _object_cast_to_ChiSquaredScore(o):
792 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
793 return _IMP_em2d._object_cast_to_ChiSquaredScore(o)
794 _object_types.append(
"EM2DScore")
797 def _object_cast_to_EM2DScore(o):
798 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
799 return _IMP_em2d._object_cast_to_EM2DScore(o)
800 _object_types.append(
"MeanAbsoluteDifference")
803 def _object_cast_to_MeanAbsoluteDifference(o):
804 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
805 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(o)
806 _object_types.append(
"ProjectionParametersScoreState")
809 def _object_cast_to_ProjectionParametersScoreState(o):
810 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
811 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(o)
812 _object_types.append(
"Em2DRestraint")
815 def _object_cast_to_Em2DRestraint(o):
816 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
817 return _IMP_em2d._object_cast_to_Em2DRestraint(o)
818 _object_types.append(
"Image")
821 def _object_cast_to_Image(o):
822 """_object_cast_to_Image(Object o) -> Image"""
823 return _IMP_em2d._object_cast_to_Image(o)
824 _object_types.append(
"ImageReaderWriter")
827 def _object_cast_to_ImageReaderWriter(o):
828 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
829 return _IMP_em2d._object_cast_to_ImageReaderWriter(o)
830 _object_types.append(
"JPGImageReaderWriter")
833 def _object_cast_to_JPGImageReaderWriter(o):
834 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
835 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(o)
836 _object_types.append(
"TIFFImageReaderWriter")
839 def _object_cast_to_TIFFImageReaderWriter(o):
840 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
841 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(o)
842 _object_types.append(
"SpiderImageReaderWriter")
845 def _object_cast_to_SpiderImageReaderWriter(o):
846 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
847 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(o)
848 _object_types.append(
"CollisionCrossSection")
851 def _object_cast_to_CollisionCrossSection(o):
852 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
853 return _IMP_em2d._object_cast_to_CollisionCrossSection(o)
854 _object_types.append(
"GridStates")
857 def _object_cast_to_GridStates(o):
858 """_object_cast_to_GridStates(Object o) -> GridStates"""
859 return _IMP_em2d._object_cast_to_GridStates(o)
860 _object_types.append(
"ProjectionStates")
863 def _object_cast_to_ProjectionStates(o):
864 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
865 return _IMP_em2d._object_cast_to_ProjectionStates(o)
866 _object_types.append(
"DistanceFilter")
869 def _object_cast_to_DistanceFilter(o):
870 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
871 return _IMP_em2d._object_cast_to_DistanceFilter(o)
872 _object_types.append(
"DistanceFilterTable")
875 def _object_cast_to_DistanceFilterTable(o):
876 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
877 return _IMP_em2d._object_cast_to_DistanceFilterTable(o)
878 _object_types.append(
"RigidBodiesImageFitRestraint")
881 def _object_cast_to_RigidBodiesImageFitRestraint(o):
882 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
883 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(o)
884 _object_types.append(
"DummyRestraint")
887 def _object_cast_to_DummyRestraint(o):
888 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
889 return _IMP_em2d._object_cast_to_DummyRestraint(o)
890 _object_types.append(
"ParticlesDummyRestraint")
893 def _object_cast_to_ParticlesDummyRestraint(o):
894 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
895 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(o)
896 _object_types.append(
"RelativePositionMover")
899 def _object_cast_to_RelativePositionMover(o):
900 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
901 return _IMP_em2d._object_cast_to_RelativePositionMover(o)
902 _object_types.append(
"PCAFitRestraint")
904 def ProjectionParametersList(l=[]):
905 return [ProjectionParameters(x)
for x
in l]
906 _plural_types.append(
"ProjectionParametersList")
908 _value_types.append(
"ProjectionParameters")
913 show(cv::Mat const & m, _ostream out)
914 show(cv::Mat const & m)
916 return _IMP_em2d.show(*args)
919 """write_matrix(cv::Mat & m, std::string name)"""
920 return _IMP_em2d.write_matrix(m, name)
922 """Proxy of C++ IMP::em2d::ImageReaderWriter class"""
923 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
925 def __init__(self, *args, **kwargs):
926 raise AttributeError(
"No constructor defined - class is abstract")
928 def read(self, filename, header, data):
929 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
930 return _IMP_em2d.ImageReaderWriter_read(self, filename, header, data)
933 def read_from_floats(self, filename, header, data):
934 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
935 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, filename, header, data)
938 def read_from_ints(self, filename, header, data):
939 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
940 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, filename, header, data)
943 def write(self, filename, header, data):
944 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
945 return _IMP_em2d.ImageReaderWriter_write(self, filename, header, data)
948 def write_to_floats(self, filename, header, data):
949 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
950 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, filename, header, data)
953 def write_to_ints(self, filename, header, data):
954 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
955 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, filename, header, data)
958 def get_version_info(self):
959 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
960 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
964 """__str__(ImageReaderWriter self) -> std::string"""
965 return _IMP_em2d.ImageReaderWriter___str__(self)
969 """__repr__(ImageReaderWriter self) -> std::string"""
970 return _IMP_em2d.ImageReaderWriter___repr__(self)
973 return _object_cast_to_ImageReaderWriter(o)
974 get_from = staticmethod(get_from)
976 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
977 ImageReaderWriter_swigregister(ImageReaderWriter)
979 class PolarResamplingParameters(object):
980 """Proxy of C++ IMP::em2d::PolarResamplingParameters class"""
981 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
983 def __init__(self, *args):
985 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
986 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
987 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
989 this = _IMP_em2d.new_PolarResamplingParameters(*args)
991 self.this.append(this)
994 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
995 __del__ =
lambda self:
None
997 def setup(self, rows, cols):
998 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
999 return _IMP_em2d.PolarResamplingParameters_setup(self, rows, cols)
1002 def get_starting_radius(self):
1003 """get_starting_radius(PolarResamplingParameters self) -> double"""
1004 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
1007 def get_ending_radius(self):
1008 """get_ending_radius(PolarResamplingParameters self) -> double"""
1009 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
1012 def get_radius(self, n_ring):
1013 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
1014 return _IMP_em2d.PolarResamplingParameters_get_radius(self, n_ring)
1017 def get_number_of_rings(self):
1018 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
1019 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
1022 def set_estimated_number_of_angles(self, aprox_value):
1023 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
1024 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, aprox_value)
1027 def get_number_of_angles(self):
1028 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
1029 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
1032 def get_angle_step(self):
1033 """get_angle_step(PolarResamplingParameters self) -> double"""
1034 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
1037 def get_radius_step(self):
1038 """get_radius_step(PolarResamplingParameters self) -> double"""
1039 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
1042 def create_maps_for_resampling(self):
1043 """create_maps_for_resampling(PolarResamplingParameters self)"""
1044 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
1047 def get_resampling_maps(self, m1, m2):
1048 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
1049 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, m1, m2)
1052 def get_resampling_map(self, m1):
1053 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
1054 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, m1)
1057 def show(self, out):
1058 """show(PolarResamplingParameters self, _ostream out)"""
1059 return _IMP_em2d.PolarResamplingParameters_show(self, out)
1062 def get_is_setup(self):
1063 """get_is_setup(PolarResamplingParameters self) -> bool"""
1064 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
1068 """__str__(PolarResamplingParameters self) -> std::string"""
1069 return _IMP_em2d.PolarResamplingParameters___str__(self)
1073 """__repr__(PolarResamplingParameters self) -> std::string"""
1074 return _IMP_em2d.PolarResamplingParameters___repr__(self)
1076 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
1077 PolarResamplingParameters_swigregister(PolarResamplingParameters)
1079 class SegmentationParameters(object):
1080 """Proxy of C++ IMP::em2d::SegmentationParameters class"""
1081 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1082 image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
1083 diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
1084 diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
1085 fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
1086 opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
1087 remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
1088 binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
1089 binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
1090 threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
1092 def __init__(self, *args):
1094 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
1095 __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
1097 this = _IMP_em2d.new_SegmentationParameters(*args)
1099 self.this.append(this)
1103 def show(self, *args):
1105 show(SegmentationParameters self, _ostream out)
1106 show(SegmentationParameters self)
1108 return _IMP_em2d.SegmentationParameters_show(self, *args)
1112 """__str__(SegmentationParameters self) -> std::string"""
1113 return _IMP_em2d.SegmentationParameters___str__(self)
1117 """__repr__(SegmentationParameters self) -> std::string"""
1118 return _IMP_em2d.SegmentationParameters___repr__(self)
1120 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
1121 __del__ =
lambda self:
None
1122 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
1123 SegmentationParameters_swigregister(SegmentationParameters)
1125 class MatchTemplateResult(object):
1126 """Proxy of C++ IMP::em2d::MatchTemplateResult class"""
1127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1128 pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
1129 cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
1131 def __init__(self, p, cc):
1132 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
1133 this = _IMP_em2d.new_MatchTemplateResult(p, cc)
1135 self.this.append(this)
1139 def show(self, *args):
1141 show(MatchTemplateResult self, _ostream out)
1142 show(MatchTemplateResult self)
1144 return _IMP_em2d.MatchTemplateResult_show(self, *args)
1148 """__str__(MatchTemplateResult self) -> std::string"""
1149 return _IMP_em2d.MatchTemplateResult___str__(self)
1153 """__repr__(MatchTemplateResult self) -> std::string"""
1154 return _IMP_em2d.MatchTemplateResult___repr__(self)
1156 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
1157 __del__ =
lambda self:
None
1158 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
1159 MatchTemplateResult_swigregister(MatchTemplateResult)
1163 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
1164 return _IMP_em2d.apply_mask(m, result, mask, val)
1168 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
1169 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
1171 return _IMP_em2d.apply_circular_mask(mat, result, radius, value)
1174 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
1175 return _IMP_em2d.get_mean(mat, mask)
1178 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
1179 return _IMP_em2d.create_circular_mask(rows, cols, radius)
1181 def do_histogram_stretching(m, boxes, offset):
1182 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
1183 return _IMP_em2d.do_histogram_stretching(m, boxes, offset)
1186 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & grayscale, cv::Mat & kernel)"""
1187 return _IMP_em2d.do_dilate_and_shrink_warp(m, grayscale, kernel)
1191 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
1192 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
1194 return _IMP_em2d.do_morphologic_reconstruction(mask, marker, neighbors_mode)
1197 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
1198 return _IMP_em2d.do_labeling(m, mat_to_label)
1201 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
1202 return _IMP_em2d.get_diffusion_filtering_partial_derivative(m, der, dx, dy, ang)
1205 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
1206 return _IMP_em2d.get_domes(m, result, h)
1209 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
1210 return _IMP_em2d.get_transformed(input, transformed, T)
1214 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
1215 apply_threshold(cv::Mat & m, cv::Mat & result)
1217 return _IMP_em2d.apply_threshold(m, result, threshold)
1220 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
1221 return _IMP_em2d.do_morphologic_contrast_enhancement(m, result, kernel, iterations)
1224 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
1225 return _IMP_em2d.get_morphologic_gradient(m, result, kernel)
1228 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
1229 return _IMP_em2d.get_overlap_percentage(m1, m2, center)
1232 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
1233 return _IMP_em2d.get_best_template_matches(m, templ, n)
1235 """Proxy of C++ IMP::em2d::Image class"""
1236 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1238 def __init__(self, *args):
1240 __init__(IMP::em2d::Image self) -> Image
1241 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
1242 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
1244 this = _IMP_em2d.new_Image(*args)
1246 self.this.append(this)
1251 """get_data(Image self) -> cv::Mat &"""
1252 return _IMP_em2d.Image_get_data(self)
1255 def set_data(self, mat):
1256 """set_data(Image self, cv::Mat const & mat)"""
1257 return _IMP_em2d.Image_set_data(self, mat)
1260 def set_zeros(self):
1261 """set_zeros(Image self)"""
1262 return _IMP_em2d.Image_set_zeros(self)
1265 def set_value(self, *args):
1267 set_value(Image self, double val)
1268 set_value(Image self, int i, int j, double val)
1270 return _IMP_em2d.Image_set_value(self, *args)
1273 def __call__(self, i, j):
1274 """__call__(Image self, int i, int j) -> double"""
1275 return _IMP_em2d.Image___call__(self, i, j)
1278 def get_header(self):
1279 """get_header(Image self) -> ImageHeader"""
1280 return _IMP_em2d.Image_get_header(self)
1283 def set_size(self, *args):
1285 set_size(Image self, int rows, int cols)
1286 set_size(Image self, Image img)
1288 return _IMP_em2d.Image_set_size(self, *args)
1291 def update_header(self):
1292 """update_header(Image self)"""
1293 return _IMP_em2d.Image_update_header(self)
1296 def read(self, filename, reader):
1297 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
1298 return _IMP_em2d.Image_read(self, filename, reader)
1301 def write(self, filename, writer):
1302 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
1303 return _IMP_em2d.Image_write(self, filename, writer)
1306 def show(self, out):
1307 """show(Image self, _ostream out)"""
1308 return _IMP_em2d.Image_show(self, out)
1311 def get_version_info(self):
1312 """get_version_info(Image self) -> VersionInfo"""
1313 return _IMP_em2d.Image_get_version_info(self)
1316 def set_name(self, name):
1317 """set_name(Image self, IMP::String const & name)"""
1318 return _IMP_em2d.Image_set_name(self, name)
1322 """get_name(Image self) -> IMP::String"""
1323 return _IMP_em2d.Image_get_name(self)
1326 def get_min_and_max_values(self):
1327 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
1328 return _IMP_em2d.Image_get_min_and_max_values(self)
1332 """__str__(Image self) -> std::string"""
1333 return _IMP_em2d.Image___str__(self)
1337 """__repr__(Image self) -> std::string"""
1338 return _IMP_em2d.Image___repr__(self)
1341 return _object_cast_to_Image(o)
1342 get_from = staticmethod(get_from)
1344 Image_swigregister = _IMP_em2d.Image_swigregister
1345 Image_swigregister(Image)
1349 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1350 return _IMP_em2d.read_images(names, rw)
1353 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1354 return _IMP_em2d.save_images(images, names, rw)
1358 do_normalize(cv::Mat & m)
1359 do_normalize(Image im, bool force=False)
1360 do_normalize(Image im)
1362 return _IMP_em2d.do_normalize(*args)
1366 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1367 get_histogram(Image img, int bins) -> IMP::Floats
1369 return _IMP_em2d.get_histogram(*args)
1373 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1374 apply_variance_filter(Image input, Image filtered, int kernelsize)
1376 return _IMP_em2d.apply_variance_filter(*args)
1380 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1381 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1383 return _IMP_em2d.apply_diffusion_filter(*args)
1385 def do_fill_holes(*args):
1387 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1388 do_fill_holes(Image input, Image result, double n_stddevs)
1390 return _IMP_em2d.do_fill_holes(*args)
1392 def do_combined_fill_holes_and_threshold(*args):
1394 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1395 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1396 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1398 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1400 def do_extend_borders(*args):
1402 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1403 do_extend_borders(Image im1, Image im2, unsigned int pix)
1405 return _IMP_em2d.do_extend_borders(*args)
1407 def do_segmentation(*args):
1409 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1410 do_segmentation(Image input, Image result, SegmentationParameters params)
1412 return _IMP_em2d.do_segmentation(*args)
1414 def do_remove_small_objects(*args):
1416 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1417 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1418 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1419 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1420 do_remove_small_objects(Image input, double percentage, int background=0)
1421 do_remove_small_objects(Image input, double percentage)
1423 return _IMP_em2d.do_remove_small_objects(*args)
1426 """do_subtract_images(Image first, Image second, Image result)"""
1427 return _IMP_em2d.do_subtract_images(first, second, result)
1429 def add_noise(*args):
1431 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode, double df=3)
1432 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode)
1433 add_noise(cv::Mat & v, double op1, double op2)
1434 add_noise(Image im1, double op1, double op2, IMP::String const & mode, double df=3)
1435 add_noise(Image im1, double op1, double op2, IMP::String const & mode)
1436 add_noise(Image im1, double op1, double op2)
1438 return _IMP_em2d.add_noise(*args)
1442 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1443 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1445 return _IMP_em2d.do_resample_polar(*args)
1449 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1450 crop(Image img, IMP::IntPair const & center, int size)
1452 return _IMP_em2d.crop(*args)
1455 """apply_mean_outside_mask(Image img, double radius)"""
1456 return _IMP_em2d.apply_mean_outside_mask(img, radius)
1457 class RegistrationResult(object):
1458 """Proxy of C++ IMP::em2d::RegistrationResult class"""
1459 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1461 def __init__(self, *args):
1463 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1464 __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
1465 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1466 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1467 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1468 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1469 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1470 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0) -> RegistrationResult
1471 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift) -> RegistrationResult
1472 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1474 this = _IMP_em2d.new_RegistrationResult(*args)
1476 self.this.append(this)
1481 """get_phi(RegistrationResult self) -> double"""
1482 return _IMP_em2d.RegistrationResult_get_phi(self)
1485 def get_theta(self):
1486 """get_theta(RegistrationResult self) -> double"""
1487 return _IMP_em2d.RegistrationResult_get_theta(self)
1491 """get_psi(RegistrationResult self) -> double"""
1492 return _IMP_em2d.RegistrationResult_get_psi(self)
1495 def get_shift(self):
1496 """get_shift(RegistrationResult self) -> Vector2D"""
1497 return _IMP_em2d.RegistrationResult_get_shift(self)
1500 def get_shift_3d(self):
1501 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1502 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1505 def get_projection_index(self):
1506 """get_projection_index(RegistrationResult self) -> int"""
1507 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1510 def set_projection_index(self, index):
1511 """set_projection_index(RegistrationResult self, int index)"""
1512 return _IMP_em2d.RegistrationResult_set_projection_index(self, index)
1515 def get_image_index(self):
1516 """get_image_index(RegistrationResult self) -> int"""
1517 return _IMP_em2d.RegistrationResult_get_image_index(self)
1520 def set_image_index(self, index):
1521 """set_image_index(RegistrationResult self, int index)"""
1522 return _IMP_em2d.RegistrationResult_set_image_index(self, index)
1526 """get_name(RegistrationResult self) -> IMP::String"""
1527 return _IMP_em2d.RegistrationResult_get_name(self)
1531 """get_ccc(RegistrationResult self) -> double"""
1532 return _IMP_em2d.RegistrationResult_get_ccc(self)
1535 def set_ccc(self, ccc):
1536 """set_ccc(RegistrationResult self, double ccc)"""
1537 return _IMP_em2d.RegistrationResult_set_ccc(self, ccc)
1540 def get_score(self):
1541 """get_score(RegistrationResult self) -> double"""
1542 return _IMP_em2d.RegistrationResult_get_score(self)
1545 def set_score(self, Score):
1546 """set_score(RegistrationResult self, double Score)"""
1547 return _IMP_em2d.RegistrationResult_set_score(self, Score)
1550 def set_rotation(self, *args):
1552 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1553 set_rotation(RegistrationResult self, Rotation3D R)
1555 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1558 def set_shift(self, shift):
1559 """set_shift(RegistrationResult self, Vector2D shift)"""
1560 return _IMP_em2d.RegistrationResult_set_shift(self, shift)
1563 def set_name(self, name):
1564 """set_name(RegistrationResult self, IMP::String name)"""
1565 return _IMP_em2d.RegistrationResult_set_name(self, name)
1568 def add_in_plane_transformation(self, t):
1569 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1570 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, t)
1573 def show(self, *args):
1575 show(RegistrationResult self, _ostream out)
1576 show(RegistrationResult self)
1578 return _IMP_em2d.RegistrationResult_show(self, *args)
1581 def write(self, *args):
1583 write(RegistrationResult self, _ostream out)
1584 write(RegistrationResult self)
1586 return _IMP_em2d.RegistrationResult_write(self, *args)
1589 def write_comment_line(self, *args):
1591 write_comment_line(RegistrationResult self, _ostream out)
1592 write_comment_line(RegistrationResult self)
1594 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1598 """read(RegistrationResult self, IMP::String const & s)"""
1599 return _IMP_em2d.RegistrationResult_read(self, s)
1602 def set_random_registration(self, index, maximum_shift):
1603 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1604 return _IMP_em2d.RegistrationResult_set_random_registration(self, index, maximum_shift)
1607 def get_rotation(self):
1608 """get_rotation(RegistrationResult self) -> Rotation3D"""
1609 return _IMP_em2d.RegistrationResult_get_rotation(self)
1612 def set_in_image(self, header):
1613 """set_in_image(RegistrationResult self, ImageHeader header)"""
1614 return _IMP_em2d.RegistrationResult_set_in_image(self, header)
1617 def read_from_image(self, header):
1618 """read_from_image(RegistrationResult self, ImageHeader header)"""
1619 return _IMP_em2d.RegistrationResult_read_from_image(self, header)
1622 def get_is_optimized_result(self):
1623 """get_is_optimized_result(RegistrationResult self) -> bool"""
1624 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1626 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1627 __del__ =
lambda self:
None
1630 """__str__(RegistrationResult self) -> std::string"""
1631 return _IMP_em2d.RegistrationResult___str__(self)
1635 """__repr__(RegistrationResult self) -> std::string"""
1636 return _IMP_em2d.RegistrationResult___repr__(self)
1638 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1639 RegistrationResult_swigregister(RegistrationResult)
1643 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1644 return _IMP_em2d.read_registration_results(filename)
1647 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1648 return _IMP_em2d.write_registration_results(filename, results)
1652 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1653 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1655 return _IMP_em2d.get_random_registration_results(n, maximum_shift)
1658 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1659 return _IMP_em2d.get_evenly_distributed_registration_results(n_projections)
1661 def get_random_between_zero_and_one():
1662 """get_random_between_zero_and_one() -> double"""
1663 return _IMP_em2d.get_random_between_zero_and_one()
1664 class SpiderImageReaderWriter(ImageReaderWriter):
1665 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class"""
1666 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1667 filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1668 skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1669 force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1670 skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1672 def __init__(self, *args):
1674 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1675 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1677 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1679 self.this.append(this)
1684 """__str__(SpiderImageReaderWriter self) -> std::string"""
1685 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1689 """__repr__(SpiderImageReaderWriter self) -> std::string"""
1690 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1693 return _object_cast_to_SpiderImageReaderWriter(o)
1694 get_from = staticmethod(get_from)
1696 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1697 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1699 class JPGImageReaderWriter(ImageReaderWriter):
1700 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class"""
1701 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1704 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1705 this = _IMP_em2d.new_JPGImageReaderWriter()
1707 self.this.append(this)
1712 """__str__(JPGImageReaderWriter self) -> std::string"""
1713 return _IMP_em2d.JPGImageReaderWriter___str__(self)
1717 """__repr__(JPGImageReaderWriter self) -> std::string"""
1718 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1721 return _object_cast_to_JPGImageReaderWriter(o)
1722 get_from = staticmethod(get_from)
1724 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1725 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1727 class TIFFImageReaderWriter(ImageReaderWriter):
1728 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class"""
1729 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1732 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1733 this = _IMP_em2d.new_TIFFImageReaderWriter()
1735 self.this.append(this)
1740 """__str__(TIFFImageReaderWriter self) -> std::string"""
1741 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1745 """__repr__(TIFFImageReaderWriter self) -> std::string"""
1746 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1749 return _object_cast_to_TIFFImageReaderWriter(o)
1750 get_from = staticmethod(get_from)
1752 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1753 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1757 """do_matrix_to_image_flip(cv::Mat & m)"""
1758 return _IMP_em2d.do_matrix_to_image_flip(m)
1761 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1762 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(M, corr)
1766 get_autocorrelation2d(Image im1, Image im2)
1767 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1769 return _IMP_em2d.get_autocorrelation2d(*args)
1773 get_correlation2d(Image im1, Image im2, Image corr)
1774 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1776 return _IMP_em2d.get_correlation2d(*args)
1779 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1780 return _IMP_em2d.get_correlation2d_no_preprocessing(M1, M2, corr)
1783 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1784 return _IMP_em2d.get_fft_using_optimal_size(m, M)
1787 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1788 return _IMP_em2d.get_spectrum(m, real, imag)
1791 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1792 return _IMP_em2d.get_rotation_error(rr1, rr2)
1795 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1796 return _IMP_em2d.get_shift_error(rr1, rr2)
1798 def get_average_rotation_error(correct_RRs, computed_RRs):
1799 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1800 return _IMP_em2d.get_average_rotation_error(correct_RRs, computed_RRs)
1802 def get_average_shift_error(correct_RRs, computed_RRs):
1803 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1804 return _IMP_em2d.get_average_shift_error(correct_RRs, computed_RRs)
1808 get_cross_correlation_coefficient(Image im1, Image im2) -> double
1809 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1811 return _IMP_em2d.get_cross_correlation_coefficient(*args)
1814 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1815 return _IMP_em2d.get_global_score(RRs)
1817 """Proxy of C++ IMP::em2d::ScoreFunction class"""
1818 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1820 def __init__(self, *args, **kwargs):
1821 raise AttributeError(
"No constructor defined - class is abstract")
1823 def get_score(self, image, projection):
1824 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1825 return _IMP_em2d.ScoreFunction_get_score(self, image, projection)
1828 def set_variance_image(self, var):
1829 """set_variance_image(ScoreFunction self, Image var)"""
1830 return _IMP_em2d.ScoreFunction_set_variance_image(self, var)
1833 def get_version_info(self):
1834 """get_version_info(ScoreFunction self) -> VersionInfo"""
1835 return _IMP_em2d.ScoreFunction_get_version_info(self)
1839 """__str__(ScoreFunction self) -> std::string"""
1840 return _IMP_em2d.ScoreFunction___str__(self)
1844 """__repr__(ScoreFunction self) -> std::string"""
1845 return _IMP_em2d.ScoreFunction___repr__(self)
1848 return _object_cast_to_ScoreFunction(o)
1849 get_from = staticmethod(get_from)
1851 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1852 ScoreFunction_swigregister(ScoreFunction)
1854 class ChiSquaredScore(ScoreFunction):
1855 """Proxy of C++ IMP::em2d::ChiSquaredScore class"""
1856 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1859 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1860 this = _IMP_em2d.new_ChiSquaredScore()
1862 self.this.append(this)
1867 """__str__(ChiSquaredScore self) -> std::string"""
1868 return _IMP_em2d.ChiSquaredScore___str__(self)
1872 """__repr__(ChiSquaredScore self) -> std::string"""
1873 return _IMP_em2d.ChiSquaredScore___repr__(self)
1876 return _object_cast_to_ChiSquaredScore(o)
1877 get_from = staticmethod(get_from)
1879 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1880 __del__ =
lambda self:
None
1881 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1882 ChiSquaredScore_swigregister(ChiSquaredScore)
1884 class EM2DScore(ScoreFunction):
1885 """Proxy of C++ IMP::em2d::EM2DScore class"""
1886 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1889 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1890 this = _IMP_em2d.new_EM2DScore()
1892 self.this.append(this)
1897 """__str__(EM2DScore self) -> std::string"""
1898 return _IMP_em2d.EM2DScore___str__(self)
1902 """__repr__(EM2DScore self) -> std::string"""
1903 return _IMP_em2d.EM2DScore___repr__(self)
1906 return _object_cast_to_EM2DScore(o)
1907 get_from = staticmethod(get_from)
1909 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1910 __del__ =
lambda self:
None
1911 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1912 EM2DScore_swigregister(EM2DScore)
1914 class MeanAbsoluteDifference(ScoreFunction):
1915 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class"""
1916 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1919 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1920 this = _IMP_em2d.new_MeanAbsoluteDifference()
1922 self.this.append(this)
1927 """__str__(MeanAbsoluteDifference self) -> std::string"""
1928 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1932 """__repr__(MeanAbsoluteDifference self) -> std::string"""
1933 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1936 return _object_cast_to_MeanAbsoluteDifference(o)
1937 get_from = staticmethod(get_from)
1939 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1940 __del__ =
lambda self:
None
1941 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1942 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1946 """read_selection_file(IMP::String fn) -> IMP::Strings"""
1947 return _IMP_em2d.read_selection_file(fn)
1950 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1951 return _IMP_em2d.create_filenames(number, basic_name, extension)
1953 """Proxy of C++ IMP::em2d::ProjectionParameters class"""
1954 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1956 def __init__(self, *args):
1958 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1959 __init__(IMP::em2d::ProjectionParameters self, Model m, ParticleIndex id) -> ProjectionParameters
1960 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1962 this = _IMP_em2d.new_ProjectionParameters(*args)
1964 self.this.append(this)
1968 def show(self, *args):
1970 show(ProjectionParameters self, _ostream out)
1971 show(ProjectionParameters self)
1973 return _IMP_em2d.ProjectionParameters_show(self, *args)
1976 def setup_particle(*args):
1978 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
1979 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1981 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1983 setup_particle = staticmethod(setup_particle)
1984 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1985 __del__ =
lambda self:
None
1988 """get_keys() -> IMP::FloatKeys const &"""
1989 return _IMP_em2d.ProjectionParameters_get_keys()
1991 get_keys = staticmethod(get_keys)
1993 def set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values):
1994 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1995 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values)
1998 def get_is_setup(*args):
2000 get_is_setup(_ParticleAdaptor p) -> bool
2001 get_is_setup(Model m, ParticleIndex pi) -> bool
2003 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2005 get_is_setup = staticmethod(get_is_setup)
2007 def get_parameters_optimized(self):
2008 """get_parameters_optimized(ProjectionParameters self) -> bool"""
2009 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
2012 def get_translation(self):
2013 """get_translation(ProjectionParameters self) -> Vector3D"""
2014 return _IMP_em2d.ProjectionParameters_get_translation(self)
2017 def set_translation(self, v):
2018 """set_translation(ProjectionParameters self, Vector3D v)"""
2019 return _IMP_em2d.ProjectionParameters_set_translation(self, v)
2022 def get_rotation(self):
2023 """get_rotation(ProjectionParameters self) -> Rotation3D"""
2024 return _IMP_em2d.ProjectionParameters_get_rotation(self)
2027 def set_rotation(self, R):
2028 """set_rotation(ProjectionParameters self, Rotation3D R)"""
2029 return _IMP_em2d.ProjectionParameters_set_rotation(self, R)
2032 def set_parameters_optimized(self, tf):
2033 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
2034 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, tf)
2037 def get_quaternion_1(self):
2038 """get_quaternion_1(ProjectionParameters self) -> double"""
2039 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
2042 def set_quaternion_1(self, t):
2043 """set_quaternion_1(ProjectionParameters self, double t)"""
2044 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, t)
2047 def get_quaternion_2(self):
2048 """get_quaternion_2(ProjectionParameters self) -> double"""
2049 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
2052 def set_quaternion_2(self, t):
2053 """set_quaternion_2(ProjectionParameters self, double t)"""
2054 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, t)
2057 def get_quaternion_3(self):
2058 """get_quaternion_3(ProjectionParameters self) -> double"""
2059 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
2062 def set_quaternion_3(self, t):
2063 """set_quaternion_3(ProjectionParameters self, double t)"""
2064 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, t)
2067 def get_quaternion_4(self):
2068 """get_quaternion_4(ProjectionParameters self) -> double"""
2069 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
2072 def set_quaternion_4(self, t):
2073 """set_quaternion_4(ProjectionParameters self, double t)"""
2074 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, t)
2077 def get_translation_x(self):
2078 """get_translation_x(ProjectionParameters self) -> double"""
2079 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
2082 def set_translation_x(self, t):
2083 """set_translation_x(ProjectionParameters self, double t)"""
2084 return _IMP_em2d.ProjectionParameters_set_translation_x(self, t)
2087 def get_translation_y(self):
2088 """get_translation_y(ProjectionParameters self) -> double"""
2089 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
2092 def set_translation_y(self, t):
2093 """set_translation_y(ProjectionParameters self, double t)"""
2094 return _IMP_em2d.ProjectionParameters_set_translation_y(self, t)
2097 def add_attribute(self, *args):
2099 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
2100 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
2101 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
2102 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
2103 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
2104 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
2106 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
2109 def get_value(self, *args):
2111 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
2112 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
2113 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
2114 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
2115 get_value(ProjectionParameters self, ObjectKey a0) -> Object
2117 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
2120 def set_value(self, *args):
2122 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
2123 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
2124 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
2125 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
2126 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
2128 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
2131 def remove_attribute(self, *args):
2133 remove_attribute(ProjectionParameters self, FloatKey a0)
2134 remove_attribute(ProjectionParameters self, IntKey a0)
2135 remove_attribute(ProjectionParameters self, StringKey a0)
2136 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
2137 remove_attribute(ProjectionParameters self, ObjectKey a0)
2139 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
2142 def has_attribute(self, *args):
2144 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
2145 has_attribute(ProjectionParameters self, IntKey a0) -> bool
2146 has_attribute(ProjectionParameters self, StringKey a0) -> bool
2147 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
2148 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
2150 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
2153 def get_derivative(self, a0):
2154 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
2155 return _IMP_em2d.ProjectionParameters_get_derivative(self, a0)
2159 """get_name(ProjectionParameters self) -> std::string"""
2160 return _IMP_em2d.ProjectionParameters_get_name(self)
2163 def clear_caches(self):
2164 """clear_caches(ProjectionParameters self)"""
2165 return _IMP_em2d.ProjectionParameters_clear_caches(self)
2168 def set_name(self, a0):
2169 """set_name(ProjectionParameters self, std::string a0)"""
2170 return _IMP_em2d.ProjectionParameters_set_name(self, a0)
2174 """set_check_level(ProjectionParameters self, IMP::CheckLevel a0)"""
2175 return _IMP_em2d.ProjectionParameters_set_check_level(self, a0)
2178 def add_to_derivative(self, a0, a1, a2):
2179 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2180 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, a0, a1, a2)
2183 def set_is_optimized(self, a0, a1):
2184 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
2185 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, a0, a1)
2188 def get_is_optimized(self, a0):
2189 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
2190 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, a0)
2194 """get_check_level(ProjectionParameters self) -> IMP::CheckLevel"""
2195 return _IMP_em2d.ProjectionParameters_get_check_level(self)
2198 def __eq__(self, *args):
2200 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
2201 __eq__(ProjectionParameters self, Particle d) -> bool
2203 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
2206 def __ne__(self, *args):
2208 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
2209 __ne__(ProjectionParameters self, Particle d) -> bool
2211 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
2214 def __le__(self, *args):
2216 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
2217 __le__(ProjectionParameters self, Particle d) -> bool
2219 return _IMP_em2d.ProjectionParameters___le__(self, *args)
2222 def __lt__(self, *args):
2224 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
2225 __lt__(ProjectionParameters self, Particle d) -> bool
2227 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
2230 def __ge__(self, *args):
2232 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
2233 __ge__(ProjectionParameters self, Particle d) -> bool
2235 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
2238 def __gt__(self, *args):
2240 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
2241 __gt__(ProjectionParameters self, Particle d) -> bool
2243 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
2247 """__hash__(ProjectionParameters self) -> std::size_t"""
2248 return _IMP_em2d.ProjectionParameters___hash__(self)
2252 """__str__(ProjectionParameters self) -> std::string"""
2253 return _IMP_em2d.ProjectionParameters___str__(self)
2257 """__repr__(ProjectionParameters self) -> std::string"""
2258 return _IMP_em2d.ProjectionParameters___repr__(self)
2260 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
2261 ProjectionParameters_swigregister(ProjectionParameters)
2263 def ProjectionParameters_setup_particle(*args):
2265 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2266 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2268 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2270 def ProjectionParameters_get_keys():
2271 """ProjectionParameters_get_keys() -> IMP::FloatKeys const &"""
2272 return _IMP_em2d.ProjectionParameters_get_keys()
2274 def ProjectionParameters_get_is_setup(*args):
2276 get_is_setup(_ParticleAdaptor p) -> bool
2277 ProjectionParameters_get_is_setup(Model m, ParticleIndex pi) -> bool
2279 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2282 def __lshift__(out, n):
2283 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
2284 return _IMP_em2d.__lshift__(out, n)
2286 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class"""
2287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2289 def __init__(self, p):
2290 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
2291 this = _IMP_em2d.new_ProjectionParametersScoreState(p)
2293 self.this.append(this)
2297 def do_before_evaluate(self):
2298 """do_before_evaluate(ProjectionParametersScoreState self)"""
2299 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
2302 def do_after_evaluate(self, da):
2303 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
2304 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, da)
2307 def do_get_inputs(self):
2308 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2309 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
2312 def do_get_outputs(self):
2313 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2314 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
2317 def get_version_info(self):
2318 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
2319 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
2323 """__str__(ProjectionParametersScoreState self) -> std::string"""
2324 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
2328 """__repr__(ProjectionParametersScoreState self) -> std::string"""
2329 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
2332 return _object_cast_to_ProjectionParametersScoreState(o)
2333 get_from = staticmethod(get_from)
2335 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
2336 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
2338 class ProjectionMask(object):
2339 """Proxy of C++ IMP::em2d::ProjectionMask class"""
2340 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2342 def __init__(self, *args, **kwargs):
2343 raise AttributeError(
"No constructor defined")
2345 def apply(self, m, v):
2346 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
2347 return _IMP_em2d.ProjectionMask_apply(self, m, v)
2350 def show(self, *args):
2352 show(ProjectionMask self, _ostream out)
2353 show(ProjectionMask self)
2355 return _IMP_em2d.ProjectionMask_show(self, *args)
2357 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
2358 __del__ =
lambda self:
None
2361 """__str__(ProjectionMask self) -> std::string"""
2362 return _IMP_em2d.ProjectionMask___str__(self)
2366 """__repr__(ProjectionMask self) -> std::string"""
2367 return _IMP_em2d.ProjectionMask___repr__(self)
2369 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
2370 ProjectionMask_swigregister(ProjectionMask)
2374 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2375 return _IMP_em2d.do_place(mask, m, v)
2376 class MasksManager(object):
2377 """Proxy of C++ IMP::em2d::MasksManager class"""
2378 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2380 def __init__(self, *args):
2382 __init__(IMP::em2d::MasksManager self) -> MasksManager
2383 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2385 this = _IMP_em2d.new_MasksManager(*args)
2387 self.this.append(this)
2391 def setup_kernel(self, resolution, pixelsize):
2392 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2393 return _IMP_em2d.MasksManager_setup_kernel(self, resolution, pixelsize)
2396 def create_masks(self, ps):
2397 """create_masks(MasksManager self, IMP::ParticlesTemp const & ps)"""
2398 return _IMP_em2d.MasksManager_create_masks(self, ps)
2401 def create_mask(self, radius, mass):
2402 """create_mask(MasksManager self, double radius, double mass)"""
2403 return _IMP_em2d.MasksManager_create_mask(self, radius, mass)
2406 def find_mask(self, radius):
2407 """find_mask(MasksManager self, double radius) -> IMP::em2d::ProjectionMaskPtr"""
2408 return _IMP_em2d.MasksManager_find_mask(self, radius)
2411 def show(self, *args):
2413 show(MasksManager self, _ostream out)
2414 show(MasksManager self)
2416 return _IMP_em2d.MasksManager_show(self, *args)
2419 def get_number_of_masks(self):
2420 """get_number_of_masks(MasksManager self) -> unsigned int"""
2421 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2423 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2424 __del__ =
lambda self:
None
2427 """__str__(MasksManager self) -> std::string"""
2428 return _IMP_em2d.MasksManager___str__(self)
2432 """__repr__(MasksManager self) -> std::string"""
2433 return _IMP_em2d.MasksManager___repr__(self)
2435 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2436 MasksManager_swigregister(MasksManager)
2438 class ProjectingParameters(object):
2439 """Proxy of C++ IMP::em2d::ProjectingParameters class"""
2440 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2441 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2442 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2444 def __init__(self, *args):
2446 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2447 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2449 this = _IMP_em2d.new_ProjectingParameters(*args)
2451 self.this.append(this)
2455 def show(self, *args):
2457 show(ProjectingParameters self, _ostream out)
2458 show(ProjectingParameters self)
2460 return _IMP_em2d.ProjectingParameters_show(self, *args)
2464 """__str__(ProjectingParameters self) -> std::string"""
2465 return _IMP_em2d.ProjectingParameters___str__(self)
2469 """__repr__(ProjectingParameters self) -> std::string"""
2470 return _IMP_em2d.ProjectingParameters___repr__(self)
2472 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2473 __del__ =
lambda self:
None
2474 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2475 ProjectingParameters_swigregister(ProjectingParameters)
2477 class ProjectingOptions(ProjectingParameters):
2478 """Proxy of C++ IMP::em2d::ProjectingOptions class"""
2479 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2480 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2481 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2482 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2484 def __init__(self, *args):
2486 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2487 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2488 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2490 this = _IMP_em2d.new_ProjectingOptions(*args)
2492 self.this.append(this)
2496 def show(self, *args):
2498 show(ProjectingOptions self, _ostream out)
2499 show(ProjectingOptions self)
2501 return _IMP_em2d.ProjectingOptions_show(self, *args)
2505 """__str__(ProjectingOptions self) -> std::string"""
2506 return _IMP_em2d.ProjectingOptions___str__(self)
2510 """__repr__(ProjectingOptions self) -> std::string"""
2511 return _IMP_em2d.ProjectingOptions___repr__(self)
2513 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2514 __del__ =
lambda self:
None
2515 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2516 ProjectingOptions_swigregister(ProjectingOptions)
2521 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2522 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2523 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2524 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2526 return _IMP_em2d.get_projections(*args)
2530 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks, IMP::String name)
2531 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2532 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2534 return _IMP_em2d.get_projection(*args)
2537 """do_project_particles(IMP::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)"""
2538 return _IMP_em2d.do_project_particles(ps, m2, R, translation, options, masks)
2541 """create_evenly_distributed_projections(IMP::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2542 return _IMP_em2d.create_evenly_distributed_projections(ps, n, options)
2546 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2547 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2549 return _IMP_em2d.do_project_vectors(*args)
2552 """get_enclosing_image_size(IMP::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2553 return _IMP_em2d.get_enclosing_image_size(ps, pixel_size, slack)
2557 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2558 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2560 return _IMP_em2d.get_complete_alignment(input, m_to_align, apply)
2564 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2565 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2567 return _IMP_em2d.get_rotational_alignment(input, m_to_align, apply)
2571 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2572 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2574 return _IMP_em2d.get_translational_alignment(input, m_to_align, apply)
2578 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
2579 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
2581 return _IMP_em2d.get_complete_alignment_no_preprocessing(input, INPUT, POLAR1, m_to_align, POLAR2, apply)
2584 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2585 return _IMP_em2d.get_rotational_alignment_no_preprocessing(POLAR1, POLAR2)
2588 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2589 return _IMP_em2d.get_translational_alignment_no_preprocessing(M1, M2)
2592 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2593 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(center1, center2, AUTOC_POLAR1, AUTOC_POLAR2)
2597 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2598 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2600 return _IMP_em2d.write_vectors_as_pdb(*args)
2601 class Em2DRestraintParameters(ProjectingParameters):
2602 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class"""
2603 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2604 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2605 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2606 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2607 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2608 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2609 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2611 def __init__(self, *args):
2613 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2614 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2615 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2617 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2619 self.this.append(this)
2623 def show(self, *args):
2625 show(Em2DRestraintParameters self, _ostream out)
2626 show(Em2DRestraintParameters self)
2628 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2632 """__str__(Em2DRestraintParameters self) -> std::string"""
2633 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2637 """__repr__(Em2DRestraintParameters self) -> std::string"""
2638 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2640 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2641 __del__ =
lambda self:
None
2642 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2643 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2644 cvar = _IMP_em2d.cvar
2645 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2646 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2647 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2650 """Proxy of C++ IMP::em2d::ProjectionFinder class"""
2651 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2654 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2655 this = _IMP_em2d.new_ProjectionFinder()
2657 self.this.append(this)
2661 def setup(self, score_function, params):
2662 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2663 return _IMP_em2d.ProjectionFinder_setup(self, score_function, params)
2666 def set_subjects(self, subjects):
2667 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2668 return _IMP_em2d.ProjectionFinder_set_subjects(self, subjects)
2671 def set_projections(self, projections):
2672 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2673 return _IMP_em2d.ProjectionFinder_set_projections(self, projections)
2676 def set_variance_images(self, variances):
2677 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2678 return _IMP_em2d.ProjectionFinder_set_variance_images(self, variances)
2681 def set_model_particles(self, ps):
2682 """set_model_particles(ProjectionFinder self, IMP::ParticlesTemp const & ps)"""
2683 return _IMP_em2d.ProjectionFinder_set_model_particles(self, ps)
2686 def set_save_match_images(self, x):
2687 """set_save_match_images(ProjectionFinder self, bool x)"""
2688 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, x)
2691 def get_save_match_images(self):
2692 """get_save_match_images(ProjectionFinder self) -> bool"""
2693 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2696 def set_fast_mode(self, n):
2697 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2698 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, n)
2701 def get_registration_results(self):
2702 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2703 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2706 def get_coarse_registration(self):
2707 """get_coarse_registration(ProjectionFinder self)"""
2708 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2711 def get_complete_registration(self):
2712 """get_complete_registration(ProjectionFinder self)"""
2713 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2717 """get_global_score(ProjectionFinder self) -> double"""
2718 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2721 def show(self, out):
2722 """show(ProjectionFinder self, _ostream out)"""
2723 return _IMP_em2d.ProjectionFinder_show(self, out)
2726 def get_preprocessing_time(self):
2727 """get_preprocessing_time(ProjectionFinder self) -> double"""
2728 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2731 def get_coarse_registration_time(self):
2732 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2733 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2736 def get_fine_registration_time(self):
2737 """get_fine_registration_time(ProjectionFinder self) -> double"""
2738 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2741 def get_number_of_subjects(self):
2742 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2743 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2746 def set_number_of_class_averages_members(self, n_members):
2747 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2748 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, n_members)
2751 def get_number_of_projections(self):
2752 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2753 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2756 def get_version_info(self):
2757 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2758 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2762 """__str__(ProjectionFinder self) -> std::string"""
2763 return _IMP_em2d.ProjectionFinder___str__(self)
2767 """__repr__(ProjectionFinder self) -> std::string"""
2768 return _IMP_em2d.ProjectionFinder___repr__(self)
2771 return _object_cast_to_ProjectionFinder(o)
2772 get_from = staticmethod(get_from)
2774 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2775 ProjectionFinder_swigregister(ProjectionFinder)
2778 """Proxy of C++ IMP::em2d::Em2DRestraint class"""
2779 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2781 def __init__(self, m):
2782 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
2783 this = _IMP_em2d.new_Em2DRestraint(m)
2785 self.this.append(this)
2789 def setup(self, score_function, params):
2790 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2791 return _IMP_em2d.Em2DRestraint_setup(self, score_function, params)
2794 def set_particles(self, particles_container):
2795 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2796 return _IMP_em2d.Em2DRestraint_set_particles(self, particles_container)
2799 def set_images(self, em_images):
2800 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2801 return _IMP_em2d.Em2DRestraint_set_images(self, em_images)
2804 def set_variance_images(self, variance_images):
2805 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2806 return _IMP_em2d.Em2DRestraint_set_variance_images(self, variance_images)
2809 def set_fast_mode(self, n):
2810 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2811 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, n)
2814 def set_coarse_registration_mode(self, opt):
2815 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2816 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, opt)
2819 def get_registration_results(self):
2820 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2821 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2824 def do_get_inputs(self):
2825 """do_get_inputs(Em2DRestraint self) -> IMP::ModelObjectsTemp"""
2826 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2829 def get_version_info(self):
2830 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2831 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2835 """__str__(Em2DRestraint self) -> std::string"""
2836 return _IMP_em2d.Em2DRestraint___str__(self)
2840 """__repr__(Em2DRestraint self) -> std::string"""
2841 return _IMP_em2d.Em2DRestraint___repr__(self)
2844 return _object_cast_to_Em2DRestraint(o)
2845 get_from = staticmethod(get_from)
2847 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2848 Em2DRestraint_swigregister(Em2DRestraint)
2850 class ClusterSet(object):
2851 """Proxy of C++ IMP::em2d::ClusterSet class"""
2852 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2854 def __init__(self, N):
2855 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2856 this = _IMP_em2d.new_ClusterSet(N)
2858 self.this.append(this)
2862 def do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters):
2863 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2864 return _IMP_em2d.ClusterSet_do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters)
2867 def get_cluster_elements(self, id):
2868 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2869 return _IMP_em2d.ClusterSet_get_cluster_elements(self, id)
2872 def get_clusters_below_cutoff(self, cutoff):
2873 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2874 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, cutoff)
2877 def get_cluster_formed_at_step(self, step):
2878 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2879 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, step)
2882 def get_distance_at_step(self, step):
2883 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2884 return _IMP_em2d.ClusterSet_get_distance_at_step(self, step)
2887 def get_id_for_cluster_at_step(self, step):
2888 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2889 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, step)
2892 def get_linkage_matrix(self):
2893 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2894 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2897 def get_linkage_matrix_in_matlab_format(self):
2898 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2899 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2902 def get_number_of_steps(self):
2903 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2904 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2907 def show(self, out):
2908 """show(ClusterSet self, _ostream out)"""
2909 return _IMP_em2d.ClusterSet_show(self, out)
2913 """__str__(ClusterSet self) -> std::string"""
2914 return _IMP_em2d.ClusterSet___str__(self)
2918 """__repr__(ClusterSet self) -> std::string"""
2919 return _IMP_em2d.ClusterSet___repr__(self)
2921 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2922 __del__ =
lambda self:
None
2923 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2924 ClusterSet_swigregister(ClusterSet)
2926 class SingleLinkage(object):
2927 """Proxy of C++ IMP::em2d::SingleLinkage class"""
2928 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2931 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2932 this = _IMP_em2d.new_SingleLinkage()
2934 self.this.append(this)
2938 def __call__(self, id1, id2, cluster_set, distances):
2939 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2940 return _IMP_em2d.SingleLinkage___call__(self, id1, id2, cluster_set, distances)
2943 def show(self, out):
2944 """show(SingleLinkage self, _ostream out)"""
2945 return _IMP_em2d.SingleLinkage_show(self, out)
2949 """__str__(SingleLinkage self) -> std::string"""
2950 return _IMP_em2d.SingleLinkage___str__(self)
2954 """__repr__(SingleLinkage self) -> std::string"""
2955 return _IMP_em2d.SingleLinkage___repr__(self)
2957 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2958 __del__ =
lambda self:
None
2959 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2960 SingleLinkage_swigregister(SingleLinkage)
2962 class CompleteLinkage(object):
2963 """Proxy of C++ IMP::em2d::CompleteLinkage class"""
2964 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2967 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2968 this = _IMP_em2d.new_CompleteLinkage()
2970 self.this.append(this)
2974 def __call__(self, id1, id2, cluster_set, distances):
2975 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2976 return _IMP_em2d.CompleteLinkage___call__(self, id1, id2, cluster_set, distances)
2979 def show(self, out):
2980 """show(CompleteLinkage self, _ostream out)"""
2981 return _IMP_em2d.CompleteLinkage_show(self, out)
2985 """__str__(CompleteLinkage self) -> std::string"""
2986 return _IMP_em2d.CompleteLinkage___str__(self)
2990 """__repr__(CompleteLinkage self) -> std::string"""
2991 return _IMP_em2d.CompleteLinkage___repr__(self)
2993 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2994 __del__ =
lambda self:
None
2995 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2996 CompleteLinkage_swigregister(CompleteLinkage)
2998 class AverageDistanceLinkage(object):
2999 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class"""
3000 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3003 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
3004 this = _IMP_em2d.new_AverageDistanceLinkage()
3006 self.this.append(this)
3010 def __call__(self, id1, id2, cluster_set, distances):
3011 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
3012 return _IMP_em2d.AverageDistanceLinkage___call__(self, id1, id2, cluster_set, distances)
3015 def show(self, out):
3016 """show(AverageDistanceLinkage self, _ostream out)"""
3017 return _IMP_em2d.AverageDistanceLinkage_show(self, out)
3021 """__str__(AverageDistanceLinkage self) -> std::string"""
3022 return _IMP_em2d.AverageDistanceLinkage___str__(self)
3026 """__repr__(AverageDistanceLinkage self) -> std::string"""
3027 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
3029 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
3030 __del__ =
lambda self:
None
3031 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
3032 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
3035 """Proxy of C++ IMP::em2d::CollisionCrossSection class"""
3036 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3038 def __init__(self, n_projections, resolution, pixel_size, projection_image_size):
3039 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
3040 this = _IMP_em2d.new_CollisionCrossSection(n_projections, resolution, pixel_size, projection_image_size)
3042 self.this.append(this)
3046 def set_model_particles(self, ps):
3047 """set_model_particles(CollisionCrossSection self, IMP::ParticlesTemp const & ps)"""
3048 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, ps)
3052 """get_ccs(CollisionCrossSection self) -> double"""
3053 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
3056 def show(self, out):
3057 """show(CollisionCrossSection self, _ostream out)"""
3058 return _IMP_em2d.CollisionCrossSection_show(self, out)
3061 def get_version_info(self):
3062 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
3063 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
3067 """__str__(CollisionCrossSection self) -> std::string"""
3068 return _IMP_em2d.CollisionCrossSection___str__(self)
3072 """__repr__(CollisionCrossSection self) -> std::string"""
3073 return _IMP_em2d.CollisionCrossSection___repr__(self)
3076 return _object_cast_to_CollisionCrossSection(o)
3077 get_from = staticmethod(get_from)
3079 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
3080 CollisionCrossSection_swigregister(CollisionCrossSection)
3083 """Proxy of C++ IMP::em2d::GridStates class"""
3084 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3086 def __init__(self, *args):
3088 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::String const & name) -> GridStates
3089 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
3091 this = _IMP_em2d.new_GridStates(*args)
3093 self.this.append(this)
3097 def get_position(self, i):
3098 """get_position(GridStates self, unsigned int i) -> Vector3D"""
3099 return _IMP_em2d.GridStates_get_position(self, i)
3102 def get_orientation(self, i):
3103 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
3104 return _IMP_em2d.GridStates_get_orientation(self, i)
3107 def get_version_info(self):
3108 """get_version_info(GridStates self) -> VersionInfo"""
3109 return _IMP_em2d.GridStates_get_version_info(self)
3113 """__str__(GridStates self) -> std::string"""
3114 return _IMP_em2d.GridStates___str__(self)
3118 """__repr__(GridStates self) -> std::string"""
3119 return _IMP_em2d.GridStates___repr__(self)
3122 return _object_cast_to_GridStates(o)
3123 get_from = staticmethod(get_from)
3125 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
3126 GridStates_swigregister(GridStates)
3128 class ProjectionStates(GridStates):
3129 """Proxy of C++ IMP::em2d::ProjectionStates class"""
3130 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3132 def __init__(self, *args):
3134 __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
3135 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections) -> ProjectionStates
3137 this = _IMP_em2d.new_ProjectionStates(*args)
3139 self.this.append(this)
3144 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
3145 return _IMP_em2d.ProjectionStates_get_projection(self, i)
3149 """__str__(ProjectionStates self) -> std::string"""
3150 return _IMP_em2d.ProjectionStates___str__(self)
3154 """__repr__(ProjectionStates self) -> std::string"""
3155 return _IMP_em2d.ProjectionStates___repr__(self)
3158 return _object_cast_to_ProjectionStates(o)
3159 get_from = staticmethod(get_from)
3161 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
3162 ProjectionStates_swigregister(ProjectionStates)
3165 """Proxy of C++ IMP::em2d::DistanceFilter class"""
3166 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3168 def __init__(self, subset_to_act_on, subset_to_restrain, ps_table, max_distance):
3169 """__init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table, double max_distance) -> DistanceFilter"""
3170 this = _IMP_em2d.new_DistanceFilter(subset_to_act_on, subset_to_restrain, ps_table, max_distance)
3172 self.this.append(this)
3176 def show(self, *args):
3178 show(DistanceFilter self, _ostream out)
3179 show(DistanceFilter self)
3181 return _IMP_em2d.DistanceFilter_show(self, *args)
3184 def get_version_info(self):
3185 """get_version_info(DistanceFilter self) -> VersionInfo"""
3186 return _IMP_em2d.DistanceFilter_get_version_info(self)
3190 """__str__(DistanceFilter self) -> std::string"""
3191 return _IMP_em2d.DistanceFilter___str__(self)
3195 """__repr__(DistanceFilter self) -> std::string"""
3196 return _IMP_em2d.DistanceFilter___repr__(self)
3199 return _object_cast_to_DistanceFilter(o)
3200 get_from = staticmethod(get_from)
3202 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
3203 DistanceFilter_swigregister(DistanceFilter)
3206 """Proxy of C++ IMP::em2d::DistanceFilterTable class"""
3207 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3209 def __init__(self, subset_to_act_on, ps_table, max_distance):
3210 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
3211 this = _IMP_em2d.new_DistanceFilterTable(subset_to_act_on, ps_table, max_distance)
3213 self.this.append(this)
3217 def show(self, *args):
3219 show(DistanceFilterTable self, _ostream out)
3220 show(DistanceFilterTable self)
3222 return _IMP_em2d.DistanceFilterTable_show(self, *args)
3225 def get_version_info(self):
3226 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
3227 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
3231 """__str__(DistanceFilterTable self) -> std::string"""
3232 return _IMP_em2d.DistanceFilterTable___str__(self)
3236 """__repr__(DistanceFilterTable self) -> std::string"""
3237 return _IMP_em2d.DistanceFilterTable___repr__(self)
3240 return _object_cast_to_DistanceFilterTable(o)
3241 get_from = staticmethod(get_from)
3243 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
3244 DistanceFilterTable_swigregister(DistanceFilterTable)
3246 class IntsOrder(object):
3247 """Proxy of C++ IMP::em2d::IntsOrder class"""
3248 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3249 __repr__ = _swig_repr
3251 def __call__(self, a, b):
3252 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
3253 return _IMP_em2d.IntsOrder___call__(self, a, b)
3257 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
3258 this = _IMP_em2d.new_IntsOrder()
3260 self.this.append(this)
3263 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
3264 __del__ =
lambda self:
None
3265 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
3266 IntsOrder_swigregister(IntsOrder)
3269 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class"""
3270 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3272 def get_version_info(self):
3273 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
3274 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
3277 def __init__(self, scf, rbs, img):
3278 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
3279 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(scf, rbs, img)
3281 self.this.append(this)
3285 def set_projecting_parameters(self, p):
3286 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
3287 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, p)
3290 def set_orientations(self, rb, rots):
3291 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
3292 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, rb, rots)
3295 def get_number_of_masks(self, rb):
3296 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
3297 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, rb)
3301 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
3302 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
3306 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
3307 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
3310 return _object_cast_to_RigidBodiesImageFitRestraint(o)
3311 get_from = staticmethod(get_from)
3313 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
3314 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
3318 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
3319 return _IMP_em2d.get_unique_index(rot)
3321 """Proxy of C++ IMP::em2d::RelativePositionMover class"""
3322 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3324 def __init__(self, d, max_translation, max_rotation):
3325 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
3326 this = _IMP_em2d.new_RelativePositionMover(d, max_translation, max_rotation)
3328 self.this.append(this)
3332 def add_internal_transformations(self, d, transforms):
3333 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
3334 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, d, transforms)
3337 def set_random_move_probability(self, p):
3338 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
3339 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, p)
3343 """__str__(RelativePositionMover self) -> std::string"""
3344 return _IMP_em2d.RelativePositionMover___str__(self)
3348 """__repr__(RelativePositionMover self) -> std::string"""
3349 return _IMP_em2d.RelativePositionMover___repr__(self)
3352 return _object_cast_to_RelativePositionMover(o)
3353 get_from = staticmethod(get_from)
3355 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
3356 RelativePositionMover_swigregister(RelativePositionMover)
3359 """Proxy of C++ IMP::em2d::DummyRestraint class"""
3360 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3362 def __init__(self, p, q):
3363 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
3364 this = _IMP_em2d.new_DummyRestraint(p, q)
3366 self.this.append(this)
3370 def show(self, *args):
3372 show(DummyRestraint self, _ostream out)
3373 show(DummyRestraint self)
3375 return _IMP_em2d.DummyRestraint_show(self, *args)
3378 def do_get_inputs(self):
3379 """do_get_inputs(DummyRestraint self) -> IMP::ModelObjectsTemp"""
3380 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
3383 def get_version_info(self):
3384 """get_version_info(DummyRestraint self) -> VersionInfo"""
3385 return _IMP_em2d.DummyRestraint_get_version_info(self)
3389 """__str__(DummyRestraint self) -> std::string"""
3390 return _IMP_em2d.DummyRestraint___str__(self)
3394 """__repr__(DummyRestraint self) -> std::string"""
3395 return _IMP_em2d.DummyRestraint___repr__(self)
3398 return _object_cast_to_DummyRestraint(o)
3399 get_from = staticmethod(get_from)
3401 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3402 DummyRestraint_swigregister(DummyRestraint)
3405 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class"""
3406 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3408 def __init__(self, sc):
3409 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3410 this = _IMP_em2d.new_ParticlesDummyRestraint(sc)
3412 self.this.append(this)
3416 def show(self, *args):
3418 show(ParticlesDummyRestraint self, _ostream out)
3419 show(ParticlesDummyRestraint self)
3421 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3424 def do_get_inputs(self):
3425 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::ModelObjectsTemp"""
3426 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3429 def get_version_info(self):
3430 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3431 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3435 """__str__(ParticlesDummyRestraint self) -> std::string"""
3436 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3440 """__repr__(ParticlesDummyRestraint self) -> std::string"""
3441 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3444 return _object_cast_to_ParticlesDummyRestraint(o)
3445 get_from = staticmethod(get_from)
3447 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3448 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3451 """Proxy of C++ IMP::em2d::PCAFitRestraint class"""
3452 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3454 def __init__(self, particles, image_files, pixel_size, resolution=10.0, projection_number=100, reuse_direction=False):
3456 __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
3457 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100) -> PCAFitRestraint
3458 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
3459 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
3461 this = _IMP_em2d.new_PCAFitRestraint(particles, image_files, pixel_size, resolution, projection_number, reuse_direction)
3463 self.this.append(this)
3467 def get_projection_number(self):
3468 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
3469 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
3472 def set_projection_number(self, n):
3473 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
3474 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, n)
3477 def write_best_projections(self, file_name, evaluate=False):
3479 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
3480 write_best_projections(PCAFitRestraint self, std::string file_name)
3482 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, file_name, evaluate)
3485 def do_get_inputs(self):
3486 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3487 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
3490 def get_version_info(self):
3491 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3492 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
3496 """__str__(PCAFitRestraint self) -> std::string"""
3497 return _IMP_em2d.PCAFitRestraint___str__(self)
3501 """__repr__(PCAFitRestraint self) -> std::string"""
3502 return _IMP_em2d.PCAFitRestraint___repr__(self)
3505 return _object_cast_to_PCAFitRestraint(o)
3506 get_from = staticmethod(get_from)
3508 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
3509 PCAFitRestraint_swigregister(PCAFitRestraint)
3512 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class"""
3513 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3514 __repr__ = _swig_repr
3516 def __init__(self, *args):
3518 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3519 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3520 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3522 this = _IMP_em2d.new_ResultAlign2D(*args)
3524 self.this.append(this)
3527 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3528 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3532 return str((self.first, self.second))
3533 def __getitem__(self, index):
3538 def __setitem__(self, index, val):
3543 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3544 __del__ =
lambda self:
None
3545 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3546 ResultAlign2D_swigregister(ResultAlign2D)
3549 def _do_hierarchical_clustering_single_linkage(distances):
3550 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3551 return _IMP_em2d._do_hierarchical_clustering_single_linkage(distances)
3553 def _do_hierarchical_clustering_complete_linkage(distances):
3554 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3555 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(distances)
3557 def _do_hierarchical_clustering_average_distance_linkage(distances):
3558 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3559 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(distances)
3560 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3561 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3562 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3565 def get_module_version():
3566 """get_module_version() -> std::string const"""
3567 return _IMP_em2d.get_module_version()
3570 """get_example_path(std::string fname) -> std::string"""
3571 return _IMP_em2d.get_example_path(fname)
3574 """get_data_path(std::string fname) -> std::string"""
3575 return _IMP_em2d.get_data_path(fname)
3576 from .
import _version_check
3577 _version_check.check_version(get_module_version())
3578 __version__ = get_module_version()
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.
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)
DensityMap * get_transformed(const DensityMap *input, const algebra::Transformation3D &tr, double threshold)
Return a new density map containing a rotated version of the old one.
void do_matrix_to_image_flip(cv::Mat &m)
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)
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
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)
For a unique 4 ints ( 2 first decimal positions) for a rotation.
double get_global_score(const RegistrationResults &RRs)
void do_place(cv::Mat &mask, cv::Mat &m, const algebra::Vector2D &v)
void do_morphologic_reconstruction(const cv::Mat &mask, cv::Mat &marker, int neighbors_mode=4)
morphologic grayscale reconstruction (L Vincent, 1993)
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
Divide-and-conquer inferential optimization in discrete space.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
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.