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, StringKey a0, IMP::String a1)
1933 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1934 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
1936 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1939 def get_value(self, *args):
1941 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1942 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1943 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1944 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1945 get_value(ProjectionParameters self, ObjectKey a0) -> Object
1947 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1950 def set_value(self, *args):
1952 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1953 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1954 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1955 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1956 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
1958 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1961 def remove_attribute(self, *args):
1963 remove_attribute(ProjectionParameters self, FloatKey a0)
1964 remove_attribute(ProjectionParameters self, IntKey a0)
1965 remove_attribute(ProjectionParameters self, StringKey a0)
1966 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1967 remove_attribute(ProjectionParameters self, ObjectKey a0)
1969 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1972 def has_attribute(self, *args):
1974 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1975 has_attribute(ProjectionParameters self, IntKey a0) -> bool
1976 has_attribute(ProjectionParameters self, StringKey a0) -> bool
1977 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1978 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1980 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1983 def get_derivative(self, a0):
1984 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1985 return _IMP_em2d.ProjectionParameters_get_derivative(self, a0)
1989 """get_name(ProjectionParameters self) -> std::string"""
1990 return _IMP_em2d.ProjectionParameters_get_name(self)
1993 def clear_caches(self):
1994 """clear_caches(ProjectionParameters self)"""
1995 return _IMP_em2d.ProjectionParameters_clear_caches(self)
1998 def set_name(self, a0):
1999 """set_name(ProjectionParameters self, std::string a0)"""
2000 return _IMP_em2d.ProjectionParameters_set_name(self, a0)
2004 """set_check_level(ProjectionParameters self, IMP::CheckLevel a0)"""
2005 return _IMP_em2d.ProjectionParameters_set_check_level(self, a0)
2008 def add_to_derivative(self, a0, a1, a2):
2009 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2010 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, a0, a1, a2)
2013 def set_is_optimized(self, a0, a1):
2014 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
2015 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, a0, a1)
2018 def get_is_optimized(self, a0):
2019 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
2020 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, a0)
2024 """get_check_level(ProjectionParameters self) -> IMP::CheckLevel"""
2025 return _IMP_em2d.ProjectionParameters_get_check_level(self)
2028 def __eq__(self, *args):
2030 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
2031 __eq__(ProjectionParameters self, Particle d) -> bool
2033 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
2036 def __ne__(self, *args):
2038 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
2039 __ne__(ProjectionParameters self, Particle d) -> bool
2041 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
2044 def __le__(self, *args):
2046 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
2047 __le__(ProjectionParameters self, Particle d) -> bool
2049 return _IMP_em2d.ProjectionParameters___le__(self, *args)
2052 def __lt__(self, *args):
2054 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
2055 __lt__(ProjectionParameters self, Particle d) -> bool
2057 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
2060 def __ge__(self, *args):
2062 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
2063 __ge__(ProjectionParameters self, Particle d) -> bool
2065 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
2068 def __gt__(self, *args):
2070 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
2071 __gt__(ProjectionParameters self, Particle d) -> bool
2073 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
2077 """__hash__(ProjectionParameters self) -> std::size_t"""
2078 return _IMP_em2d.ProjectionParameters___hash__(self)
2082 """__str__(ProjectionParameters self) -> std::string"""
2083 return _IMP_em2d.ProjectionParameters___str__(self)
2087 """__repr__(ProjectionParameters self) -> std::string"""
2088 return _IMP_em2d.ProjectionParameters___repr__(self)
2090 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
2091 ProjectionParameters_swigregister(ProjectionParameters)
2093 def ProjectionParameters_setup_particle(*args):
2095 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2096 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2098 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2100 def ProjectionParameters_get_keys():
2101 """ProjectionParameters_get_keys() -> IMP::FloatKeys const &"""
2102 return _IMP_em2d.ProjectionParameters_get_keys()
2104 def ProjectionParameters_get_is_setup(*args):
2106 get_is_setup(_ParticleAdaptor p) -> bool
2107 ProjectionParameters_get_is_setup(Model m, ParticleIndex pi) -> bool
2109 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2112 def __lshift__(out, n):
2113 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
2114 return _IMP_em2d.__lshift__(out, n)
2116 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class."""
2118 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2120 def __init__(self, p):
2121 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
2122 this = _IMP_em2d.new_ProjectionParametersScoreState(p)
2124 self.this.append(this)
2125 except __builtin__.Exception:
2128 def do_before_evaluate(self):
2129 """do_before_evaluate(ProjectionParametersScoreState self)"""
2130 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
2133 def do_after_evaluate(self, da):
2134 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
2135 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, da)
2138 def do_get_inputs(self):
2139 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2140 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
2143 def do_get_outputs(self):
2144 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2145 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
2148 def get_version_info(self):
2149 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
2150 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
2154 """__str__(ProjectionParametersScoreState self) -> std::string"""
2155 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
2159 """__repr__(ProjectionParametersScoreState self) -> std::string"""
2160 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
2165 return _object_cast_to_ProjectionParametersScoreState(o)
2167 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
2168 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
2170 class ProjectionMask(object):
2171 """Proxy of C++ IMP::em2d::ProjectionMask class."""
2173 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2175 def __init__(self, *args, **kwargs):
2176 raise AttributeError(
"No constructor defined")
2178 def apply(self, m, v):
2179 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
2180 return _IMP_em2d.ProjectionMask_apply(self, m, v)
2183 def show(self, *args):
2185 show(ProjectionMask self, _ostream out)
2186 show(ProjectionMask self)
2188 return _IMP_em2d.ProjectionMask_show(self, *args)
2190 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
2191 __del__ =
lambda self:
None
2194 """__str__(ProjectionMask self) -> std::string"""
2195 return _IMP_em2d.ProjectionMask___str__(self)
2199 """__repr__(ProjectionMask self) -> std::string"""
2200 return _IMP_em2d.ProjectionMask___repr__(self)
2202 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
2203 ProjectionMask_swigregister(ProjectionMask)
2207 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2208 return _IMP_em2d.do_place(mask, m, v)
2209 class MasksManager(object):
2210 """Proxy of C++ IMP::em2d::MasksManager class."""
2212 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2214 def __init__(self, *args):
2216 __init__(IMP::em2d::MasksManager self) -> MasksManager
2217 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2219 this = _IMP_em2d.new_MasksManager(*args)
2221 self.this.append(this)
2222 except __builtin__.Exception:
2225 def setup_kernel(self, resolution, pixelsize):
2226 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2227 return _IMP_em2d.MasksManager_setup_kernel(self, resolution, pixelsize)
2230 def create_masks(self, ps):
2231 """create_masks(MasksManager self, IMP::ParticlesTemp const & ps)"""
2232 return _IMP_em2d.MasksManager_create_masks(self, ps)
2235 def create_mask(self, mass):
2236 """create_mask(MasksManager self, double mass)"""
2237 return _IMP_em2d.MasksManager_create_mask(self, mass)
2240 def find_mask(self, mass):
2241 """find_mask(MasksManager self, double mass) -> IMP::em2d::ProjectionMaskPtr"""
2242 return _IMP_em2d.MasksManager_find_mask(self, mass)
2245 def show(self, *args):
2247 show(MasksManager self, _ostream out)
2248 show(MasksManager self)
2250 return _IMP_em2d.MasksManager_show(self, *args)
2253 def get_number_of_masks(self):
2254 """get_number_of_masks(MasksManager self) -> unsigned int"""
2255 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2257 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2258 __del__ =
lambda self:
None
2261 """__str__(MasksManager self) -> std::string"""
2262 return _IMP_em2d.MasksManager___str__(self)
2266 """__repr__(MasksManager self) -> std::string"""
2267 return _IMP_em2d.MasksManager___repr__(self)
2269 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2270 MasksManager_swigregister(MasksManager)
2272 class ProjectingParameters(object):
2273 """Proxy of C++ IMP::em2d::ProjectingParameters class."""
2275 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2276 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2277 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2279 def __init__(self, *args):
2281 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2282 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2284 this = _IMP_em2d.new_ProjectingParameters(*args)
2286 self.this.append(this)
2287 except __builtin__.Exception:
2290 def show(self, *args):
2292 show(ProjectingParameters self, _ostream out)
2293 show(ProjectingParameters self)
2295 return _IMP_em2d.ProjectingParameters_show(self, *args)
2299 """__str__(ProjectingParameters self) -> std::string"""
2300 return _IMP_em2d.ProjectingParameters___str__(self)
2304 """__repr__(ProjectingParameters self) -> std::string"""
2305 return _IMP_em2d.ProjectingParameters___repr__(self)
2307 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2308 __del__ =
lambda self:
None
2309 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2310 ProjectingParameters_swigregister(ProjectingParameters)
2312 class ProjectingOptions(ProjectingParameters):
2313 """Proxy of C++ IMP::em2d::ProjectingOptions class."""
2315 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2316 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2317 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2318 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2320 def __init__(self, *args):
2322 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2323 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2324 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2326 this = _IMP_em2d.new_ProjectingOptions(*args)
2328 self.this.append(this)
2329 except __builtin__.Exception:
2332 def show(self, *args):
2334 show(ProjectingOptions self, _ostream out)
2335 show(ProjectingOptions self)
2337 return _IMP_em2d.ProjectingOptions_show(self, *args)
2341 """__str__(ProjectingOptions self) -> std::string"""
2342 return _IMP_em2d.ProjectingOptions___str__(self)
2346 """__repr__(ProjectingOptions self) -> std::string"""
2347 return _IMP_em2d.ProjectingOptions___repr__(self)
2349 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2350 __del__ =
lambda self:
None
2351 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2352 ProjectingOptions_swigregister(ProjectingOptions)
2357 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2358 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2359 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2360 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2362 return _IMP_em2d.get_projections(*args)
2366 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks, IMP::String name)
2367 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2368 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2370 return _IMP_em2d.get_projection(*args)
2373 """do_project_particles(IMP::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)"""
2374 return _IMP_em2d.do_project_particles(ps, m2, R, translation, options, masks)
2377 """create_evenly_distributed_projections(IMP::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2378 return _IMP_em2d.create_evenly_distributed_projections(ps, n, options)
2382 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2383 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2385 return _IMP_em2d.do_project_vectors(*args)
2388 """get_enclosing_image_size(IMP::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2389 return _IMP_em2d.get_enclosing_image_size(ps, pixel_size, slack)
2393 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2394 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2396 return _IMP_em2d.get_complete_alignment(input, m_to_align, apply)
2400 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2401 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2403 return _IMP_em2d.get_rotational_alignment(input, m_to_align, apply)
2407 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2408 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2410 return _IMP_em2d.get_translational_alignment(input, m_to_align, apply)
2414 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
2415 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
2417 return _IMP_em2d.get_complete_alignment_no_preprocessing(input, INPUT, POLAR1, m_to_align, POLAR2, apply)
2420 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2421 return _IMP_em2d.get_rotational_alignment_no_preprocessing(POLAR1, POLAR2)
2424 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2425 return _IMP_em2d.get_translational_alignment_no_preprocessing(M1, M2)
2428 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2429 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(center1, center2, AUTOC_POLAR1, AUTOC_POLAR2)
2433 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2434 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2436 return _IMP_em2d.write_vectors_as_pdb(*args)
2437 class Em2DRestraintParameters(ProjectingParameters):
2438 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class."""
2440 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2441 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2442 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2443 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2444 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2445 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2446 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2448 def __init__(self, *args):
2450 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2451 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2452 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2454 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2456 self.this.append(this)
2457 except __builtin__.Exception:
2460 def show(self, *args):
2462 show(Em2DRestraintParameters self, _ostream out)
2463 show(Em2DRestraintParameters self)
2465 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2469 """__str__(Em2DRestraintParameters self) -> std::string"""
2470 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2474 """__repr__(Em2DRestraintParameters self) -> std::string"""
2475 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2477 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2478 __del__ =
lambda self:
None
2479 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2480 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2481 cvar = _IMP_em2d.cvar
2482 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2483 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2484 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2487 """Proxy of C++ IMP::em2d::ProjectionFinder class."""
2489 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2492 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2493 this = _IMP_em2d.new_ProjectionFinder()
2495 self.this.append(this)
2496 except __builtin__.Exception:
2499 def setup(self, score_function, params):
2500 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2501 return _IMP_em2d.ProjectionFinder_setup(self, score_function, params)
2504 def set_subjects(self, subjects):
2505 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2506 return _IMP_em2d.ProjectionFinder_set_subjects(self, subjects)
2509 def set_projections(self, projections):
2510 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2511 return _IMP_em2d.ProjectionFinder_set_projections(self, projections)
2514 def set_variance_images(self, variances):
2515 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2516 return _IMP_em2d.ProjectionFinder_set_variance_images(self, variances)
2519 def set_model_particles(self, ps):
2520 """set_model_particles(ProjectionFinder self, IMP::ParticlesTemp const & ps)"""
2521 return _IMP_em2d.ProjectionFinder_set_model_particles(self, ps)
2524 def set_save_match_images(self, x):
2525 """set_save_match_images(ProjectionFinder self, bool x)"""
2526 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, x)
2529 def get_save_match_images(self):
2530 """get_save_match_images(ProjectionFinder self) -> bool"""
2531 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2534 def set_fast_mode(self, n):
2535 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2536 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, n)
2539 def get_registration_results(self):
2540 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2541 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2544 def get_coarse_registration(self):
2545 """get_coarse_registration(ProjectionFinder self)"""
2546 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2549 def get_complete_registration(self):
2550 """get_complete_registration(ProjectionFinder self)"""
2551 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2555 """get_global_score(ProjectionFinder self) -> double"""
2556 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2559 def show(self, out):
2560 """show(ProjectionFinder self, _ostream out)"""
2561 return _IMP_em2d.ProjectionFinder_show(self, out)
2564 def get_preprocessing_time(self):
2565 """get_preprocessing_time(ProjectionFinder self) -> double"""
2566 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2569 def get_coarse_registration_time(self):
2570 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2571 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2574 def get_fine_registration_time(self):
2575 """get_fine_registration_time(ProjectionFinder self) -> double"""
2576 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2579 def get_number_of_subjects(self):
2580 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2581 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2584 def set_number_of_class_averages_members(self, n_members):
2585 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2586 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, n_members)
2589 def get_number_of_projections(self):
2590 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2591 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2594 def get_version_info(self):
2595 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2596 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2600 """__str__(ProjectionFinder self) -> std::string"""
2601 return _IMP_em2d.ProjectionFinder___str__(self)
2605 """__repr__(ProjectionFinder self) -> std::string"""
2606 return _IMP_em2d.ProjectionFinder___repr__(self)
2611 return _object_cast_to_ProjectionFinder(o)
2613 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2614 ProjectionFinder_swigregister(ProjectionFinder)
2617 """Proxy of C++ IMP::em2d::Em2DRestraint class."""
2619 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2621 def __init__(self, m):
2622 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
2623 this = _IMP_em2d.new_Em2DRestraint(m)
2625 self.this.append(this)
2626 except __builtin__.Exception:
2629 def setup(self, score_function, params):
2630 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2631 return _IMP_em2d.Em2DRestraint_setup(self, score_function, params)
2634 def set_particles(self, particles_container):
2635 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2636 return _IMP_em2d.Em2DRestraint_set_particles(self, particles_container)
2639 def set_images(self, em_images):
2640 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2641 return _IMP_em2d.Em2DRestraint_set_images(self, em_images)
2644 def set_variance_images(self, variance_images):
2645 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2646 return _IMP_em2d.Em2DRestraint_set_variance_images(self, variance_images)
2649 def set_fast_mode(self, n):
2650 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2651 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, n)
2654 def set_coarse_registration_mode(self, opt):
2655 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2656 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, opt)
2659 def get_registration_results(self):
2660 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2661 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2664 def do_get_inputs(self):
2665 """do_get_inputs(Em2DRestraint self) -> IMP::ModelObjectsTemp"""
2666 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2669 def get_version_info(self):
2670 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2671 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2675 """__str__(Em2DRestraint self) -> std::string"""
2676 return _IMP_em2d.Em2DRestraint___str__(self)
2680 """__repr__(Em2DRestraint self) -> std::string"""
2681 return _IMP_em2d.Em2DRestraint___repr__(self)
2686 return _object_cast_to_Em2DRestraint(o)
2688 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2689 Em2DRestraint_swigregister(Em2DRestraint)
2691 class ClusterSet(object):
2692 """Proxy of C++ IMP::em2d::ClusterSet class."""
2694 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2696 def __init__(self, N):
2697 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2698 this = _IMP_em2d.new_ClusterSet(N)
2700 self.this.append(this)
2701 except __builtin__.Exception:
2704 def do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters):
2705 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2706 return _IMP_em2d.ClusterSet_do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters)
2709 def get_cluster_elements(self, id):
2710 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2711 return _IMP_em2d.ClusterSet_get_cluster_elements(self, id)
2714 def get_clusters_below_cutoff(self, cutoff):
2715 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2716 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, cutoff)
2719 def get_cluster_formed_at_step(self, step):
2720 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2721 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, step)
2724 def get_distance_at_step(self, step):
2725 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2726 return _IMP_em2d.ClusterSet_get_distance_at_step(self, step)
2729 def get_id_for_cluster_at_step(self, step):
2730 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2731 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, step)
2734 def get_linkage_matrix(self):
2735 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2736 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2739 def get_linkage_matrix_in_matlab_format(self):
2740 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2741 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2744 def get_number_of_steps(self):
2745 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2746 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2749 def show(self, out):
2750 """show(ClusterSet self, _ostream out)"""
2751 return _IMP_em2d.ClusterSet_show(self, out)
2755 """__str__(ClusterSet self) -> std::string"""
2756 return _IMP_em2d.ClusterSet___str__(self)
2760 """__repr__(ClusterSet self) -> std::string"""
2761 return _IMP_em2d.ClusterSet___repr__(self)
2763 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2764 __del__ =
lambda self:
None
2765 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2766 ClusterSet_swigregister(ClusterSet)
2768 class SingleLinkage(object):
2769 """Proxy of C++ IMP::em2d::SingleLinkage class."""
2771 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2774 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2775 this = _IMP_em2d.new_SingleLinkage()
2777 self.this.append(this)
2778 except __builtin__.Exception:
2781 def __call__(self, id1, id2, cluster_set, distances):
2782 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2783 return _IMP_em2d.SingleLinkage___call__(self, id1, id2, cluster_set, distances)
2786 def show(self, out):
2787 """show(SingleLinkage self, _ostream out)"""
2788 return _IMP_em2d.SingleLinkage_show(self, out)
2792 """__str__(SingleLinkage self) -> std::string"""
2793 return _IMP_em2d.SingleLinkage___str__(self)
2797 """__repr__(SingleLinkage self) -> std::string"""
2798 return _IMP_em2d.SingleLinkage___repr__(self)
2800 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2801 __del__ =
lambda self:
None
2802 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2803 SingleLinkage_swigregister(SingleLinkage)
2805 class CompleteLinkage(object):
2806 """Proxy of C++ IMP::em2d::CompleteLinkage class."""
2808 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2811 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2812 this = _IMP_em2d.new_CompleteLinkage()
2814 self.this.append(this)
2815 except __builtin__.Exception:
2818 def __call__(self, id1, id2, cluster_set, distances):
2819 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2820 return _IMP_em2d.CompleteLinkage___call__(self, id1, id2, cluster_set, distances)
2823 def show(self, out):
2824 """show(CompleteLinkage self, _ostream out)"""
2825 return _IMP_em2d.CompleteLinkage_show(self, out)
2829 """__str__(CompleteLinkage self) -> std::string"""
2830 return _IMP_em2d.CompleteLinkage___str__(self)
2834 """__repr__(CompleteLinkage self) -> std::string"""
2835 return _IMP_em2d.CompleteLinkage___repr__(self)
2837 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2838 __del__ =
lambda self:
None
2839 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2840 CompleteLinkage_swigregister(CompleteLinkage)
2842 class AverageDistanceLinkage(object):
2843 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class."""
2845 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2848 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2849 this = _IMP_em2d.new_AverageDistanceLinkage()
2851 self.this.append(this)
2852 except __builtin__.Exception:
2855 def __call__(self, id1, id2, cluster_set, distances):
2856 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2857 return _IMP_em2d.AverageDistanceLinkage___call__(self, id1, id2, cluster_set, distances)
2860 def show(self, out):
2861 """show(AverageDistanceLinkage self, _ostream out)"""
2862 return _IMP_em2d.AverageDistanceLinkage_show(self, out)
2866 """__str__(AverageDistanceLinkage self) -> std::string"""
2867 return _IMP_em2d.AverageDistanceLinkage___str__(self)
2871 """__repr__(AverageDistanceLinkage self) -> std::string"""
2872 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2874 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2875 __del__ =
lambda self:
None
2876 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2877 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2880 """Proxy of C++ IMP::em2d::CollisionCrossSection class."""
2882 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2884 def __init__(self, n_projections, resolution, pixel_size, projection_image_size):
2885 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2886 this = _IMP_em2d.new_CollisionCrossSection(n_projections, resolution, pixel_size, projection_image_size)
2888 self.this.append(this)
2889 except __builtin__.Exception:
2892 def set_model_particles(self, ps):
2893 """set_model_particles(CollisionCrossSection self, IMP::ParticlesTemp const & ps)"""
2894 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, ps)
2898 """get_ccs(CollisionCrossSection self) -> double"""
2899 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2902 def show(self, out):
2903 """show(CollisionCrossSection self, _ostream out)"""
2904 return _IMP_em2d.CollisionCrossSection_show(self, out)
2907 def get_version_info(self):
2908 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2909 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2913 """__str__(CollisionCrossSection self) -> std::string"""
2914 return _IMP_em2d.CollisionCrossSection___str__(self)
2918 """__repr__(CollisionCrossSection self) -> std::string"""
2919 return _IMP_em2d.CollisionCrossSection___repr__(self)
2924 return _object_cast_to_CollisionCrossSection(o)
2926 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2927 CollisionCrossSection_swigregister(CollisionCrossSection)
2930 """Proxy of C++ IMP::em2d::GridStates class."""
2932 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2934 def __init__(self, *args):
2936 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::String const & name) -> GridStates
2937 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2939 this = _IMP_em2d.new_GridStates(*args)
2941 self.this.append(this)
2942 except __builtin__.Exception:
2945 def get_position(self, i):
2946 """get_position(GridStates self, unsigned int i) -> Vector3D"""
2947 return _IMP_em2d.GridStates_get_position(self, i)
2950 def get_orientation(self, i):
2951 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2952 return _IMP_em2d.GridStates_get_orientation(self, i)
2955 def get_version_info(self):
2956 """get_version_info(GridStates self) -> VersionInfo"""
2957 return _IMP_em2d.GridStates_get_version_info(self)
2961 """__str__(GridStates self) -> std::string"""
2962 return _IMP_em2d.GridStates___str__(self)
2966 """__repr__(GridStates self) -> std::string"""
2967 return _IMP_em2d.GridStates___repr__(self)
2972 return _object_cast_to_GridStates(o)
2974 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2975 GridStates_swigregister(GridStates)
2977 class ProjectionStates(GridStates):
2978 """Proxy of C++ IMP::em2d::ProjectionStates class."""
2980 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2982 def __init__(self, *args):
2984 __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
2985 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections) -> ProjectionStates
2987 this = _IMP_em2d.new_ProjectionStates(*args)
2989 self.this.append(this)
2990 except __builtin__.Exception:
2994 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
2995 return _IMP_em2d.ProjectionStates_get_projection(self, i)
2999 """__str__(ProjectionStates self) -> std::string"""
3000 return _IMP_em2d.ProjectionStates___str__(self)
3004 """__repr__(ProjectionStates self) -> std::string"""
3005 return _IMP_em2d.ProjectionStates___repr__(self)
3010 return _object_cast_to_ProjectionStates(o)
3012 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
3013 ProjectionStates_swigregister(ProjectionStates)
3016 """Proxy of C++ IMP::em2d::DistanceFilter class."""
3018 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3020 def __init__(self, subset_to_act_on, subset_to_restrain, ps_table, max_distance):
3021 """__init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table, double max_distance) -> DistanceFilter"""
3022 this = _IMP_em2d.new_DistanceFilter(subset_to_act_on, subset_to_restrain, ps_table, max_distance)
3024 self.this.append(this)
3025 except __builtin__.Exception:
3028 def show(self, *args):
3030 show(DistanceFilter self, _ostream out)
3031 show(DistanceFilter self)
3033 return _IMP_em2d.DistanceFilter_show(self, *args)
3036 def get_version_info(self):
3037 """get_version_info(DistanceFilter self) -> VersionInfo"""
3038 return _IMP_em2d.DistanceFilter_get_version_info(self)
3042 """__str__(DistanceFilter self) -> std::string"""
3043 return _IMP_em2d.DistanceFilter___str__(self)
3047 """__repr__(DistanceFilter self) -> std::string"""
3048 return _IMP_em2d.DistanceFilter___repr__(self)
3053 return _object_cast_to_DistanceFilter(o)
3055 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
3056 DistanceFilter_swigregister(DistanceFilter)
3059 """Proxy of C++ IMP::em2d::DistanceFilterTable class."""
3061 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3063 def __init__(self, subset_to_act_on, ps_table, max_distance):
3064 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
3065 this = _IMP_em2d.new_DistanceFilterTable(subset_to_act_on, ps_table, max_distance)
3067 self.this.append(this)
3068 except __builtin__.Exception:
3071 def show(self, *args):
3073 show(DistanceFilterTable self, _ostream out)
3074 show(DistanceFilterTable self)
3076 return _IMP_em2d.DistanceFilterTable_show(self, *args)
3079 def get_version_info(self):
3080 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
3081 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
3085 """__str__(DistanceFilterTable self) -> std::string"""
3086 return _IMP_em2d.DistanceFilterTable___str__(self)
3090 """__repr__(DistanceFilterTable self) -> std::string"""
3091 return _IMP_em2d.DistanceFilterTable___repr__(self)
3096 return _object_cast_to_DistanceFilterTable(o)
3098 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
3099 DistanceFilterTable_swigregister(DistanceFilterTable)
3101 class IntsOrder(object):
3102 """Proxy of C++ IMP::em2d::IntsOrder class."""
3104 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3105 __repr__ = _swig_repr
3107 def __call__(self, a, b):
3108 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
3109 return _IMP_em2d.IntsOrder___call__(self, a, b)
3113 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
3114 this = _IMP_em2d.new_IntsOrder()
3116 self.this.append(this)
3117 except __builtin__.Exception:
3119 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
3120 __del__ =
lambda self:
None
3121 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
3122 IntsOrder_swigregister(IntsOrder)
3125 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class."""
3127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3129 def get_version_info(self):
3130 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
3131 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
3134 def __init__(self, scf, rbs, img):
3135 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
3136 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(scf, rbs, img)
3138 self.this.append(this)
3139 except __builtin__.Exception:
3142 def set_projecting_parameters(self, p):
3143 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
3144 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, p)
3147 def set_orientations(self, rb, rots):
3148 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
3149 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, rb, rots)
3152 def get_number_of_masks(self, rb):
3153 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
3154 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, rb)
3158 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
3159 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
3163 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
3164 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
3169 return _object_cast_to_RigidBodiesImageFitRestraint(o)
3171 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
3172 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
3176 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
3177 return _IMP_em2d.get_unique_index(rot)
3179 """Proxy of C++ IMP::em2d::RelativePositionMover class."""
3181 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3183 def __init__(self, d, max_translation, max_rotation):
3184 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
3185 this = _IMP_em2d.new_RelativePositionMover(d, max_translation, max_rotation)
3187 self.this.append(this)
3188 except __builtin__.Exception:
3191 def add_internal_transformations(self, d, transforms):
3192 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
3193 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, d, transforms)
3196 def set_random_move_probability(self, p):
3197 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
3198 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, p)
3202 """__str__(RelativePositionMover self) -> std::string"""
3203 return _IMP_em2d.RelativePositionMover___str__(self)
3207 """__repr__(RelativePositionMover self) -> std::string"""
3208 return _IMP_em2d.RelativePositionMover___repr__(self)
3213 return _object_cast_to_RelativePositionMover(o)
3215 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
3216 RelativePositionMover_swigregister(RelativePositionMover)
3219 """Proxy of C++ IMP::em2d::DummyRestraint class."""
3221 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3223 def __init__(self, p, q):
3224 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
3225 this = _IMP_em2d.new_DummyRestraint(p, q)
3227 self.this.append(this)
3228 except __builtin__.Exception:
3231 def show(self, *args):
3233 show(DummyRestraint self, _ostream out)
3234 show(DummyRestraint self)
3236 return _IMP_em2d.DummyRestraint_show(self, *args)
3239 def do_get_inputs(self):
3240 """do_get_inputs(DummyRestraint self) -> IMP::ModelObjectsTemp"""
3241 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
3244 def get_version_info(self):
3245 """get_version_info(DummyRestraint self) -> VersionInfo"""
3246 return _IMP_em2d.DummyRestraint_get_version_info(self)
3250 """__str__(DummyRestraint self) -> std::string"""
3251 return _IMP_em2d.DummyRestraint___str__(self)
3255 """__repr__(DummyRestraint self) -> std::string"""
3256 return _IMP_em2d.DummyRestraint___repr__(self)
3261 return _object_cast_to_DummyRestraint(o)
3263 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3264 DummyRestraint_swigregister(DummyRestraint)
3267 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class."""
3269 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3271 def __init__(self, sc):
3272 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3273 this = _IMP_em2d.new_ParticlesDummyRestraint(sc)
3275 self.this.append(this)
3276 except __builtin__.Exception:
3279 def show(self, *args):
3281 show(ParticlesDummyRestraint self, _ostream out)
3282 show(ParticlesDummyRestraint self)
3284 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3287 def do_get_inputs(self):
3288 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::ModelObjectsTemp"""
3289 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3292 def get_version_info(self):
3293 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3294 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3298 """__str__(ParticlesDummyRestraint self) -> std::string"""
3299 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3303 """__repr__(ParticlesDummyRestraint self) -> std::string"""
3304 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3309 return _object_cast_to_ParticlesDummyRestraint(o)
3311 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3312 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3315 """Proxy of C++ IMP::em2d::PCAFitRestraint class."""
3317 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3319 def __init__(self, particles, image_files, pixel_size, resolution=10.0, projection_number=100, reuse_direction=False, n_components=1):
3321 __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
3322 __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
3323 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100) -> PCAFitRestraint
3324 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
3325 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
3327 this = _IMP_em2d.new_PCAFitRestraint(particles, image_files, pixel_size, resolution, projection_number, reuse_direction, n_components)
3329 self.this.append(this)
3330 except __builtin__.Exception:
3333 def get_projection_number(self):
3334 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
3335 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
3338 def set_projection_number(self, n):
3339 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
3340 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, n)
3343 def get_transformation(self, image_number):
3344 """get_transformation(PCAFitRestraint self, unsigned int image_number) -> Transformation3D"""
3345 return _IMP_em2d.PCAFitRestraint_get_transformation(self, image_number)
3349 """get_cross_correlation_coefficient(PCAFitRestraint self, unsigned int image_number) -> double"""
3350 return _IMP_em2d.PCAFitRestraint_get_cross_correlation_coefficient(self, image_number)
3353 def write_best_projections(self, file_name, evaluate=False):
3355 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
3356 write_best_projections(PCAFitRestraint self, std::string file_name)
3358 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, file_name, evaluate)
3361 def do_get_inputs(self):
3362 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3363 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
3366 def get_version_info(self):
3367 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3368 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
3372 """__str__(PCAFitRestraint self) -> std::string"""
3373 return _IMP_em2d.PCAFitRestraint___str__(self)
3377 """__repr__(PCAFitRestraint self) -> std::string"""
3378 return _IMP_em2d.PCAFitRestraint___repr__(self)
3383 return _object_cast_to_em2dPCAFitRestraint(o)
3385 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
3386 PCAFitRestraint_swigregister(PCAFitRestraint)
3389 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class."""
3391 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3392 __repr__ = _swig_repr
3394 def __init__(self, *args):
3396 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3397 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3398 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3400 this = _IMP_em2d.new_ResultAlign2D(*args)
3402 self.this.append(this)
3403 except __builtin__.Exception:
3405 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3406 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3410 return str((self.first, self.second))
3411 def __getitem__(self, index):
3416 def __setitem__(self, index, val):
3421 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3422 __del__ =
lambda self:
None
3423 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3424 ResultAlign2D_swigregister(ResultAlign2D)
3427 def _do_hierarchical_clustering_single_linkage(distances):
3428 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3429 return _IMP_em2d._do_hierarchical_clustering_single_linkage(distances)
3431 def _do_hierarchical_clustering_complete_linkage(distances):
3432 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3433 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(distances)
3435 def _do_hierarchical_clustering_average_distance_linkage(distances):
3436 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3437 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(distances)
3439 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3440 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3441 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3445 """get_module_version() -> std::string const"""
3446 return _IMP_em2d.get_module_version()
3449 """get_example_path(std::string fname) -> std::string"""
3450 return _IMP_em2d.get_example_path(fname)
3453 """get_data_path(std::string fname) -> std::string"""
3454 return _IMP_em2d.get_data_path(fname)
3456 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.