10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_em2d')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_em2d')
25 _IMP_em2d = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_em2d', [dirname(__file__)])
39 _mod = imp.load_module(
'_IMP_em2d', fp, pathname, description)
43 _IMP_em2d = swig_import_helper()
44 del swig_import_helper
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_EM2D_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
126 return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
131 incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
132 incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
134 return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
139 decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
140 decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
142 return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, x)
151 """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
152 return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, x)
156 """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
157 return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
161 """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
162 return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
166 """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
167 return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
171 """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
172 return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
177 return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
182 return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
187 return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
192 return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
197 return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
202 return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
208 __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
214 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
215 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
223 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
224 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
225 IMP_SILENT = _IMP_em2d.IMP_SILENT
226 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
227 IMP_TERSE = _IMP_em2d.IMP_TERSE
228 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
229 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
230 IMP_NONE = _IMP_em2d.IMP_NONE
231 IMP_USAGE = _IMP_em2d.IMP_USAGE
232 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_em2d.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_em2d.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_em2d.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_em2d.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em2d.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
245 class _DirectorObjects(object):
246 """@internal Simple class to keep references to director objects
247 to prevent premature deletion."""
250 def register(self, obj):
251 """Take a reference to a director object; will only work for
252 refcounted C++ classes"""
253 if hasattr(obj,
'get_ref_count'):
254 self._objects.append(obj)
256 """Only drop our reference and allow cleanup by Python if no other
257 Python references exist (we hold 3 references: one in self._objects,
258 one in x, and one in the argument list for getrefcount) *and* no
259 other C++ references exist (the Python object always holds one)"""
260 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
261 or x.get_ref_count() > 1]
265 def get_object_count(self):
266 """Get number of director objects (useful for testing only)"""
267 return len(self._objects)
268 _director_objects = _DirectorObjects()
270 class _ostream(object):
271 """Proxy of C++ std::ostream class."""
273 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
275 def __init__(self, *args, **kwargs):
276 raise AttributeError(
"No constructor defined")
277 __repr__ = _swig_repr
279 def write(self, osa_buf):
280 """write(_ostream self, char const * osa_buf)"""
281 return _IMP_em2d._ostream_write(self, osa_buf)
283 _ostream_swigregister = _IMP_em2d._ostream_swigregister
284 _ostream_swigregister(_ostream)
286 IMP_COMPILER_HAS_OVERRIDE = _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE
287 IMP_COMPILER_HAS_FINAL = _IMP_em2d.IMP_COMPILER_HAS_FINAL
288 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
289 IMP_C_OPEN_BINARY = _IMP_em2d.IMP_C_OPEN_BINARY
291 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
292 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
293 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
294 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
295 IMP_CGAL_HAS_NUMPY = _IMP_em2d.IMP_CGAL_HAS_NUMPY
296 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
298 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
299 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
300 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
301 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
302 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
303 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
304 IMP_ALGEBRA_HAS_NUMPY = _IMP_em2d.IMP_ALGEBRA_HAS_NUMPY
305 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
306 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
308 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
309 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
310 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
311 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
312 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
313 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
314 IMP_DISPLAY_HAS_NUMPY = _IMP_em2d.IMP_DISPLAY_HAS_NUMPY
315 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
317 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
318 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
319 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
320 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
321 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
322 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
323 IMP_GSL_HAS_NUMPY = _IMP_em2d.IMP_GSL_HAS_NUMPY
324 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
326 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
327 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
328 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
329 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
330 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
331 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
332 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5
333 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_NUMPY
334 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
336 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
337 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
338 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
339 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
340 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
341 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
342 IMP_STATISTICS_HAS_NUMPY = _IMP_em2d.IMP_STATISTICS_HAS_NUMPY
343 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
345 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
346 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
347 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
348 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
349 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
350 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
351 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
352 IMP_CORE_HAS_HDF5 = _IMP_em2d.IMP_CORE_HAS_HDF5
353 IMP_CORE_HAS_NUMPY = _IMP_em2d.IMP_CORE_HAS_NUMPY
354 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
356 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
357 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
358 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
359 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
360 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
361 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
362 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
363 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
364 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
365 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
366 IMP_CONTAINER_HAS_HDF5 = _IMP_em2d.IMP_CONTAINER_HAS_HDF5
367 IMP_CONTAINER_HAS_NUMPY = _IMP_em2d.IMP_CONTAINER_HAS_NUMPY
368 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em2d.IMP_CONTAINER_HAS_PYTHON_IHM
369 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em2d.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
370 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em2d.IMP_CONTAINER_HAS_ROBIN_MAP
371 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
373 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
374 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
375 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
376 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
377 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
378 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
379 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
380 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
381 IMP_ATOM_HAS_HDF5 = _IMP_em2d.IMP_ATOM_HAS_HDF5
382 IMP_ATOM_HAS_NUMPY = _IMP_em2d.IMP_ATOM_HAS_NUMPY
383 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em2d.IMP_ATOM_HAS_PYTHON_IHM
384 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
385 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
386 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
387 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
388 IMP_CHAIN_TYPE_INDEX = _IMP_em2d.IMP_CHAIN_TYPE_INDEX
390 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
391 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
392 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
393 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
394 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
395 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
396 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
397 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
398 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
399 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
400 IMP_EM_HAS_HDF5 = _IMP_em2d.IMP_EM_HAS_HDF5
401 IMP_EM_HAS_NUMPY = _IMP_em2d.IMP_EM_HAS_NUMPY
402 IMP_EM_HAS_PYTHON_IHM = _IMP_em2d.IMP_EM_HAS_PYTHON_IHM
403 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
405 IMP_SAXS_HAS_IMP_CGAL = _IMP_em2d.IMP_SAXS_HAS_IMP_CGAL
406 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_em2d.IMP_SAXS_HAS_IMP_CONTAINER
407 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_em2d.IMP_SAXS_HAS_IMP_DISPLAY
408 IMP_SAXS_HAS_IMP_KERNEL = _IMP_em2d.IMP_SAXS_HAS_IMP_KERNEL
409 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
410 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SAXS_HAS_BOOST_FILESYSTEM
411 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
412 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SAXS_HAS_BOOST_RANDOM
413 IMP_SAXS_HAS_BOOST_REGEX = _IMP_em2d.IMP_SAXS_HAS_BOOST_REGEX
414 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SAXS_HAS_BOOST_SYSTEM
415 IMP_SAXS_HAS_CGAL = _IMP_em2d.IMP_SAXS_HAS_CGAL
416 IMP_SAXS_HAS_HDF5 = _IMP_em2d.IMP_SAXS_HAS_HDF5
417 IMP_SAXS_HAS_NUMPY = _IMP_em2d.IMP_SAXS_HAS_NUMPY
418 IMP_SAXS_HAS_PYTHON_IHM = _IMP_em2d.IMP_SAXS_HAS_PYTHON_IHM
419 IMPSAXS_SHOW_WARNINGS = _IMP_em2d.IMPSAXS_SHOW_WARNINGS
421 IMP_ISD_HAS_IMP_CGAL = _IMP_em2d.IMP_ISD_HAS_IMP_CGAL
422 IMP_ISD_HAS_IMP_DISPLAY = _IMP_em2d.IMP_ISD_HAS_IMP_DISPLAY
423 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
424 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ISD_HAS_BOOST_FILESYSTEM
425 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
426 IMP_ISD_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ISD_HAS_BOOST_RANDOM
427 IMP_ISD_HAS_BOOST_REGEX = _IMP_em2d.IMP_ISD_HAS_BOOST_REGEX
428 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ISD_HAS_BOOST_SYSTEM
429 IMP_ISD_HAS_CGAL = _IMP_em2d.IMP_ISD_HAS_CGAL
430 IMP_ISD_HAS_HDF5 = _IMP_em2d.IMP_ISD_HAS_HDF5
431 IMP_ISD_HAS_NUMPY = _IMP_em2d.IMP_ISD_HAS_NUMPY
432 IMP_ISD_HAS_PYTHON_IHM = _IMP_em2d.IMP_ISD_HAS_PYTHON_IHM
433 IMPISD_SHOW_WARNINGS = _IMP_em2d.IMPISD_SHOW_WARNINGS
435 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
436 IMP_RMF_HAS_IMP_EM = _IMP_em2d.IMP_RMF_HAS_IMP_EM
437 IMP_RMF_HAS_IMP_SAXS = _IMP_em2d.IMP_RMF_HAS_IMP_SAXS
438 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
439 IMP_RMF_HAS_IMP_STATISTICS = _IMP_em2d.IMP_RMF_HAS_IMP_STATISTICS
440 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
441 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
442 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
443 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
444 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
445 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
446 IMP_RMF_HAS_HDF5 = _IMP_em2d.IMP_RMF_HAS_HDF5
447 IMP_RMF_HAS_NUMPY = _IMP_em2d.IMP_RMF_HAS_NUMPY
448 IMP_RMF_HAS_PYTHON_IHM = _IMP_em2d.IMP_RMF_HAS_PYTHON_IHM
449 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
452 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
453 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
454 IMP_DOMINO_HAS_IMP_EM = _IMP_em2d.IMP_DOMINO_HAS_IMP_EM
455 IMP_DOMINO_HAS_IMP_ISD = _IMP_em2d.IMP_DOMINO_HAS_IMP_ISD
456 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
457 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
458 IMP_DOMINO_HAS_IMP_SAXS = _IMP_em2d.IMP_DOMINO_HAS_IMP_SAXS
459 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
460 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
461 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
462 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
463 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
464 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
465 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
466 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
467 IMP_DOMINO_HAS_NUMPY = _IMP_em2d.IMP_DOMINO_HAS_NUMPY
468 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
469 IMP_DOMINO_HAS_PYTHON_IHM = _IMP_em2d.IMP_DOMINO_HAS_PYTHON_IHM
470 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
473 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
474 IMP_EM2D_HAS_IMP_ISD = _IMP_em2d.IMP_EM2D_HAS_IMP_ISD
475 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
476 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
477 IMP_EM2D_HAS_IMP_SAXS = _IMP_em2d.IMP_EM2D_HAS_IMP_SAXS
478 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
479 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
480 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
481 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
482 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
483 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
484 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
485 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
486 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
487 IMP_EM2D_HAS_NUMPY = _IMP_em2d.IMP_EM2D_HAS_NUMPY
488 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
489 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
490 IMP_EM2D_HAS_PYTHON_IHM = _IMP_em2d.IMP_EM2D_HAS_PYTHON_IHM
491 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
492 IMP_EM2D_HAS_OPENCV3 = _IMP_em2d.IMP_EM2D_HAS_OPENCV3
493 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
495 PolarResamplingParametersList=list
496 _plural_types.append(
"PolarResamplingParametersList")
497 _value_types.append(
"PolarResamplingParameters")
501 _plural_types.append(
"ProjectionMasks")
502 _value_types.append(
"ProjectionMask")
506 _plural_types.append(
"MasksManagers")
507 _value_types.append(
"MasksManager")
510 RegistrationResults=list
511 _plural_types.append(
"RegistrationResults")
512 _value_types.append(
"RegistrationResult")
516 _plural_types.append(
"ClusterSets")
517 _value_types.append(
"ClusterSet")
521 _plural_types.append(
"SingleLinkages")
522 _value_types.append(
"SingleLinkage")
525 CompleteLinkages=list
526 _plural_types.append(
"CompleteLinkages")
527 _value_types.append(
"CompleteLinkage")
530 AverageDistanceLinkages=list
531 _plural_types.append(
"AverageDistanceLinkages")
532 _value_types.append(
"AverageDistanceLinkage")
535 SegmentationParametersList=list
536 _plural_types.append(
"SegmentationParametersList")
537 _value_types.append(
"SegmentationParameters")
540 MatchTemplateResults=list
541 _plural_types.append(
"MatchTemplateResults")
542 _value_types.append(
"MatchTemplateResult")
545 ProjectingParametersList=list
546 _plural_types.append(
"ProjectingParametersList")
547 _value_types.append(
"ProjectingParameters")
550 ProjectingOptionsList=list
551 _plural_types.append(
"ProjectingOptionsList")
552 _value_types.append(
"ProjectingOptions")
555 Em2DRestraintParametersList=list
556 _plural_types.append(
"Em2DRestraintParametersList")
557 _value_types.append(
"Em2DRestraintParameters")
560 _object_types.append(
"ProjectionFinder")
563 def _object_cast_to_ProjectionFinder(o):
564 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
565 return _IMP_em2d._object_cast_to_ProjectionFinder(o)
567 _object_types.append(
"ScoreFunction")
570 def _object_cast_to_ScoreFunction(o):
571 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
572 return _IMP_em2d._object_cast_to_ScoreFunction(o)
574 _object_types.append(
"ChiSquaredScore")
577 def _object_cast_to_ChiSquaredScore(o):
578 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
579 return _IMP_em2d._object_cast_to_ChiSquaredScore(o)
581 _object_types.append(
"EM2DScore")
584 def _object_cast_to_EM2DScore(o):
585 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
586 return _IMP_em2d._object_cast_to_EM2DScore(o)
588 _object_types.append(
"MeanAbsoluteDifference")
591 def _object_cast_to_MeanAbsoluteDifference(o):
592 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
593 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(o)
595 _object_types.append(
"ProjectionParametersScoreState")
598 def _object_cast_to_ProjectionParametersScoreState(o):
599 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
600 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(o)
602 _object_types.append(
"Em2DRestraint")
605 def _object_cast_to_Em2DRestraint(o):
606 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
607 return _IMP_em2d._object_cast_to_Em2DRestraint(o)
609 _object_types.append(
"Image")
612 def _object_cast_to_Image(o):
613 """_object_cast_to_Image(Object o) -> Image"""
614 return _IMP_em2d._object_cast_to_Image(o)
616 _object_types.append(
"ImageReaderWriter")
619 def _object_cast_to_ImageReaderWriter(o):
620 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
621 return _IMP_em2d._object_cast_to_ImageReaderWriter(o)
623 _object_types.append(
"JPGImageReaderWriter")
626 def _object_cast_to_JPGImageReaderWriter(o):
627 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
628 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(o)
630 _object_types.append(
"TIFFImageReaderWriter")
633 def _object_cast_to_TIFFImageReaderWriter(o):
634 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
635 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(o)
637 _object_types.append(
"SpiderImageReaderWriter")
640 def _object_cast_to_SpiderImageReaderWriter(o):
641 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
642 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(o)
644 _object_types.append(
"CollisionCrossSection")
647 def _object_cast_to_CollisionCrossSection(o):
648 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
649 return _IMP_em2d._object_cast_to_CollisionCrossSection(o)
651 _object_types.append(
"GridStates")
654 def _object_cast_to_GridStates(o):
655 """_object_cast_to_GridStates(Object o) -> GridStates"""
656 return _IMP_em2d._object_cast_to_GridStates(o)
658 _object_types.append(
"ProjectionStates")
661 def _object_cast_to_ProjectionStates(o):
662 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
663 return _IMP_em2d._object_cast_to_ProjectionStates(o)
665 _object_types.append(
"DistanceFilter")
668 def _object_cast_to_DistanceFilter(o):
669 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
670 return _IMP_em2d._object_cast_to_DistanceFilter(o)
672 _object_types.append(
"DistanceFilterTable")
675 def _object_cast_to_DistanceFilterTable(o):
676 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
677 return _IMP_em2d._object_cast_to_DistanceFilterTable(o)
679 _object_types.append(
"RigidBodiesImageFitRestraint")
682 def _object_cast_to_RigidBodiesImageFitRestraint(o):
683 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
684 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(o)
686 _object_types.append(
"DummyRestraint")
689 def _object_cast_to_DummyRestraint(o):
690 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
691 return _IMP_em2d._object_cast_to_DummyRestraint(o)
693 _object_types.append(
"ParticlesDummyRestraint")
696 def _object_cast_to_ParticlesDummyRestraint(o):
697 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
698 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(o)
700 _object_types.append(
"RelativePositionMover")
703 def _object_cast_to_RelativePositionMover(o):
704 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
705 return _IMP_em2d._object_cast_to_RelativePositionMover(o)
707 _object_types.append(
"PCAFitRestraint")
710 def _object_cast_to_em2dPCAFitRestraint(o):
711 """_object_cast_to_em2dPCAFitRestraint(Object o) -> PCAFitRestraint"""
712 return _IMP_em2d._object_cast_to_em2dPCAFitRestraint(o)
714 def ProjectionParametersList(l=[]):
715 return [ProjectionParameters(x)
for x
in l]
716 _plural_types.append(
"ProjectionParametersList")
719 _value_types.append(
"ProjectionParameters")
724 show(cv::Mat const & m, _ostream out)
725 show(cv::Mat const & m)
727 return _IMP_em2d.show(*args)
730 """write_matrix(cv::Mat & m, std::string name)"""
731 return _IMP_em2d.write_matrix(m, name)
733 """Proxy of C++ IMP::em2d::ImageReaderWriter class."""
735 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
737 def __init__(self, *args, **kwargs):
738 raise AttributeError(
"No constructor defined - class is abstract")
740 def read(self, filename, header, data):
741 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
742 return _IMP_em2d.ImageReaderWriter_read(self, filename, header, data)
745 def read_from_floats(self, filename, header, data):
746 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
747 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, filename, header, data)
750 def read_from_ints(self, filename, header, data):
751 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
752 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, filename, header, data)
755 def write(self, filename, header, data):
756 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
757 return _IMP_em2d.ImageReaderWriter_write(self, filename, header, data)
760 def write_to_floats(self, filename, header, data):
761 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
762 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, filename, header, data)
765 def write_to_ints(self, filename, header, data):
766 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
767 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, filename, header, data)
770 def get_version_info(self):
771 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
772 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
776 """__str__(ImageReaderWriter self) -> std::string"""
777 return _IMP_em2d.ImageReaderWriter___str__(self)
781 """__repr__(ImageReaderWriter self) -> std::string"""
782 return _IMP_em2d.ImageReaderWriter___repr__(self)
787 return _object_cast_to_ImageReaderWriter(o)
789 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
790 ImageReaderWriter_swigregister(ImageReaderWriter)
792 class PolarResamplingParameters(object):
793 """Proxy of C++ IMP::em2d::PolarResamplingParameters class."""
795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
797 def __init__(self, *args):
799 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
800 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
801 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
803 this = _IMP_em2d.new_PolarResamplingParameters(*args)
805 self.this.append(this)
806 except __builtin__.Exception:
808 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
809 __del__ =
lambda self:
None
811 def setup(self, rows, cols):
812 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
813 return _IMP_em2d.PolarResamplingParameters_setup(self, rows, cols)
816 def get_starting_radius(self):
817 """get_starting_radius(PolarResamplingParameters self) -> double"""
818 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
821 def get_ending_radius(self):
822 """get_ending_radius(PolarResamplingParameters self) -> double"""
823 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
826 def get_radius(self, n_ring):
827 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
828 return _IMP_em2d.PolarResamplingParameters_get_radius(self, n_ring)
831 def get_number_of_rings(self):
832 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
833 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
836 def set_estimated_number_of_angles(self, aprox_value):
837 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
838 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, aprox_value)
841 def get_number_of_angles(self):
842 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
843 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
846 def get_angle_step(self):
847 """get_angle_step(PolarResamplingParameters self) -> double"""
848 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
851 def get_radius_step(self):
852 """get_radius_step(PolarResamplingParameters self) -> double"""
853 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
856 def create_maps_for_resampling(self):
857 """create_maps_for_resampling(PolarResamplingParameters self)"""
858 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
861 def get_resampling_maps(self, m1, m2):
862 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
863 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, m1, m2)
866 def get_resampling_map(self, m1):
867 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
868 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, m1)
872 """show(PolarResamplingParameters self, _ostream out)"""
873 return _IMP_em2d.PolarResamplingParameters_show(self, out)
876 def get_is_setup(self):
877 """get_is_setup(PolarResamplingParameters self) -> bool"""
878 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
882 """__str__(PolarResamplingParameters self) -> std::string"""
883 return _IMP_em2d.PolarResamplingParameters___str__(self)
887 """__repr__(PolarResamplingParameters self) -> std::string"""
888 return _IMP_em2d.PolarResamplingParameters___repr__(self)
890 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
891 PolarResamplingParameters_swigregister(PolarResamplingParameters)
893 class SegmentationParameters(object):
894 """Proxy of C++ IMP::em2d::SegmentationParameters class."""
896 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
897 image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
898 diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
899 diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
900 fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
901 opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
902 remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
903 binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
904 binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
905 threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
907 def __init__(self, *args):
909 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
910 __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
912 this = _IMP_em2d.new_SegmentationParameters(*args)
914 self.this.append(this)
915 except __builtin__.Exception:
918 def show(self, *args):
920 show(SegmentationParameters self, _ostream out)
921 show(SegmentationParameters self)
923 return _IMP_em2d.SegmentationParameters_show(self, *args)
927 """__str__(SegmentationParameters self) -> std::string"""
928 return _IMP_em2d.SegmentationParameters___str__(self)
932 """__repr__(SegmentationParameters self) -> std::string"""
933 return _IMP_em2d.SegmentationParameters___repr__(self)
935 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
936 __del__ =
lambda self:
None
937 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
938 SegmentationParameters_swigregister(SegmentationParameters)
940 class MatchTemplateResult(object):
941 """Proxy of C++ IMP::em2d::MatchTemplateResult class."""
943 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
944 pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
945 cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
947 def __init__(self, p, cc):
948 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
949 this = _IMP_em2d.new_MatchTemplateResult(p, cc)
951 self.this.append(this)
952 except __builtin__.Exception:
955 def show(self, *args):
957 show(MatchTemplateResult self, _ostream out)
958 show(MatchTemplateResult self)
960 return _IMP_em2d.MatchTemplateResult_show(self, *args)
964 """__str__(MatchTemplateResult self) -> std::string"""
965 return _IMP_em2d.MatchTemplateResult___str__(self)
969 """__repr__(MatchTemplateResult self) -> std::string"""
970 return _IMP_em2d.MatchTemplateResult___repr__(self)
972 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
973 __del__ =
lambda self:
None
974 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
975 MatchTemplateResult_swigregister(MatchTemplateResult)
979 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
980 return _IMP_em2d.apply_mask(m, result, mask, val)
984 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
985 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
987 return _IMP_em2d.apply_circular_mask(mat, result, radius, value)
990 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
991 return _IMP_em2d.get_mean(mat, mask)
994 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
995 return _IMP_em2d.create_circular_mask(rows, cols, radius)
997 def do_histogram_stretching(m, boxes, offset):
998 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
999 return _IMP_em2d.do_histogram_stretching(m, boxes, offset)
1002 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & grayscale, cv::Mat & kernel)"""
1003 return _IMP_em2d.do_dilate_and_shrink_warp(m, grayscale, kernel)
1007 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
1008 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
1010 return _IMP_em2d.do_morphologic_reconstruction(mask, marker, neighbors_mode)
1013 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
1014 return _IMP_em2d.do_labeling(m, mat_to_label)
1017 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
1018 return _IMP_em2d.get_diffusion_filtering_partial_derivative(m, der, dx, dy, ang)
1021 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
1022 return _IMP_em2d.get_domes(m, result, h)
1024 def get_transformed(input, transformed, T):
1025 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
1026 return _IMP_em2d.get_transformed(input, transformed, T)
1030 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
1031 apply_threshold(cv::Mat & m, cv::Mat & result)
1033 return _IMP_em2d.apply_threshold(m, result, threshold)
1036 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
1037 return _IMP_em2d.do_morphologic_contrast_enhancement(m, result, kernel, iterations)
1040 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
1041 return _IMP_em2d.get_morphologic_gradient(m, result, kernel)
1044 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
1045 return _IMP_em2d.get_overlap_percentage(m1, m2, center)
1048 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
1049 return _IMP_em2d.get_best_template_matches(m, templ, n)
1051 """Proxy of C++ IMP::em2d::Image class."""
1053 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1055 def __init__(self, *args):
1057 __init__(IMP::em2d::Image self) -> Image
1058 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
1059 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
1061 this = _IMP_em2d.new_Image(*args)
1063 self.this.append(this)
1064 except __builtin__.Exception:
1068 """get_data(Image self) -> cv::Mat &"""
1069 return _IMP_em2d.Image_get_data(self)
1072 def set_data(self, mat):
1073 """set_data(Image self, cv::Mat const & mat)"""
1074 return _IMP_em2d.Image_set_data(self, mat)
1077 def set_zeros(self):
1078 """set_zeros(Image self)"""
1079 return _IMP_em2d.Image_set_zeros(self)
1082 def set_value(self, *args):
1084 set_value(Image self, double val)
1085 set_value(Image self, int i, int j, double val)
1087 return _IMP_em2d.Image_set_value(self, *args)
1090 def __call__(self, i, j):
1091 """__call__(Image self, int i, int j) -> double"""
1092 return _IMP_em2d.Image___call__(self, i, j)
1095 def get_header(self):
1096 """get_header(Image self) -> ImageHeader"""
1097 return _IMP_em2d.Image_get_header(self)
1100 def set_size(self, *args):
1102 set_size(Image self, int rows, int cols)
1103 set_size(Image self, Image img)
1105 return _IMP_em2d.Image_set_size(self, *args)
1108 def update_header(self):
1109 """update_header(Image self)"""
1110 return _IMP_em2d.Image_update_header(self)
1113 def read(self, filename, reader):
1114 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
1115 return _IMP_em2d.Image_read(self, filename, reader)
1118 def write(self, filename, writer):
1119 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
1120 return _IMP_em2d.Image_write(self, filename, writer)
1123 def show(self, out):
1124 """show(Image self, _ostream out)"""
1125 return _IMP_em2d.Image_show(self, out)
1128 def get_version_info(self):
1129 """get_version_info(Image self) -> VersionInfo"""
1130 return _IMP_em2d.Image_get_version_info(self)
1133 def set_name(self, name):
1134 """set_name(Image self, IMP::String const & name)"""
1135 return _IMP_em2d.Image_set_name(self, name)
1139 """get_name(Image self) -> IMP::String"""
1140 return _IMP_em2d.Image_get_name(self)
1143 def get_min_and_max_values(self):
1144 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
1145 return _IMP_em2d.Image_get_min_and_max_values(self)
1149 """__str__(Image self) -> std::string"""
1150 return _IMP_em2d.Image___str__(self)
1154 """__repr__(Image self) -> std::string"""
1155 return _IMP_em2d.Image___repr__(self)
1160 return _object_cast_to_Image(o)
1162 Image_swigregister = _IMP_em2d.Image_swigregister
1163 Image_swigregister(Image)
1167 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1168 return _IMP_em2d.read_images(names, rw)
1171 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1172 return _IMP_em2d.save_images(images, names, rw)
1176 do_normalize(cv::Mat & m)
1177 do_normalize(Image im, bool force=False)
1178 do_normalize(Image im)
1180 return _IMP_em2d.do_normalize(*args)
1184 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1185 get_histogram(Image img, int bins) -> IMP::Floats
1187 return _IMP_em2d.get_histogram(*args)
1191 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1192 apply_variance_filter(Image input, Image filtered, int kernelsize)
1194 return _IMP_em2d.apply_variance_filter(*args)
1198 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1199 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1201 return _IMP_em2d.apply_diffusion_filter(*args)
1203 def do_fill_holes(*args):
1205 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1206 do_fill_holes(Image input, Image result, double n_stddevs)
1208 return _IMP_em2d.do_fill_holes(*args)
1210 def do_combined_fill_holes_and_threshold(*args):
1212 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1213 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1214 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1216 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1218 def do_extend_borders(*args):
1220 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1221 do_extend_borders(Image im1, Image im2, unsigned int pix)
1223 return _IMP_em2d.do_extend_borders(*args)
1225 def do_segmentation(*args):
1227 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1228 do_segmentation(Image input, Image result, SegmentationParameters params)
1230 return _IMP_em2d.do_segmentation(*args)
1232 def do_remove_small_objects(*args):
1234 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1235 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1236 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1237 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1238 do_remove_small_objects(Image input, double percentage, int background=0)
1239 do_remove_small_objects(Image input, double percentage)
1241 return _IMP_em2d.do_remove_small_objects(*args)
1244 """do_subtract_images(Image first, Image second, Image result)"""
1245 return _IMP_em2d.do_subtract_images(first, second, result)
1247 def add_noise(*args):
1249 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode, double df=3)
1250 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode)
1251 add_noise(cv::Mat & v, double op1, double op2)
1252 add_noise(Image im1, double op1, double op2, IMP::String const & mode, double df=3)
1253 add_noise(Image im1, double op1, double op2, IMP::String const & mode)
1254 add_noise(Image im1, double op1, double op2)
1256 return _IMP_em2d.add_noise(*args)
1260 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1261 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1263 return _IMP_em2d.do_resample_polar(*args)
1267 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1268 crop(Image img, IMP::IntPair const & center, int size)
1270 return _IMP_em2d.crop(*args)
1273 """apply_mean_outside_mask(Image img, double radius)"""
1274 return _IMP_em2d.apply_mean_outside_mask(img, radius)
1275 class RegistrationResult(object):
1276 """Proxy of C++ IMP::em2d::RegistrationResult class."""
1278 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1280 def __init__(self, *args):
1282 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1283 __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
1284 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1285 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1286 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1287 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1288 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1289 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0) -> RegistrationResult
1290 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift) -> RegistrationResult
1291 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1293 this = _IMP_em2d.new_RegistrationResult(*args)
1295 self.this.append(this)
1296 except __builtin__.Exception:
1300 """get_phi(RegistrationResult self) -> double"""
1301 return _IMP_em2d.RegistrationResult_get_phi(self)
1304 def get_theta(self):
1305 """get_theta(RegistrationResult self) -> double"""
1306 return _IMP_em2d.RegistrationResult_get_theta(self)
1310 """get_psi(RegistrationResult self) -> double"""
1311 return _IMP_em2d.RegistrationResult_get_psi(self)
1314 def get_shift(self):
1315 """get_shift(RegistrationResult self) -> Vector2D"""
1316 return _IMP_em2d.RegistrationResult_get_shift(self)
1319 def get_shift_3d(self):
1320 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1321 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1324 def get_projection_index(self):
1325 """get_projection_index(RegistrationResult self) -> int"""
1326 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1329 def set_projection_index(self, index):
1330 """set_projection_index(RegistrationResult self, int index)"""
1331 return _IMP_em2d.RegistrationResult_set_projection_index(self, index)
1334 def get_image_index(self):
1335 """get_image_index(RegistrationResult self) -> int"""
1336 return _IMP_em2d.RegistrationResult_get_image_index(self)
1339 def set_image_index(self, index):
1340 """set_image_index(RegistrationResult self, int index)"""
1341 return _IMP_em2d.RegistrationResult_set_image_index(self, index)
1345 """get_name(RegistrationResult self) -> IMP::String"""
1346 return _IMP_em2d.RegistrationResult_get_name(self)
1350 """get_ccc(RegistrationResult self) -> double"""
1351 return _IMP_em2d.RegistrationResult_get_ccc(self)
1354 def set_ccc(self, ccc):
1355 """set_ccc(RegistrationResult self, double ccc)"""
1356 return _IMP_em2d.RegistrationResult_set_ccc(self, ccc)
1359 def get_score(self):
1360 """get_score(RegistrationResult self) -> double"""
1361 return _IMP_em2d.RegistrationResult_get_score(self)
1364 def set_score(self, Score):
1365 """set_score(RegistrationResult self, double Score)"""
1366 return _IMP_em2d.RegistrationResult_set_score(self, Score)
1369 def set_rotation(self, *args):
1371 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1372 set_rotation(RegistrationResult self, Rotation3D R)
1374 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1377 def set_shift(self, shift):
1378 """set_shift(RegistrationResult self, Vector2D shift)"""
1379 return _IMP_em2d.RegistrationResult_set_shift(self, shift)
1382 def set_name(self, name):
1383 """set_name(RegistrationResult self, IMP::String name)"""
1384 return _IMP_em2d.RegistrationResult_set_name(self, name)
1387 def add_in_plane_transformation(self, t):
1388 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1389 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, t)
1392 def show(self, *args):
1394 show(RegistrationResult self, _ostream out)
1395 show(RegistrationResult self)
1397 return _IMP_em2d.RegistrationResult_show(self, *args)
1400 def write(self, *args):
1402 write(RegistrationResult self, _ostream out)
1403 write(RegistrationResult self)
1405 return _IMP_em2d.RegistrationResult_write(self, *args)
1408 def write_comment_line(self, *args):
1410 write_comment_line(RegistrationResult self, _ostream out)
1411 write_comment_line(RegistrationResult self)
1413 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1417 """read(RegistrationResult self, IMP::String const & s)"""
1418 return _IMP_em2d.RegistrationResult_read(self, s)
1421 def set_random_registration(self, index, maximum_shift):
1422 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1423 return _IMP_em2d.RegistrationResult_set_random_registration(self, index, maximum_shift)
1426 def get_rotation(self):
1427 """get_rotation(RegistrationResult self) -> Rotation3D"""
1428 return _IMP_em2d.RegistrationResult_get_rotation(self)
1431 def set_in_image(self, header):
1432 """set_in_image(RegistrationResult self, ImageHeader header)"""
1433 return _IMP_em2d.RegistrationResult_set_in_image(self, header)
1436 def read_from_image(self, header):
1437 """read_from_image(RegistrationResult self, ImageHeader header)"""
1438 return _IMP_em2d.RegistrationResult_read_from_image(self, header)
1441 def get_is_optimized_result(self):
1442 """get_is_optimized_result(RegistrationResult self) -> bool"""
1443 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1445 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1446 __del__ =
lambda self:
None
1449 """__str__(RegistrationResult self) -> std::string"""
1450 return _IMP_em2d.RegistrationResult___str__(self)
1454 """__repr__(RegistrationResult self) -> std::string"""
1455 return _IMP_em2d.RegistrationResult___repr__(self)
1457 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1458 RegistrationResult_swigregister(RegistrationResult)
1462 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1463 return _IMP_em2d.read_registration_results(filename)
1466 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1467 return _IMP_em2d.write_registration_results(filename, results)
1471 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1472 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1474 return _IMP_em2d.get_random_registration_results(n, maximum_shift)
1477 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1478 return _IMP_em2d.get_evenly_distributed_registration_results(n_projections)
1479 class SpiderImageReaderWriter(ImageReaderWriter):
1480 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class."""
1482 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1483 filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1484 skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1485 force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1486 skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1488 def __init__(self, *args):
1490 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1491 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1493 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1495 self.this.append(this)
1496 except __builtin__.Exception:
1500 """__str__(SpiderImageReaderWriter self) -> std::string"""
1501 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1505 """__repr__(SpiderImageReaderWriter self) -> std::string"""
1506 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1511 return _object_cast_to_SpiderImageReaderWriter(o)
1513 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1514 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1516 class JPGImageReaderWriter(ImageReaderWriter):
1517 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class."""
1519 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1522 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1523 this = _IMP_em2d.new_JPGImageReaderWriter()
1525 self.this.append(this)
1526 except __builtin__.Exception:
1530 """__str__(JPGImageReaderWriter self) -> std::string"""
1531 return _IMP_em2d.JPGImageReaderWriter___str__(self)
1535 """__repr__(JPGImageReaderWriter self) -> std::string"""
1536 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1541 return _object_cast_to_JPGImageReaderWriter(o)
1543 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1544 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1546 class TIFFImageReaderWriter(ImageReaderWriter):
1547 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class."""
1549 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1552 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1553 this = _IMP_em2d.new_TIFFImageReaderWriter()
1555 self.this.append(this)
1556 except __builtin__.Exception:
1560 """__str__(TIFFImageReaderWriter self) -> std::string"""
1561 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1565 """__repr__(TIFFImageReaderWriter self) -> std::string"""
1566 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1571 return _object_cast_to_TIFFImageReaderWriter(o)
1573 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1574 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1578 """do_matrix_to_image_flip(cv::Mat & m)"""
1579 return _IMP_em2d.do_matrix_to_image_flip(m)
1582 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1583 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(M, corr)
1587 get_autocorrelation2d(Image im1, Image im2)
1588 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1590 return _IMP_em2d.get_autocorrelation2d(*args)
1594 get_correlation2d(Image im1, Image im2, Image corr)
1595 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1597 return _IMP_em2d.get_correlation2d(*args)
1600 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1601 return _IMP_em2d.get_correlation2d_no_preprocessing(M1, M2, corr)
1604 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1605 return _IMP_em2d.get_fft_using_optimal_size(m, M)
1608 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1609 return _IMP_em2d.get_spectrum(m, real, imag)
1612 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1613 return _IMP_em2d.get_rotation_error(rr1, rr2)
1616 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1617 return _IMP_em2d.get_shift_error(rr1, rr2)
1619 def get_average_rotation_error(correct_RRs, computed_RRs):
1620 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1621 return _IMP_em2d.get_average_rotation_error(correct_RRs, computed_RRs)
1623 def get_average_shift_error(correct_RRs, computed_RRs):
1624 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1625 return _IMP_em2d.get_average_shift_error(correct_RRs, computed_RRs)
1629 get_cross_correlation_coefficient(Image im1, Image im2) -> double
1630 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1632 return _IMP_em2d.get_cross_correlation_coefficient(*args)
1635 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1636 return _IMP_em2d.get_global_score(RRs)
1638 """Proxy of C++ IMP::em2d::ScoreFunction class."""
1640 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1642 def __init__(self, *args, **kwargs):
1643 raise AttributeError(
"No constructor defined - class is abstract")
1645 def get_score(self, image, projection):
1646 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1647 return _IMP_em2d.ScoreFunction_get_score(self, image, projection)
1650 def set_variance_image(self, var):
1651 """set_variance_image(ScoreFunction self, Image var)"""
1652 return _IMP_em2d.ScoreFunction_set_variance_image(self, var)
1655 def get_version_info(self):
1656 """get_version_info(ScoreFunction self) -> VersionInfo"""
1657 return _IMP_em2d.ScoreFunction_get_version_info(self)
1661 """__str__(ScoreFunction self) -> std::string"""
1662 return _IMP_em2d.ScoreFunction___str__(self)
1666 """__repr__(ScoreFunction self) -> std::string"""
1667 return _IMP_em2d.ScoreFunction___repr__(self)
1672 return _object_cast_to_ScoreFunction(o)
1674 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1675 ScoreFunction_swigregister(ScoreFunction)
1677 class ChiSquaredScore(ScoreFunction):
1678 """Proxy of C++ IMP::em2d::ChiSquaredScore class."""
1680 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1683 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1684 this = _IMP_em2d.new_ChiSquaredScore()
1686 self.this.append(this)
1687 except __builtin__.Exception:
1691 """__str__(ChiSquaredScore self) -> std::string"""
1692 return _IMP_em2d.ChiSquaredScore___str__(self)
1696 """__repr__(ChiSquaredScore self) -> std::string"""
1697 return _IMP_em2d.ChiSquaredScore___repr__(self)
1702 return _object_cast_to_ChiSquaredScore(o)
1704 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1705 __del__ =
lambda self:
None
1706 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1707 ChiSquaredScore_swigregister(ChiSquaredScore)
1709 class EM2DScore(ScoreFunction):
1710 """Proxy of C++ IMP::em2d::EM2DScore class."""
1712 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1715 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1716 this = _IMP_em2d.new_EM2DScore()
1718 self.this.append(this)
1719 except __builtin__.Exception:
1723 """__str__(EM2DScore self) -> std::string"""
1724 return _IMP_em2d.EM2DScore___str__(self)
1728 """__repr__(EM2DScore self) -> std::string"""
1729 return _IMP_em2d.EM2DScore___repr__(self)
1734 return _object_cast_to_EM2DScore(o)
1736 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1737 __del__ =
lambda self:
None
1738 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1739 EM2DScore_swigregister(EM2DScore)
1741 class MeanAbsoluteDifference(ScoreFunction):
1742 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class."""
1744 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1747 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1748 this = _IMP_em2d.new_MeanAbsoluteDifference()
1750 self.this.append(this)
1751 except __builtin__.Exception:
1755 """__str__(MeanAbsoluteDifference self) -> std::string"""
1756 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1760 """__repr__(MeanAbsoluteDifference self) -> std::string"""
1761 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1766 return _object_cast_to_MeanAbsoluteDifference(o)
1768 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1769 __del__ =
lambda self:
None
1770 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1771 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1775 """read_selection_file(IMP::String fn) -> IMP::Strings"""
1776 return _IMP_em2d.read_selection_file(fn)
1779 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1780 return _IMP_em2d.create_filenames(number, basic_name, extension)
1782 """Proxy of C++ IMP::em2d::ProjectionParameters class."""
1784 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1786 def __init__(self, *args):
1788 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1789 __init__(IMP::em2d::ProjectionParameters self, Model m, ParticleIndex id) -> ProjectionParameters
1790 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1792 this = _IMP_em2d.new_ProjectionParameters(*args)
1794 self.this.append(this)
1795 except __builtin__.Exception:
1798 def show(self, *args):
1800 show(ProjectionParameters self, _ostream out)
1801 show(ProjectionParameters self)
1803 return _IMP_em2d.ProjectionParameters_show(self, *args)
1806 def setup_particle(*args):
1808 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
1809 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1811 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1813 setup_particle = staticmethod(setup_particle)
1814 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1815 __del__ =
lambda self:
None
1818 """get_keys() -> IMP::FloatKeys const &"""
1819 return _IMP_em2d.ProjectionParameters_get_keys()
1821 get_keys = staticmethod(get_keys)
1823 def set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values):
1824 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1825 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values)
1828 def get_is_setup(*args):
1830 get_is_setup(_ParticleAdaptor p) -> bool
1831 get_is_setup(Model m, ParticleIndex pi) -> bool
1833 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1835 get_is_setup = staticmethod(get_is_setup)
1837 def get_parameters_optimized(self):
1838 """get_parameters_optimized(ProjectionParameters self) -> bool"""
1839 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
1842 def get_translation(self):
1843 """get_translation(ProjectionParameters self) -> Vector3D"""
1844 return _IMP_em2d.ProjectionParameters_get_translation(self)
1847 def set_translation(self, v):
1848 """set_translation(ProjectionParameters self, Vector3D v)"""
1849 return _IMP_em2d.ProjectionParameters_set_translation(self, v)
1852 def get_rotation(self):
1853 """get_rotation(ProjectionParameters self) -> Rotation3D"""
1854 return _IMP_em2d.ProjectionParameters_get_rotation(self)
1857 def set_rotation(self, R):
1858 """set_rotation(ProjectionParameters self, Rotation3D R)"""
1859 return _IMP_em2d.ProjectionParameters_set_rotation(self, R)
1862 def set_parameters_optimized(self, tf):
1863 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
1864 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, tf)
1867 def get_quaternion_1(self):
1868 """get_quaternion_1(ProjectionParameters self) -> double"""
1869 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
1872 def set_quaternion_1(self, t):
1873 """set_quaternion_1(ProjectionParameters self, double t)"""
1874 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, t)
1877 def get_quaternion_2(self):
1878 """get_quaternion_2(ProjectionParameters self) -> double"""
1879 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
1882 def set_quaternion_2(self, t):
1883 """set_quaternion_2(ProjectionParameters self, double t)"""
1884 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, t)
1887 def get_quaternion_3(self):
1888 """get_quaternion_3(ProjectionParameters self) -> double"""
1889 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
1892 def set_quaternion_3(self, t):
1893 """set_quaternion_3(ProjectionParameters self, double t)"""
1894 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, t)
1897 def get_quaternion_4(self):
1898 """get_quaternion_4(ProjectionParameters self) -> double"""
1899 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
1902 def set_quaternion_4(self, t):
1903 """set_quaternion_4(ProjectionParameters self, double t)"""
1904 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, t)
1907 def get_translation_x(self):
1908 """get_translation_x(ProjectionParameters self) -> double"""
1909 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
1912 def set_translation_x(self, t):
1913 """set_translation_x(ProjectionParameters self, double t)"""
1914 return _IMP_em2d.ProjectionParameters_set_translation_x(self, t)
1917 def get_translation_y(self):
1918 """get_translation_y(ProjectionParameters self) -> double"""
1919 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
1922 def set_translation_y(self, t):
1923 """set_translation_y(ProjectionParameters self, double t)"""
1924 return _IMP_em2d.ProjectionParameters_set_translation_y(self, t)
1927 def add_attribute(self, *args):
1929 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
1930 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1931 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
1932 add_attribute(ProjectionParameters self, FloatsKey a0, IMP::Floats a1)
1933 add_attribute(ProjectionParameters self, IntsKey a0, IMP::Ints a1)
1934 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
1935 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1936 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
1938 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1941 def get_value(self, *args):
1943 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1944 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1945 get_value(ProjectionParameters self, FloatsKey a0) -> IMP::Floats
1946 get_value(ProjectionParameters self, IntsKey a0) -> IMP::Ints
1947 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1948 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1949 get_value(ProjectionParameters self, ObjectKey a0) -> Object
1951 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1954 def set_value(self, *args):
1956 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1957 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1958 set_value(ProjectionParameters self, FloatsKey a0, IMP::Floats a1)
1959 set_value(ProjectionParameters self, IntsKey a0, IMP::Ints a1)
1960 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1961 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1962 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
1964 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1967 def remove_attribute(self, *args):
1969 remove_attribute(ProjectionParameters self, FloatKey a0)
1970 remove_attribute(ProjectionParameters self, IntKey a0)
1971 remove_attribute(ProjectionParameters self, FloatsKey a0)
1972 remove_attribute(ProjectionParameters self, IntsKey a0)
1973 remove_attribute(ProjectionParameters self, StringKey a0)
1974 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1975 remove_attribute(ProjectionParameters self, ObjectKey a0)
1977 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1980 def has_attribute(self, *args):
1982 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1983 has_attribute(ProjectionParameters self, IntKey a0) -> bool
1984 has_attribute(ProjectionParameters self, FloatsKey a0) -> bool
1985 has_attribute(ProjectionParameters self, IntsKey a0) -> bool
1986 has_attribute(ProjectionParameters self, StringKey a0) -> bool
1987 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1988 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1990 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1993 def get_derivative(self, a0):
1994 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1995 return _IMP_em2d.ProjectionParameters_get_derivative(self, a0)
1999 """get_name(ProjectionParameters self) -> std::string"""
2000 return _IMP_em2d.ProjectionParameters_get_name(self)
2003 def clear_caches(self):
2004 """clear_caches(ProjectionParameters self)"""
2005 return _IMP_em2d.ProjectionParameters_clear_caches(self)
2008 def set_name(self, a0):
2009 """set_name(ProjectionParameters self, std::string a0)"""
2010 return _IMP_em2d.ProjectionParameters_set_name(self, a0)
2014 """set_check_level(ProjectionParameters self, IMP::CheckLevel a0)"""
2015 return _IMP_em2d.ProjectionParameters_set_check_level(self, a0)
2018 def add_to_derivative(self, a0, a1, a2):
2019 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2020 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, a0, a1, a2)
2023 def set_is_optimized(self, a0, a1):
2024 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
2025 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, a0, a1)
2028 def get_is_optimized(self, a0):
2029 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
2030 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, a0)
2034 """get_check_level(ProjectionParameters self) -> IMP::CheckLevel"""
2035 return _IMP_em2d.ProjectionParameters_get_check_level(self)
2038 def __eq__(self, *args):
2040 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
2041 __eq__(ProjectionParameters self, Particle d) -> bool
2043 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
2046 def __ne__(self, *args):
2048 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
2049 __ne__(ProjectionParameters self, Particle d) -> bool
2051 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
2054 def __le__(self, *args):
2056 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
2057 __le__(ProjectionParameters self, Particle d) -> bool
2059 return _IMP_em2d.ProjectionParameters___le__(self, *args)
2062 def __lt__(self, *args):
2064 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
2065 __lt__(ProjectionParameters self, Particle d) -> bool
2067 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
2070 def __ge__(self, *args):
2072 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
2073 __ge__(ProjectionParameters self, Particle d) -> bool
2075 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
2078 def __gt__(self, *args):
2080 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
2081 __gt__(ProjectionParameters self, Particle d) -> bool
2083 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
2087 """__hash__(ProjectionParameters self) -> std::size_t"""
2088 return _IMP_em2d.ProjectionParameters___hash__(self)
2092 """__str__(ProjectionParameters self) -> std::string"""
2093 return _IMP_em2d.ProjectionParameters___str__(self)
2097 """__repr__(ProjectionParameters self) -> std::string"""
2098 return _IMP_em2d.ProjectionParameters___repr__(self)
2100 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
2101 ProjectionParameters_swigregister(ProjectionParameters)
2103 def ProjectionParameters_setup_particle(*args):
2105 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2106 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2108 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2110 def ProjectionParameters_get_keys():
2111 """ProjectionParameters_get_keys() -> IMP::FloatKeys const &"""
2112 return _IMP_em2d.ProjectionParameters_get_keys()
2114 def ProjectionParameters_get_is_setup(*args):
2116 get_is_setup(_ParticleAdaptor p) -> bool
2117 ProjectionParameters_get_is_setup(Model m, ParticleIndex pi) -> bool
2119 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2122 def __lshift__(out, n):
2123 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
2124 return _IMP_em2d.__lshift__(out, n)
2126 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class."""
2128 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2130 def __init__(self, p):
2131 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
2132 this = _IMP_em2d.new_ProjectionParametersScoreState(p)
2134 self.this.append(this)
2135 except __builtin__.Exception:
2138 def do_before_evaluate(self):
2139 """do_before_evaluate(ProjectionParametersScoreState self)"""
2140 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
2143 def do_after_evaluate(self, da):
2144 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
2145 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, da)
2148 def do_get_inputs(self):
2149 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2150 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
2153 def do_get_outputs(self):
2154 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2155 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
2158 def get_version_info(self):
2159 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
2160 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
2164 """__str__(ProjectionParametersScoreState self) -> std::string"""
2165 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
2169 """__repr__(ProjectionParametersScoreState self) -> std::string"""
2170 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
2175 return _object_cast_to_ProjectionParametersScoreState(o)
2177 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
2178 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
2180 class ProjectionMask(object):
2181 """Proxy of C++ IMP::em2d::ProjectionMask class."""
2183 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2185 def __init__(self, *args, **kwargs):
2186 raise AttributeError(
"No constructor defined")
2188 def apply(self, m, v):
2189 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
2190 return _IMP_em2d.ProjectionMask_apply(self, m, v)
2193 def show(self, *args):
2195 show(ProjectionMask self, _ostream out)
2196 show(ProjectionMask self)
2198 return _IMP_em2d.ProjectionMask_show(self, *args)
2200 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
2201 __del__ =
lambda self:
None
2204 """__str__(ProjectionMask self) -> std::string"""
2205 return _IMP_em2d.ProjectionMask___str__(self)
2209 """__repr__(ProjectionMask self) -> std::string"""
2210 return _IMP_em2d.ProjectionMask___repr__(self)
2212 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
2213 ProjectionMask_swigregister(ProjectionMask)
2217 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2218 return _IMP_em2d.do_place(mask, m, v)
2219 class MasksManager(object):
2220 """Proxy of C++ IMP::em2d::MasksManager class."""
2222 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2224 def __init__(self, *args):
2226 __init__(IMP::em2d::MasksManager self) -> MasksManager
2227 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2229 this = _IMP_em2d.new_MasksManager(*args)
2231 self.this.append(this)
2232 except __builtin__.Exception:
2235 def setup_kernel(self, resolution, pixelsize):
2236 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2237 return _IMP_em2d.MasksManager_setup_kernel(self, resolution, pixelsize)
2240 def create_masks(self, ps):
2241 """create_masks(MasksManager self, IMP::ParticlesTemp const & ps)"""
2242 return _IMP_em2d.MasksManager_create_masks(self, ps)
2245 def create_mask(self, mass):
2246 """create_mask(MasksManager self, double mass)"""
2247 return _IMP_em2d.MasksManager_create_mask(self, mass)
2250 def find_mask(self, mass):
2251 """find_mask(MasksManager self, double mass) -> IMP::em2d::ProjectionMaskPtr"""
2252 return _IMP_em2d.MasksManager_find_mask(self, mass)
2255 def show(self, *args):
2257 show(MasksManager self, _ostream out)
2258 show(MasksManager self)
2260 return _IMP_em2d.MasksManager_show(self, *args)
2263 def get_number_of_masks(self):
2264 """get_number_of_masks(MasksManager self) -> unsigned int"""
2265 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2267 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2268 __del__ =
lambda self:
None
2271 """__str__(MasksManager self) -> std::string"""
2272 return _IMP_em2d.MasksManager___str__(self)
2276 """__repr__(MasksManager self) -> std::string"""
2277 return _IMP_em2d.MasksManager___repr__(self)
2279 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2280 MasksManager_swigregister(MasksManager)
2282 class ProjectingParameters(object):
2283 """Proxy of C++ IMP::em2d::ProjectingParameters class."""
2285 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2286 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2287 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2289 def __init__(self, *args):
2291 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2292 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2294 this = _IMP_em2d.new_ProjectingParameters(*args)
2296 self.this.append(this)
2297 except __builtin__.Exception:
2300 def show(self, *args):
2302 show(ProjectingParameters self, _ostream out)
2303 show(ProjectingParameters self)
2305 return _IMP_em2d.ProjectingParameters_show(self, *args)
2309 """__str__(ProjectingParameters self) -> std::string"""
2310 return _IMP_em2d.ProjectingParameters___str__(self)
2314 """__repr__(ProjectingParameters self) -> std::string"""
2315 return _IMP_em2d.ProjectingParameters___repr__(self)
2317 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2318 __del__ =
lambda self:
None
2319 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2320 ProjectingParameters_swigregister(ProjectingParameters)
2322 class ProjectingOptions(ProjectingParameters):
2323 """Proxy of C++ IMP::em2d::ProjectingOptions class."""
2325 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2326 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2327 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2328 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2330 def __init__(self, *args):
2332 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2333 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2334 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2336 this = _IMP_em2d.new_ProjectingOptions(*args)
2338 self.this.append(this)
2339 except __builtin__.Exception:
2342 def show(self, *args):
2344 show(ProjectingOptions self, _ostream out)
2345 show(ProjectingOptions self)
2347 return _IMP_em2d.ProjectingOptions_show(self, *args)
2351 """__str__(ProjectingOptions self) -> std::string"""
2352 return _IMP_em2d.ProjectingOptions___str__(self)
2356 """__repr__(ProjectingOptions self) -> std::string"""
2357 return _IMP_em2d.ProjectingOptions___repr__(self)
2359 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2360 __del__ =
lambda self:
None
2361 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2362 ProjectingOptions_swigregister(ProjectingOptions)
2367 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2368 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2369 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2370 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2372 return _IMP_em2d.get_projections(*args)
2376 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks, IMP::String name)
2377 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2378 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2380 return _IMP_em2d.get_projection(*args)
2383 """do_project_particles(IMP::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)"""
2384 return _IMP_em2d.do_project_particles(ps, m2, R, translation, options, masks)
2387 """create_evenly_distributed_projections(IMP::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2388 return _IMP_em2d.create_evenly_distributed_projections(ps, n, options)
2392 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2393 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2395 return _IMP_em2d.do_project_vectors(*args)
2398 """get_enclosing_image_size(IMP::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2399 return _IMP_em2d.get_enclosing_image_size(ps, pixel_size, slack)
2403 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2404 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2406 return _IMP_em2d.get_complete_alignment(input, m_to_align, apply)
2410 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2411 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2413 return _IMP_em2d.get_rotational_alignment(input, m_to_align, apply)
2417 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2418 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2420 return _IMP_em2d.get_translational_alignment(input, m_to_align, apply)
2424 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
2425 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
2427 return _IMP_em2d.get_complete_alignment_no_preprocessing(input, INPUT, POLAR1, m_to_align, POLAR2, apply)
2430 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2431 return _IMP_em2d.get_rotational_alignment_no_preprocessing(POLAR1, POLAR2)
2434 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2435 return _IMP_em2d.get_translational_alignment_no_preprocessing(M1, M2)
2438 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2439 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(center1, center2, AUTOC_POLAR1, AUTOC_POLAR2)
2443 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2444 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2446 return _IMP_em2d.write_vectors_as_pdb(*args)
2447 class Em2DRestraintParameters(ProjectingParameters):
2448 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class."""
2450 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2451 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2452 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2453 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2454 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2455 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2456 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2458 def __init__(self, *args):
2460 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2461 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2462 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2464 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2466 self.this.append(this)
2467 except __builtin__.Exception:
2470 def show(self, *args):
2472 show(Em2DRestraintParameters self, _ostream out)
2473 show(Em2DRestraintParameters self)
2475 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2479 """__str__(Em2DRestraintParameters self) -> std::string"""
2480 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2484 """__repr__(Em2DRestraintParameters self) -> std::string"""
2485 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2487 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2488 __del__ =
lambda self:
None
2489 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2490 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2491 cvar = _IMP_em2d.cvar
2492 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2493 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2494 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2497 """Proxy of C++ IMP::em2d::ProjectionFinder class."""
2499 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2502 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2503 this = _IMP_em2d.new_ProjectionFinder()
2505 self.this.append(this)
2506 except __builtin__.Exception:
2509 def setup(self, score_function, params):
2510 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2511 return _IMP_em2d.ProjectionFinder_setup(self, score_function, params)
2514 def set_subjects(self, subjects):
2515 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2516 return _IMP_em2d.ProjectionFinder_set_subjects(self, subjects)
2519 def set_projections(self, projections):
2520 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2521 return _IMP_em2d.ProjectionFinder_set_projections(self, projections)
2524 def set_variance_images(self, variances):
2525 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2526 return _IMP_em2d.ProjectionFinder_set_variance_images(self, variances)
2529 def set_model_particles(self, ps):
2530 """set_model_particles(ProjectionFinder self, IMP::ParticlesTemp const & ps)"""
2531 return _IMP_em2d.ProjectionFinder_set_model_particles(self, ps)
2534 def set_save_match_images(self, x):
2535 """set_save_match_images(ProjectionFinder self, bool x)"""
2536 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, x)
2539 def get_save_match_images(self):
2540 """get_save_match_images(ProjectionFinder self) -> bool"""
2541 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2544 def set_fast_mode(self, n):
2545 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2546 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, n)
2549 def get_registration_results(self):
2550 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2551 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2554 def get_coarse_registration(self):
2555 """get_coarse_registration(ProjectionFinder self)"""
2556 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2559 def get_complete_registration(self):
2560 """get_complete_registration(ProjectionFinder self)"""
2561 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2565 """get_global_score(ProjectionFinder self) -> double"""
2566 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2569 def show(self, out):
2570 """show(ProjectionFinder self, _ostream out)"""
2571 return _IMP_em2d.ProjectionFinder_show(self, out)
2574 def get_preprocessing_time(self):
2575 """get_preprocessing_time(ProjectionFinder self) -> double"""
2576 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2579 def get_coarse_registration_time(self):
2580 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2581 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2584 def get_fine_registration_time(self):
2585 """get_fine_registration_time(ProjectionFinder self) -> double"""
2586 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2589 def get_number_of_subjects(self):
2590 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2591 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2594 def set_number_of_class_averages_members(self, n_members):
2595 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2596 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, n_members)
2599 def get_number_of_projections(self):
2600 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2601 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2604 def get_version_info(self):
2605 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2606 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2610 """__str__(ProjectionFinder self) -> std::string"""
2611 return _IMP_em2d.ProjectionFinder___str__(self)
2615 """__repr__(ProjectionFinder self) -> std::string"""
2616 return _IMP_em2d.ProjectionFinder___repr__(self)
2621 return _object_cast_to_ProjectionFinder(o)
2623 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2624 ProjectionFinder_swigregister(ProjectionFinder)
2627 """Proxy of C++ IMP::em2d::Em2DRestraint class."""
2629 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2631 def __init__(self, m):
2632 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
2633 this = _IMP_em2d.new_Em2DRestraint(m)
2635 self.this.append(this)
2636 except __builtin__.Exception:
2639 def setup(self, score_function, params):
2640 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2641 return _IMP_em2d.Em2DRestraint_setup(self, score_function, params)
2644 def set_particles(self, particles_container):
2645 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2646 return _IMP_em2d.Em2DRestraint_set_particles(self, particles_container)
2649 def set_images(self, em_images):
2650 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2651 return _IMP_em2d.Em2DRestraint_set_images(self, em_images)
2654 def set_variance_images(self, variance_images):
2655 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2656 return _IMP_em2d.Em2DRestraint_set_variance_images(self, variance_images)
2659 def set_fast_mode(self, n):
2660 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2661 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, n)
2664 def set_coarse_registration_mode(self, opt):
2665 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2666 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, opt)
2669 def get_registration_results(self):
2670 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2671 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2674 def do_get_inputs(self):
2675 """do_get_inputs(Em2DRestraint self) -> IMP::ModelObjectsTemp"""
2676 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2679 def get_version_info(self):
2680 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2681 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2685 """__str__(Em2DRestraint self) -> std::string"""
2686 return _IMP_em2d.Em2DRestraint___str__(self)
2690 """__repr__(Em2DRestraint self) -> std::string"""
2691 return _IMP_em2d.Em2DRestraint___repr__(self)
2696 return _object_cast_to_Em2DRestraint(o)
2698 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2699 Em2DRestraint_swigregister(Em2DRestraint)
2701 class ClusterSet(object):
2702 """Proxy of C++ IMP::em2d::ClusterSet class."""
2704 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2706 def __init__(self, N):
2707 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2708 this = _IMP_em2d.new_ClusterSet(N)
2710 self.this.append(this)
2711 except __builtin__.Exception:
2714 def do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters):
2715 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2716 return _IMP_em2d.ClusterSet_do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters)
2719 def get_cluster_elements(self, id):
2720 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2721 return _IMP_em2d.ClusterSet_get_cluster_elements(self, id)
2724 def get_clusters_below_cutoff(self, cutoff):
2725 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2726 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, cutoff)
2729 def get_cluster_formed_at_step(self, step):
2730 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2731 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, step)
2734 def get_distance_at_step(self, step):
2735 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2736 return _IMP_em2d.ClusterSet_get_distance_at_step(self, step)
2739 def get_id_for_cluster_at_step(self, step):
2740 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2741 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, step)
2744 def get_linkage_matrix(self):
2745 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2746 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2749 def get_linkage_matrix_in_matlab_format(self):
2750 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2751 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2754 def get_number_of_steps(self):
2755 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2756 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2759 def show(self, out):
2760 """show(ClusterSet self, _ostream out)"""
2761 return _IMP_em2d.ClusterSet_show(self, out)
2765 """__str__(ClusterSet self) -> std::string"""
2766 return _IMP_em2d.ClusterSet___str__(self)
2770 """__repr__(ClusterSet self) -> std::string"""
2771 return _IMP_em2d.ClusterSet___repr__(self)
2773 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2774 __del__ =
lambda self:
None
2775 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2776 ClusterSet_swigregister(ClusterSet)
2778 class SingleLinkage(object):
2779 """Proxy of C++ IMP::em2d::SingleLinkage class."""
2781 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2784 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2785 this = _IMP_em2d.new_SingleLinkage()
2787 self.this.append(this)
2788 except __builtin__.Exception:
2791 def __call__(self, id1, id2, cluster_set, distances):
2792 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2793 return _IMP_em2d.SingleLinkage___call__(self, id1, id2, cluster_set, distances)
2796 def show(self, out):
2797 """show(SingleLinkage self, _ostream out)"""
2798 return _IMP_em2d.SingleLinkage_show(self, out)
2802 """__str__(SingleLinkage self) -> std::string"""
2803 return _IMP_em2d.SingleLinkage___str__(self)
2807 """__repr__(SingleLinkage self) -> std::string"""
2808 return _IMP_em2d.SingleLinkage___repr__(self)
2810 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2811 __del__ =
lambda self:
None
2812 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2813 SingleLinkage_swigregister(SingleLinkage)
2815 class CompleteLinkage(object):
2816 """Proxy of C++ IMP::em2d::CompleteLinkage class."""
2818 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2821 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2822 this = _IMP_em2d.new_CompleteLinkage()
2824 self.this.append(this)
2825 except __builtin__.Exception:
2828 def __call__(self, id1, id2, cluster_set, distances):
2829 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2830 return _IMP_em2d.CompleteLinkage___call__(self, id1, id2, cluster_set, distances)
2833 def show(self, out):
2834 """show(CompleteLinkage self, _ostream out)"""
2835 return _IMP_em2d.CompleteLinkage_show(self, out)
2839 """__str__(CompleteLinkage self) -> std::string"""
2840 return _IMP_em2d.CompleteLinkage___str__(self)
2844 """__repr__(CompleteLinkage self) -> std::string"""
2845 return _IMP_em2d.CompleteLinkage___repr__(self)
2847 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2848 __del__ =
lambda self:
None
2849 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2850 CompleteLinkage_swigregister(CompleteLinkage)
2852 class AverageDistanceLinkage(object):
2853 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class."""
2855 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2858 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2859 this = _IMP_em2d.new_AverageDistanceLinkage()
2861 self.this.append(this)
2862 except __builtin__.Exception:
2865 def __call__(self, id1, id2, cluster_set, distances):
2866 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2867 return _IMP_em2d.AverageDistanceLinkage___call__(self, id1, id2, cluster_set, distances)
2870 def show(self, out):
2871 """show(AverageDistanceLinkage self, _ostream out)"""
2872 return _IMP_em2d.AverageDistanceLinkage_show(self, out)
2876 """__str__(AverageDistanceLinkage self) -> std::string"""
2877 return _IMP_em2d.AverageDistanceLinkage___str__(self)
2881 """__repr__(AverageDistanceLinkage self) -> std::string"""
2882 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2884 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2885 __del__ =
lambda self:
None
2886 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2887 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2890 """Proxy of C++ IMP::em2d::CollisionCrossSection class."""
2892 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2894 def __init__(self, n_projections, resolution, pixel_size, projection_image_size):
2895 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2896 this = _IMP_em2d.new_CollisionCrossSection(n_projections, resolution, pixel_size, projection_image_size)
2898 self.this.append(this)
2899 except __builtin__.Exception:
2902 def set_model_particles(self, ps):
2903 """set_model_particles(CollisionCrossSection self, IMP::ParticlesTemp const & ps)"""
2904 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, ps)
2908 """get_ccs(CollisionCrossSection self) -> double"""
2909 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2912 def show(self, out):
2913 """show(CollisionCrossSection self, _ostream out)"""
2914 return _IMP_em2d.CollisionCrossSection_show(self, out)
2917 def get_version_info(self):
2918 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2919 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2923 """__str__(CollisionCrossSection self) -> std::string"""
2924 return _IMP_em2d.CollisionCrossSection___str__(self)
2928 """__repr__(CollisionCrossSection self) -> std::string"""
2929 return _IMP_em2d.CollisionCrossSection___repr__(self)
2934 return _object_cast_to_CollisionCrossSection(o)
2936 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2937 CollisionCrossSection_swigregister(CollisionCrossSection)
2940 """Proxy of C++ IMP::em2d::GridStates class."""
2942 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2944 def __init__(self, *args):
2946 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::String const & name) -> GridStates
2947 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2949 this = _IMP_em2d.new_GridStates(*args)
2951 self.this.append(this)
2952 except __builtin__.Exception:
2955 def get_position(self, i):
2956 """get_position(GridStates self, unsigned int i) -> Vector3D"""
2957 return _IMP_em2d.GridStates_get_position(self, i)
2960 def get_orientation(self, i):
2961 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2962 return _IMP_em2d.GridStates_get_orientation(self, i)
2965 def get_version_info(self):
2966 """get_version_info(GridStates self) -> VersionInfo"""
2967 return _IMP_em2d.GridStates_get_version_info(self)
2971 """__str__(GridStates self) -> std::string"""
2972 return _IMP_em2d.GridStates___str__(self)
2976 """__repr__(GridStates self) -> std::string"""
2977 return _IMP_em2d.GridStates___repr__(self)
2982 return _object_cast_to_GridStates(o)
2984 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2985 GridStates_swigregister(GridStates)
2987 class ProjectionStates(GridStates):
2988 """Proxy of C++ IMP::em2d::ProjectionStates class."""
2990 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2992 def __init__(self, *args):
2994 __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
2995 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections) -> ProjectionStates
2997 this = _IMP_em2d.new_ProjectionStates(*args)
2999 self.this.append(this)
3000 except __builtin__.Exception:
3004 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
3005 return _IMP_em2d.ProjectionStates_get_projection(self, i)
3009 """__str__(ProjectionStates self) -> std::string"""
3010 return _IMP_em2d.ProjectionStates___str__(self)
3014 """__repr__(ProjectionStates self) -> std::string"""
3015 return _IMP_em2d.ProjectionStates___repr__(self)
3020 return _object_cast_to_ProjectionStates(o)
3022 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
3023 ProjectionStates_swigregister(ProjectionStates)
3026 """Proxy of C++ IMP::em2d::DistanceFilter class."""
3028 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3030 def __init__(self, subset_to_act_on, subset_to_restrain, ps_table, max_distance):
3031 """__init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table, double max_distance) -> DistanceFilter"""
3032 this = _IMP_em2d.new_DistanceFilter(subset_to_act_on, subset_to_restrain, ps_table, max_distance)
3034 self.this.append(this)
3035 except __builtin__.Exception:
3038 def show(self, *args):
3040 show(DistanceFilter self, _ostream out)
3041 show(DistanceFilter self)
3043 return _IMP_em2d.DistanceFilter_show(self, *args)
3046 def get_version_info(self):
3047 """get_version_info(DistanceFilter self) -> VersionInfo"""
3048 return _IMP_em2d.DistanceFilter_get_version_info(self)
3052 """__str__(DistanceFilter self) -> std::string"""
3053 return _IMP_em2d.DistanceFilter___str__(self)
3057 """__repr__(DistanceFilter self) -> std::string"""
3058 return _IMP_em2d.DistanceFilter___repr__(self)
3063 return _object_cast_to_DistanceFilter(o)
3065 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
3066 DistanceFilter_swigregister(DistanceFilter)
3069 """Proxy of C++ IMP::em2d::DistanceFilterTable class."""
3071 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3073 def __init__(self, subset_to_act_on, ps_table, max_distance):
3074 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
3075 this = _IMP_em2d.new_DistanceFilterTable(subset_to_act_on, ps_table, max_distance)
3077 self.this.append(this)
3078 except __builtin__.Exception:
3081 def show(self, *args):
3083 show(DistanceFilterTable self, _ostream out)
3084 show(DistanceFilterTable self)
3086 return _IMP_em2d.DistanceFilterTable_show(self, *args)
3089 def get_version_info(self):
3090 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
3091 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
3095 """__str__(DistanceFilterTable self) -> std::string"""
3096 return _IMP_em2d.DistanceFilterTable___str__(self)
3100 """__repr__(DistanceFilterTable self) -> std::string"""
3101 return _IMP_em2d.DistanceFilterTable___repr__(self)
3106 return _object_cast_to_DistanceFilterTable(o)
3108 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
3109 DistanceFilterTable_swigregister(DistanceFilterTable)
3111 class IntsOrder(object):
3112 """Proxy of C++ IMP::em2d::IntsOrder class."""
3114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3115 __repr__ = _swig_repr
3117 def __call__(self, a, b):
3118 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
3119 return _IMP_em2d.IntsOrder___call__(self, a, b)
3123 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
3124 this = _IMP_em2d.new_IntsOrder()
3126 self.this.append(this)
3127 except __builtin__.Exception:
3129 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
3130 __del__ =
lambda self:
None
3131 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
3132 IntsOrder_swigregister(IntsOrder)
3135 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class."""
3137 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3139 def get_version_info(self):
3140 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
3141 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
3144 def __init__(self, scf, rbs, img):
3145 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
3146 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(scf, rbs, img)
3148 self.this.append(this)
3149 except __builtin__.Exception:
3152 def set_projecting_parameters(self, p):
3153 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
3154 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, p)
3157 def set_orientations(self, rb, rots):
3158 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
3159 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, rb, rots)
3162 def get_number_of_masks(self, rb):
3163 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
3164 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, rb)
3168 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
3169 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
3173 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
3174 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
3179 return _object_cast_to_RigidBodiesImageFitRestraint(o)
3181 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
3182 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
3186 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
3187 return _IMP_em2d.get_unique_index(rot)
3189 """Proxy of C++ IMP::em2d::RelativePositionMover class."""
3191 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3193 def __init__(self, d, max_translation, max_rotation):
3194 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
3195 this = _IMP_em2d.new_RelativePositionMover(d, max_translation, max_rotation)
3197 self.this.append(this)
3198 except __builtin__.Exception:
3201 def add_internal_transformations(self, d, transforms):
3202 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
3203 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, d, transforms)
3206 def set_random_move_probability(self, p):
3207 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
3208 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, p)
3212 """__str__(RelativePositionMover self) -> std::string"""
3213 return _IMP_em2d.RelativePositionMover___str__(self)
3217 """__repr__(RelativePositionMover self) -> std::string"""
3218 return _IMP_em2d.RelativePositionMover___repr__(self)
3223 return _object_cast_to_RelativePositionMover(o)
3225 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
3226 RelativePositionMover_swigregister(RelativePositionMover)
3229 """Proxy of C++ IMP::em2d::DummyRestraint class."""
3231 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3233 def __init__(self, p, q):
3234 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
3235 this = _IMP_em2d.new_DummyRestraint(p, q)
3237 self.this.append(this)
3238 except __builtin__.Exception:
3241 def show(self, *args):
3243 show(DummyRestraint self, _ostream out)
3244 show(DummyRestraint self)
3246 return _IMP_em2d.DummyRestraint_show(self, *args)
3249 def do_get_inputs(self):
3250 """do_get_inputs(DummyRestraint self) -> IMP::ModelObjectsTemp"""
3251 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
3254 def get_version_info(self):
3255 """get_version_info(DummyRestraint self) -> VersionInfo"""
3256 return _IMP_em2d.DummyRestraint_get_version_info(self)
3260 """__str__(DummyRestraint self) -> std::string"""
3261 return _IMP_em2d.DummyRestraint___str__(self)
3265 """__repr__(DummyRestraint self) -> std::string"""
3266 return _IMP_em2d.DummyRestraint___repr__(self)
3271 return _object_cast_to_DummyRestraint(o)
3273 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3274 DummyRestraint_swigregister(DummyRestraint)
3277 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class."""
3279 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3281 def __init__(self, sc):
3282 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3283 this = _IMP_em2d.new_ParticlesDummyRestraint(sc)
3285 self.this.append(this)
3286 except __builtin__.Exception:
3289 def show(self, *args):
3291 show(ParticlesDummyRestraint self, _ostream out)
3292 show(ParticlesDummyRestraint self)
3294 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3297 def do_get_inputs(self):
3298 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::ModelObjectsTemp"""
3299 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3302 def get_version_info(self):
3303 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3304 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3308 """__str__(ParticlesDummyRestraint self) -> std::string"""
3309 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3313 """__repr__(ParticlesDummyRestraint self) -> std::string"""
3314 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3319 return _object_cast_to_ParticlesDummyRestraint(o)
3321 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3322 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3325 """Proxy of C++ IMP::em2d::PCAFitRestraint class."""
3327 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3329 def __init__(self, particles, image_files, pixel_size, resolution=10.0, projection_number=100, reuse_direction=False, n_components=1):
3331 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100, bool reuse_direction=False, unsigned int n_components=1) -> PCAFitRestraint
3332 __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
3333 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100) -> PCAFitRestraint
3334 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
3335 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
3337 this = _IMP_em2d.new_PCAFitRestraint(particles, image_files, pixel_size, resolution, projection_number, reuse_direction, n_components)
3339 self.this.append(this)
3340 except __builtin__.Exception:
3343 def get_projection_number(self):
3344 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
3345 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
3348 def set_projection_number(self, n):
3349 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
3350 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, n)
3353 def get_transformation(self, image_number):
3354 """get_transformation(PCAFitRestraint self, unsigned int image_number) -> Transformation3D"""
3355 return _IMP_em2d.PCAFitRestraint_get_transformation(self, image_number)
3359 """get_cross_correlation_coefficient(PCAFitRestraint self, unsigned int image_number) -> double"""
3360 return _IMP_em2d.PCAFitRestraint_get_cross_correlation_coefficient(self, image_number)
3363 def write_best_projections(self, file_name, evaluate=False):
3365 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
3366 write_best_projections(PCAFitRestraint self, std::string file_name)
3368 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, file_name, evaluate)
3371 def do_get_inputs(self):
3372 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3373 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
3376 def get_version_info(self):
3377 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3378 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
3382 """__str__(PCAFitRestraint self) -> std::string"""
3383 return _IMP_em2d.PCAFitRestraint___str__(self)
3387 """__repr__(PCAFitRestraint self) -> std::string"""
3388 return _IMP_em2d.PCAFitRestraint___repr__(self)
3393 return _object_cast_to_em2dPCAFitRestraint(o)
3395 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
3396 PCAFitRestraint_swigregister(PCAFitRestraint)
3399 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class."""
3401 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3402 __repr__ = _swig_repr
3404 def __init__(self, *args):
3406 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3407 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3408 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3410 this = _IMP_em2d.new_ResultAlign2D(*args)
3412 self.this.append(this)
3413 except __builtin__.Exception:
3415 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3416 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3420 return str((self.first, self.second))
3421 def __getitem__(self, index):
3426 def __setitem__(self, index, val):
3431 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3432 __del__ =
lambda self:
None
3433 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3434 ResultAlign2D_swigregister(ResultAlign2D)
3437 def _do_hierarchical_clustering_single_linkage(distances):
3438 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3439 return _IMP_em2d._do_hierarchical_clustering_single_linkage(distances)
3441 def _do_hierarchical_clustering_complete_linkage(distances):
3442 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3443 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(distances)
3445 def _do_hierarchical_clustering_average_distance_linkage(distances):
3446 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3447 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(distances)
3449 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3450 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3451 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3455 """get_module_version() -> std::string const"""
3456 return _IMP_em2d.get_module_version()
3459 """get_example_path(std::string fname) -> std::string"""
3460 return _IMP_em2d.get_example_path(fname)
3463 """get_data_path(std::string fname) -> std::string"""
3464 return _IMP_em2d.get_data_path(fname)
3466 from .
import _version_check
double get_shift_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Distance between the two in-plane translations.
Images create_evenly_distributed_projections(const ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
void get_autocorrelation2d_no_preprocessing(const cv::Mat &M, cv::Mat &corr)
Autocorrelation without preprocessing.
void do_morphologic_contrast_enhancement(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
CheckLevel get_check_level()
Get the current audit mode.
void apply_threshold(cv::Mat &m, cv::Mat &result, double threshold=0.0)
em2d::Images get_projections(const ParticlesTemp &ps, const algebra::SphericalVector3Ds &vs, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
std::string get_module_version()
Return the version of this module, as a string.
IMPEM2D_BEGIN_NAMESPACE Strings read_selection_file(String fn)
Reads a selection file.
ResultAlign2D get_complete_alignment_with_centers_no_preprocessing(const algebra::Vector2D ¢er1, const algebra::Vector2D ¢er2, const cv::Mat &AUTOC_POLAR1, const cv::Mat &AUTOC_POLAR2)
Strings create_filenames(unsigned long number, String basic_name, String extension)
Various classes to hold sets of particles.
ResultAlign2D get_translational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
Aligns two matrices translationally.
void get_correlation2d(const cv::Mat &A, const cv::Mat &B, cv::Mat &corr)
Correlation matrix between two 2D matrices using FFT.
cvIntMat create_circular_mask(int rows, int cols, int radius)
ResultAlign2D get_complete_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
void do_dilate_and_shrink_warp(cv::Mat &m, const cv::Mat &grayscale, cv::Mat &kernel)
(U. Adiga, 2005)
em2d::ResultAlign2D get_rotational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
RegistrationResults get_evenly_distributed_registration_results(unsigned int n_projections)
void apply_variance_filter(Image *input, Image *filtered, int kernelsize)
void apply_diffusion_filter(Image *input, Image *filtered, double beta, double pixelsize, int time_steps)
int do_labeling(const cvIntMat &m, cvIntMat &mat_to_label)
Labeling function for a matrix.
Make CGAL functionality available to IMP.
MatchTemplateResults get_best_template_matches(const cv::Mat &m, const cv::Mat &templ, unsigned int n)
Modify the transformation of a rigid body.
void do_project_particles(const ParticlesTemp &ps, cv::Mat &m2, const algebra::Rotation3D &R, const algebra::Vector3D &translation, const ProjectingOptions &options, MasksManagerPtr masks)
Projects a set of particles. This is the core function that others call.
void get_autocorrelation2d(const cv::Mat &m, cv::Mat &corr)
Computes the autocorrelation matrix.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void apply_mean_outside_mask(Image *img, double radius)
Several general purpose optimizers from the GNU Scientific Library (GSL).
double get_rotation_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Composable functors to implement scores via compile-time composition.
ResultAlign2D get_rotational_alignment_no_preprocessing(const cv::Mat &POLAR1, const cv::Mat &POLAR2)
void get_fft_using_optimal_size(const cv::Mat &m, cv::Mat &M)
Floats get_histogram(Image *img, int bins)
void write_matrix(cv::Mat &m, std::string name)
Quick and dirty way of writing a OpenCV matrix to a Spider image.
void do_subtract_images(Image *first, Image *second, Image *result)
Code to compute statistical measures.
RegistrationResults get_random_registration_results(unsigned int n, double maximum_shift=5.0)
Provides a set of random registration results (or parameters)
algebra::Vector2Ds do_project_vectors(const algebra::Vector3Ds &ps, const algebra::Rotation3D &R, const algebra::Vector3D &translation)
Project the points contained in Vector3Ds to gen vectors in 2D.
void write_vectors_as_pdb(const algebra::Vector2Ds vs, const String filename)
Common base class for heavy weight IMP objects.
ScoreStates maintain invariants in the Model.
void apply_circular_mask(const cv::Mat &mat, cv::Mat &result, int radius, double value=0.0)
Images read_images(const Strings &names, const ImageReaderWriter *rw)
void write_registration_results(String filename, const RegistrationResults &results)
Writes a set of registration results.
Basic utilities for handling cryo-electron microscopy 3D density maps.
void crop(Image *img, const IntPair ¢er, int size)
void get_morphologic_gradient(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel)
void apply_mask(const cv::Mat &m, cv::Mat &result, const cvIntMat &mask, double val)
Applies a binary mask to an image.
double get_cross_correlation_coefficient(Image *im1, Image *im2)
Cross correlation between two images.
void save_images(Images images, const Strings &names, const ImageReaderWriter *rw)
void get_domes(cv::Mat &m, cv::Mat &result, double h)
Gets the domes of m with height h.
void do_normalize(Image *im, bool force=false)
Interface to specialized Particle types (e.g. atoms)
void do_matrix_to_image_flip(cv::Mat &m)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
ResultAlign2D get_translational_alignment_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2)
void get_correlation2d_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2, cv::Mat &corr)
Correlation without preprocessing.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
unsigned int get_enclosing_image_size(const ParticlesTemp &ps, double pixel_size, unsigned int slack)
Get an automatic size for an image that contains the particles.
std::pair< algebra::Transformation2D, double > ResultAlign2D
void do_resample_polar(Image *im1, Image *im2, const PolarResamplingParameters &polar_params)
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
em2d::ResultAlign2D get_complete_alignment_no_preprocessing(const cv::Mat &input, const cv::Mat &INPUT, const cv::Mat &POLAR1, cv::Mat &m_to_align, const cv::Mat &POLAR2, bool apply=false)
double get_overlap_percentage(cv::Mat &m1, cv::Mat &m2, const IntPair ¢er)
RegistrationResults read_registration_results(const String &filename)
Reads a set of registration results.
void get_diffusion_filtering_partial_derivative(const cv::Mat &m, cv::Mat &der, double dx, double dy, double ang)
Ints get_unique_index(const algebra::Rotation3D &rot)
Map a rotation to a list of 4 "unique" integers.
double get_global_score(const RegistrationResults &RRs)
void do_place(cv::Mat &mask, cv::Mat &m, const algebra::Vector2D &v)
void do_morphologic_reconstruction(const cv::Mat &mask, cv::Mat &marker, int neighbors_mode=4)
morphologic grayscale reconstruction (L Vincent, 1993)
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
Divide-and-conquer inferential optimization in discrete space.
Support for small angle X-ray scattering (SAXS) data.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...
A restraint is a term in an IMP ScoringFunction.
void get_spectrum(const cv::Mat &m, cv::Mat &real, cv::Mat &imag)
Computes the fft of a matrix and returns the real and imaginary matrices.