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_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
406 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
407 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
408 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
409 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
410 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
411 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
412 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
413 IMP_RMF_HAS_HDF5 = _IMP_em2d.IMP_RMF_HAS_HDF5
414 IMP_RMF_HAS_NUMPY = _IMP_em2d.IMP_RMF_HAS_NUMPY
415 IMP_RMF_HAS_PYTHON_IHM = _IMP_em2d.IMP_RMF_HAS_PYTHON_IHM
416 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
419 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
420 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
421 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
422 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
423 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
424 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
425 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
426 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
427 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
428 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
429 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
430 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
431 IMP_DOMINO_HAS_NUMPY = _IMP_em2d.IMP_DOMINO_HAS_NUMPY
432 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
433 IMP_DOMINO_HAS_PYTHON_IHM = _IMP_em2d.IMP_DOMINO_HAS_PYTHON_IHM
434 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
437 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
438 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
439 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
440 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
441 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
442 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
443 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
444 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
445 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
446 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
447 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
448 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
449 IMP_EM2D_HAS_NUMPY = _IMP_em2d.IMP_EM2D_HAS_NUMPY
450 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
451 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
452 IMP_EM2D_HAS_PYTHON_IHM = _IMP_em2d.IMP_EM2D_HAS_PYTHON_IHM
453 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
454 IMP_EM2D_HAS_OPENCV3 = _IMP_em2d.IMP_EM2D_HAS_OPENCV3
455 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
457 PolarResamplingParametersList=list
458 _plural_types.append(
"PolarResamplingParametersList")
459 _value_types.append(
"PolarResamplingParameters")
463 _plural_types.append(
"ProjectionMasks")
464 _value_types.append(
"ProjectionMask")
468 _plural_types.append(
"MasksManagers")
469 _value_types.append(
"MasksManager")
472 RegistrationResults=list
473 _plural_types.append(
"RegistrationResults")
474 _value_types.append(
"RegistrationResult")
478 _plural_types.append(
"ClusterSets")
479 _value_types.append(
"ClusterSet")
483 _plural_types.append(
"SingleLinkages")
484 _value_types.append(
"SingleLinkage")
487 CompleteLinkages=list
488 _plural_types.append(
"CompleteLinkages")
489 _value_types.append(
"CompleteLinkage")
492 AverageDistanceLinkages=list
493 _plural_types.append(
"AverageDistanceLinkages")
494 _value_types.append(
"AverageDistanceLinkage")
497 SegmentationParametersList=list
498 _plural_types.append(
"SegmentationParametersList")
499 _value_types.append(
"SegmentationParameters")
502 MatchTemplateResults=list
503 _plural_types.append(
"MatchTemplateResults")
504 _value_types.append(
"MatchTemplateResult")
507 ProjectingParametersList=list
508 _plural_types.append(
"ProjectingParametersList")
509 _value_types.append(
"ProjectingParameters")
512 ProjectingOptionsList=list
513 _plural_types.append(
"ProjectingOptionsList")
514 _value_types.append(
"ProjectingOptions")
517 Em2DRestraintParametersList=list
518 _plural_types.append(
"Em2DRestraintParametersList")
519 _value_types.append(
"Em2DRestraintParameters")
522 _object_types.append(
"ProjectionFinder")
525 def _object_cast_to_ProjectionFinder(o):
526 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
527 return _IMP_em2d._object_cast_to_ProjectionFinder(o)
529 _object_types.append(
"ScoreFunction")
532 def _object_cast_to_ScoreFunction(o):
533 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
534 return _IMP_em2d._object_cast_to_ScoreFunction(o)
536 _object_types.append(
"ChiSquaredScore")
539 def _object_cast_to_ChiSquaredScore(o):
540 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
541 return _IMP_em2d._object_cast_to_ChiSquaredScore(o)
543 _object_types.append(
"EM2DScore")
546 def _object_cast_to_EM2DScore(o):
547 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
548 return _IMP_em2d._object_cast_to_EM2DScore(o)
550 _object_types.append(
"MeanAbsoluteDifference")
553 def _object_cast_to_MeanAbsoluteDifference(o):
554 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
555 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(o)
557 _object_types.append(
"ProjectionParametersScoreState")
560 def _object_cast_to_ProjectionParametersScoreState(o):
561 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
562 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(o)
564 _object_types.append(
"Em2DRestraint")
567 def _object_cast_to_Em2DRestraint(o):
568 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
569 return _IMP_em2d._object_cast_to_Em2DRestraint(o)
571 _object_types.append(
"Image")
574 def _object_cast_to_Image(o):
575 """_object_cast_to_Image(Object o) -> Image"""
576 return _IMP_em2d._object_cast_to_Image(o)
578 _object_types.append(
"ImageReaderWriter")
581 def _object_cast_to_ImageReaderWriter(o):
582 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
583 return _IMP_em2d._object_cast_to_ImageReaderWriter(o)
585 _object_types.append(
"JPGImageReaderWriter")
588 def _object_cast_to_JPGImageReaderWriter(o):
589 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
590 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(o)
592 _object_types.append(
"TIFFImageReaderWriter")
595 def _object_cast_to_TIFFImageReaderWriter(o):
596 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
597 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(o)
599 _object_types.append(
"SpiderImageReaderWriter")
602 def _object_cast_to_SpiderImageReaderWriter(o):
603 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
604 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(o)
606 _object_types.append(
"CollisionCrossSection")
609 def _object_cast_to_CollisionCrossSection(o):
610 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
611 return _IMP_em2d._object_cast_to_CollisionCrossSection(o)
613 _object_types.append(
"GridStates")
616 def _object_cast_to_GridStates(o):
617 """_object_cast_to_GridStates(Object o) -> GridStates"""
618 return _IMP_em2d._object_cast_to_GridStates(o)
620 _object_types.append(
"ProjectionStates")
623 def _object_cast_to_ProjectionStates(o):
624 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
625 return _IMP_em2d._object_cast_to_ProjectionStates(o)
627 _object_types.append(
"DistanceFilter")
630 def _object_cast_to_DistanceFilter(o):
631 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
632 return _IMP_em2d._object_cast_to_DistanceFilter(o)
634 _object_types.append(
"DistanceFilterTable")
637 def _object_cast_to_DistanceFilterTable(o):
638 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
639 return _IMP_em2d._object_cast_to_DistanceFilterTable(o)
641 _object_types.append(
"RigidBodiesImageFitRestraint")
644 def _object_cast_to_RigidBodiesImageFitRestraint(o):
645 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
646 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(o)
648 _object_types.append(
"DummyRestraint")
651 def _object_cast_to_DummyRestraint(o):
652 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
653 return _IMP_em2d._object_cast_to_DummyRestraint(o)
655 _object_types.append(
"ParticlesDummyRestraint")
658 def _object_cast_to_ParticlesDummyRestraint(o):
659 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
660 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(o)
662 _object_types.append(
"RelativePositionMover")
665 def _object_cast_to_RelativePositionMover(o):
666 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
667 return _IMP_em2d._object_cast_to_RelativePositionMover(o)
669 _object_types.append(
"PCAFitRestraint")
672 def _object_cast_to_em2dPCAFitRestraint(o):
673 """_object_cast_to_em2dPCAFitRestraint(Object o) -> PCAFitRestraint"""
674 return _IMP_em2d._object_cast_to_em2dPCAFitRestraint(o)
676 def ProjectionParametersList(l=[]):
677 return [ProjectionParameters(x)
for x
in l]
678 _plural_types.append(
"ProjectionParametersList")
681 _value_types.append(
"ProjectionParameters")
686 show(cv::Mat const & m, _ostream out)
687 show(cv::Mat const & m)
689 return _IMP_em2d.show(*args)
692 """write_matrix(cv::Mat & m, std::string name)"""
693 return _IMP_em2d.write_matrix(m, name)
695 """Proxy of C++ IMP::em2d::ImageReaderWriter class."""
697 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
699 def __init__(self, *args, **kwargs):
700 raise AttributeError(
"No constructor defined - class is abstract")
702 def read(self, filename, header, data):
703 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
704 return _IMP_em2d.ImageReaderWriter_read(self, filename, header, data)
707 def read_from_floats(self, filename, header, data):
708 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
709 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, filename, header, data)
712 def read_from_ints(self, filename, header, data):
713 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
714 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, filename, header, data)
717 def write(self, filename, header, data):
718 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
719 return _IMP_em2d.ImageReaderWriter_write(self, filename, header, data)
722 def write_to_floats(self, filename, header, data):
723 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
724 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, filename, header, data)
727 def write_to_ints(self, filename, header, data):
728 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
729 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, filename, header, data)
732 def get_version_info(self):
733 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
734 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
738 """__str__(ImageReaderWriter self) -> std::string"""
739 return _IMP_em2d.ImageReaderWriter___str__(self)
743 """__repr__(ImageReaderWriter self) -> std::string"""
744 return _IMP_em2d.ImageReaderWriter___repr__(self)
749 return _object_cast_to_ImageReaderWriter(o)
751 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
752 ImageReaderWriter_swigregister(ImageReaderWriter)
754 class PolarResamplingParameters(object):
755 """Proxy of C++ IMP::em2d::PolarResamplingParameters class."""
757 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
759 def __init__(self, *args):
761 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
762 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
763 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
765 this = _IMP_em2d.new_PolarResamplingParameters(*args)
767 self.this.append(this)
768 except __builtin__.Exception:
770 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
771 __del__ =
lambda self:
None
773 def setup(self, rows, cols):
774 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
775 return _IMP_em2d.PolarResamplingParameters_setup(self, rows, cols)
778 def get_starting_radius(self):
779 """get_starting_radius(PolarResamplingParameters self) -> double"""
780 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
783 def get_ending_radius(self):
784 """get_ending_radius(PolarResamplingParameters self) -> double"""
785 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
788 def get_radius(self, n_ring):
789 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
790 return _IMP_em2d.PolarResamplingParameters_get_radius(self, n_ring)
793 def get_number_of_rings(self):
794 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
795 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
798 def set_estimated_number_of_angles(self, aprox_value):
799 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
800 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, aprox_value)
803 def get_number_of_angles(self):
804 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
805 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
808 def get_angle_step(self):
809 """get_angle_step(PolarResamplingParameters self) -> double"""
810 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
813 def get_radius_step(self):
814 """get_radius_step(PolarResamplingParameters self) -> double"""
815 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
818 def create_maps_for_resampling(self):
819 """create_maps_for_resampling(PolarResamplingParameters self)"""
820 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
823 def get_resampling_maps(self, m1, m2):
824 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
825 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, m1, m2)
828 def get_resampling_map(self, m1):
829 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
830 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, m1)
834 """show(PolarResamplingParameters self, _ostream out)"""
835 return _IMP_em2d.PolarResamplingParameters_show(self, out)
838 def get_is_setup(self):
839 """get_is_setup(PolarResamplingParameters self) -> bool"""
840 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
844 """__str__(PolarResamplingParameters self) -> std::string"""
845 return _IMP_em2d.PolarResamplingParameters___str__(self)
849 """__repr__(PolarResamplingParameters self) -> std::string"""
850 return _IMP_em2d.PolarResamplingParameters___repr__(self)
852 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
853 PolarResamplingParameters_swigregister(PolarResamplingParameters)
855 class SegmentationParameters(object):
856 """Proxy of C++ IMP::em2d::SegmentationParameters class."""
858 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
859 image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
860 diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
861 diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
862 fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
863 opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
864 remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
865 binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
866 binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
867 threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
869 def __init__(self, *args):
871 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
872 __init__(IMP::em2d::SegmentationParameters self, double apix, double diff_beta, unsigned int diff_timesteps, double fh_stddevs, cv::Mat const & kr, int background, int foreground) -> SegmentationParameters
874 this = _IMP_em2d.new_SegmentationParameters(*args)
876 self.this.append(this)
877 except __builtin__.Exception:
880 def show(self, *args):
882 show(SegmentationParameters self, _ostream out)
883 show(SegmentationParameters self)
885 return _IMP_em2d.SegmentationParameters_show(self, *args)
889 """__str__(SegmentationParameters self) -> std::string"""
890 return _IMP_em2d.SegmentationParameters___str__(self)
894 """__repr__(SegmentationParameters self) -> std::string"""
895 return _IMP_em2d.SegmentationParameters___repr__(self)
897 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
898 __del__ =
lambda self:
None
899 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
900 SegmentationParameters_swigregister(SegmentationParameters)
902 class MatchTemplateResult(object):
903 """Proxy of C++ IMP::em2d::MatchTemplateResult class."""
905 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
906 pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
907 cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
909 def __init__(self, p, cc):
910 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
911 this = _IMP_em2d.new_MatchTemplateResult(p, cc)
913 self.this.append(this)
914 except __builtin__.Exception:
917 def show(self, *args):
919 show(MatchTemplateResult self, _ostream out)
920 show(MatchTemplateResult self)
922 return _IMP_em2d.MatchTemplateResult_show(self, *args)
926 """__str__(MatchTemplateResult self) -> std::string"""
927 return _IMP_em2d.MatchTemplateResult___str__(self)
931 """__repr__(MatchTemplateResult self) -> std::string"""
932 return _IMP_em2d.MatchTemplateResult___repr__(self)
934 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
935 __del__ =
lambda self:
None
936 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
937 MatchTemplateResult_swigregister(MatchTemplateResult)
941 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
942 return _IMP_em2d.apply_mask(m, result, mask, val)
946 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
947 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
949 return _IMP_em2d.apply_circular_mask(mat, result, radius, value)
952 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
953 return _IMP_em2d.get_mean(mat, mask)
956 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
957 return _IMP_em2d.create_circular_mask(rows, cols, radius)
959 def do_histogram_stretching(m, boxes, offset):
960 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
961 return _IMP_em2d.do_histogram_stretching(m, boxes, offset)
964 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & grayscale, cv::Mat & kernel)"""
965 return _IMP_em2d.do_dilate_and_shrink_warp(m, grayscale, kernel)
969 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
970 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
972 return _IMP_em2d.do_morphologic_reconstruction(mask, marker, neighbors_mode)
975 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
976 return _IMP_em2d.do_labeling(m, mat_to_label)
979 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
980 return _IMP_em2d.get_diffusion_filtering_partial_derivative(m, der, dx, dy, ang)
983 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
984 return _IMP_em2d.get_domes(m, result, h)
986 def get_transformed(input, transformed, T):
987 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
988 return _IMP_em2d.get_transformed(input, transformed, T)
992 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
993 apply_threshold(cv::Mat & m, cv::Mat & result)
995 return _IMP_em2d.apply_threshold(m, result, threshold)
998 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
999 return _IMP_em2d.do_morphologic_contrast_enhancement(m, result, kernel, iterations)
1002 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
1003 return _IMP_em2d.get_morphologic_gradient(m, result, kernel)
1006 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
1007 return _IMP_em2d.get_overlap_percentage(m1, m2, center)
1010 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
1011 return _IMP_em2d.get_best_template_matches(m, templ, n)
1013 """Proxy of C++ IMP::em2d::Image class."""
1015 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1017 def __init__(self, *args):
1019 __init__(IMP::em2d::Image self) -> Image
1020 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
1021 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
1023 this = _IMP_em2d.new_Image(*args)
1025 self.this.append(this)
1026 except __builtin__.Exception:
1030 """get_data(Image self) -> cv::Mat &"""
1031 return _IMP_em2d.Image_get_data(self)
1034 def set_data(self, mat):
1035 """set_data(Image self, cv::Mat const & mat)"""
1036 return _IMP_em2d.Image_set_data(self, mat)
1039 def set_zeros(self):
1040 """set_zeros(Image self)"""
1041 return _IMP_em2d.Image_set_zeros(self)
1044 def set_value(self, *args):
1046 set_value(Image self, double val)
1047 set_value(Image self, int i, int j, double val)
1049 return _IMP_em2d.Image_set_value(self, *args)
1052 def __call__(self, i, j):
1053 """__call__(Image self, int i, int j) -> double"""
1054 return _IMP_em2d.Image___call__(self, i, j)
1057 def get_header(self):
1058 """get_header(Image self) -> ImageHeader"""
1059 return _IMP_em2d.Image_get_header(self)
1062 def set_size(self, *args):
1064 set_size(Image self, int rows, int cols)
1065 set_size(Image self, Image img)
1067 return _IMP_em2d.Image_set_size(self, *args)
1070 def update_header(self):
1071 """update_header(Image self)"""
1072 return _IMP_em2d.Image_update_header(self)
1075 def read(self, filename, reader):
1076 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
1077 return _IMP_em2d.Image_read(self, filename, reader)
1080 def write(self, filename, writer):
1081 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
1082 return _IMP_em2d.Image_write(self, filename, writer)
1085 def show(self, out):
1086 """show(Image self, _ostream out)"""
1087 return _IMP_em2d.Image_show(self, out)
1090 def get_version_info(self):
1091 """get_version_info(Image self) -> VersionInfo"""
1092 return _IMP_em2d.Image_get_version_info(self)
1095 def set_name(self, name):
1096 """set_name(Image self, IMP::String const & name)"""
1097 return _IMP_em2d.Image_set_name(self, name)
1101 """get_name(Image self) -> IMP::String"""
1102 return _IMP_em2d.Image_get_name(self)
1105 def get_min_and_max_values(self):
1106 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
1107 return _IMP_em2d.Image_get_min_and_max_values(self)
1111 """__str__(Image self) -> std::string"""
1112 return _IMP_em2d.Image___str__(self)
1116 """__repr__(Image self) -> std::string"""
1117 return _IMP_em2d.Image___repr__(self)
1122 return _object_cast_to_Image(o)
1124 Image_swigregister = _IMP_em2d.Image_swigregister
1125 Image_swigregister(Image)
1129 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1130 return _IMP_em2d.read_images(names, rw)
1133 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1134 return _IMP_em2d.save_images(images, names, rw)
1138 do_normalize(cv::Mat & m)
1139 do_normalize(Image im, bool force=False)
1140 do_normalize(Image im)
1142 return _IMP_em2d.do_normalize(*args)
1146 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1147 get_histogram(Image img, int bins) -> IMP::Floats
1149 return _IMP_em2d.get_histogram(*args)
1153 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1154 apply_variance_filter(Image input, Image filtered, int kernelsize)
1156 return _IMP_em2d.apply_variance_filter(*args)
1160 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1161 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1163 return _IMP_em2d.apply_diffusion_filter(*args)
1165 def do_fill_holes(*args):
1167 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1168 do_fill_holes(Image input, Image result, double n_stddevs)
1170 return _IMP_em2d.do_fill_holes(*args)
1172 def do_combined_fill_holes_and_threshold(*args):
1174 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1175 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1176 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1178 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1180 def do_extend_borders(*args):
1182 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1183 do_extend_borders(Image im1, Image im2, unsigned int pix)
1185 return _IMP_em2d.do_extend_borders(*args)
1187 def do_segmentation(*args):
1189 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1190 do_segmentation(Image input, Image result, SegmentationParameters params)
1192 return _IMP_em2d.do_segmentation(*args)
1194 def do_remove_small_objects(*args):
1196 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1197 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1198 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1199 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1200 do_remove_small_objects(Image input, double percentage, int background=0)
1201 do_remove_small_objects(Image input, double percentage)
1203 return _IMP_em2d.do_remove_small_objects(*args)
1206 """do_subtract_images(Image first, Image second, Image result)"""
1207 return _IMP_em2d.do_subtract_images(first, second, result)
1209 def add_noise(*args):
1211 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode, double df=3)
1212 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode)
1213 add_noise(cv::Mat & v, double op1, double op2)
1214 add_noise(Image im1, double op1, double op2, IMP::String const & mode, double df=3)
1215 add_noise(Image im1, double op1, double op2, IMP::String const & mode)
1216 add_noise(Image im1, double op1, double op2)
1218 return _IMP_em2d.add_noise(*args)
1222 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1223 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1225 return _IMP_em2d.do_resample_polar(*args)
1229 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1230 crop(Image img, IMP::IntPair const & center, int size)
1232 return _IMP_em2d.crop(*args)
1235 """apply_mean_outside_mask(Image img, double radius)"""
1236 return _IMP_em2d.apply_mean_outside_mask(img, radius)
1237 class RegistrationResult(object):
1238 """Proxy of C++ IMP::em2d::RegistrationResult class."""
1240 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1242 def __init__(self, *args):
1244 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1245 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1246 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1247 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1248 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1249 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0, IMP::String name) -> RegistrationResult
1250 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1251 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift, int projection_index=0) -> RegistrationResult
1252 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift) -> RegistrationResult
1253 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1255 this = _IMP_em2d.new_RegistrationResult(*args)
1257 self.this.append(this)
1258 except __builtin__.Exception:
1262 """get_phi(RegistrationResult self) -> double"""
1263 return _IMP_em2d.RegistrationResult_get_phi(self)
1266 def get_theta(self):
1267 """get_theta(RegistrationResult self) -> double"""
1268 return _IMP_em2d.RegistrationResult_get_theta(self)
1272 """get_psi(RegistrationResult self) -> double"""
1273 return _IMP_em2d.RegistrationResult_get_psi(self)
1276 def get_shift(self):
1277 """get_shift(RegistrationResult self) -> Vector2D"""
1278 return _IMP_em2d.RegistrationResult_get_shift(self)
1281 def get_shift_3d(self):
1282 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1283 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1286 def get_projection_index(self):
1287 """get_projection_index(RegistrationResult self) -> int"""
1288 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1291 def set_projection_index(self, index):
1292 """set_projection_index(RegistrationResult self, int index)"""
1293 return _IMP_em2d.RegistrationResult_set_projection_index(self, index)
1296 def get_image_index(self):
1297 """get_image_index(RegistrationResult self) -> int"""
1298 return _IMP_em2d.RegistrationResult_get_image_index(self)
1301 def set_image_index(self, index):
1302 """set_image_index(RegistrationResult self, int index)"""
1303 return _IMP_em2d.RegistrationResult_set_image_index(self, index)
1307 """get_name(RegistrationResult self) -> IMP::String"""
1308 return _IMP_em2d.RegistrationResult_get_name(self)
1312 """get_ccc(RegistrationResult self) -> double"""
1313 return _IMP_em2d.RegistrationResult_get_ccc(self)
1316 def set_ccc(self, ccc):
1317 """set_ccc(RegistrationResult self, double ccc)"""
1318 return _IMP_em2d.RegistrationResult_set_ccc(self, ccc)
1321 def get_score(self):
1322 """get_score(RegistrationResult self) -> double"""
1323 return _IMP_em2d.RegistrationResult_get_score(self)
1326 def set_score(self, Score):
1327 """set_score(RegistrationResult self, double Score)"""
1328 return _IMP_em2d.RegistrationResult_set_score(self, Score)
1331 def set_rotation(self, *args):
1333 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1334 set_rotation(RegistrationResult self, Rotation3D R)
1336 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1339 def set_shift(self, shift):
1340 """set_shift(RegistrationResult self, Vector2D shift)"""
1341 return _IMP_em2d.RegistrationResult_set_shift(self, shift)
1344 def set_name(self, name):
1345 """set_name(RegistrationResult self, IMP::String name)"""
1346 return _IMP_em2d.RegistrationResult_set_name(self, name)
1349 def add_in_plane_transformation(self, t):
1350 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1351 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, t)
1354 def show(self, *args):
1356 show(RegistrationResult self, _ostream out)
1357 show(RegistrationResult self)
1359 return _IMP_em2d.RegistrationResult_show(self, *args)
1362 def write(self, *args):
1364 write(RegistrationResult self, _ostream out)
1365 write(RegistrationResult self)
1367 return _IMP_em2d.RegistrationResult_write(self, *args)
1370 def write_comment_line(self, *args):
1372 write_comment_line(RegistrationResult self, _ostream out)
1373 write_comment_line(RegistrationResult self)
1375 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1379 """read(RegistrationResult self, IMP::String const & s)"""
1380 return _IMP_em2d.RegistrationResult_read(self, s)
1383 def set_random_registration(self, index, maximum_shift):
1384 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1385 return _IMP_em2d.RegistrationResult_set_random_registration(self, index, maximum_shift)
1388 def get_rotation(self):
1389 """get_rotation(RegistrationResult self) -> Rotation3D"""
1390 return _IMP_em2d.RegistrationResult_get_rotation(self)
1393 def set_in_image(self, header):
1394 """set_in_image(RegistrationResult self, ImageHeader header)"""
1395 return _IMP_em2d.RegistrationResult_set_in_image(self, header)
1398 def read_from_image(self, header):
1399 """read_from_image(RegistrationResult self, ImageHeader header)"""
1400 return _IMP_em2d.RegistrationResult_read_from_image(self, header)
1403 def get_is_optimized_result(self):
1404 """get_is_optimized_result(RegistrationResult self) -> bool"""
1405 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1407 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1408 __del__ =
lambda self:
None
1411 """__str__(RegistrationResult self) -> std::string"""
1412 return _IMP_em2d.RegistrationResult___str__(self)
1416 """__repr__(RegistrationResult self) -> std::string"""
1417 return _IMP_em2d.RegistrationResult___repr__(self)
1419 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1420 RegistrationResult_swigregister(RegistrationResult)
1424 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1425 return _IMP_em2d.read_registration_results(filename)
1428 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1429 return _IMP_em2d.write_registration_results(filename, results)
1433 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1434 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1436 return _IMP_em2d.get_random_registration_results(n, maximum_shift)
1439 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1440 return _IMP_em2d.get_evenly_distributed_registration_results(n_projections)
1441 class SpiderImageReaderWriter(ImageReaderWriter):
1442 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class."""
1444 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1445 filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1446 skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1447 force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1448 skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1450 def __init__(self, *args):
1452 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1453 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1455 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1457 self.this.append(this)
1458 except __builtin__.Exception:
1462 """__str__(SpiderImageReaderWriter self) -> std::string"""
1463 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1467 """__repr__(SpiderImageReaderWriter self) -> std::string"""
1468 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1473 return _object_cast_to_SpiderImageReaderWriter(o)
1475 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1476 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1478 class JPGImageReaderWriter(ImageReaderWriter):
1479 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class."""
1481 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1484 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1485 this = _IMP_em2d.new_JPGImageReaderWriter()
1487 self.this.append(this)
1488 except __builtin__.Exception:
1492 """__str__(JPGImageReaderWriter self) -> std::string"""
1493 return _IMP_em2d.JPGImageReaderWriter___str__(self)
1497 """__repr__(JPGImageReaderWriter self) -> std::string"""
1498 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1503 return _object_cast_to_JPGImageReaderWriter(o)
1505 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1506 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1508 class TIFFImageReaderWriter(ImageReaderWriter):
1509 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class."""
1511 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1514 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1515 this = _IMP_em2d.new_TIFFImageReaderWriter()
1517 self.this.append(this)
1518 except __builtin__.Exception:
1522 """__str__(TIFFImageReaderWriter self) -> std::string"""
1523 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1527 """__repr__(TIFFImageReaderWriter self) -> std::string"""
1528 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1533 return _object_cast_to_TIFFImageReaderWriter(o)
1535 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1536 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1540 """do_matrix_to_image_flip(cv::Mat & m)"""
1541 return _IMP_em2d.do_matrix_to_image_flip(m)
1544 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1545 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(M, corr)
1549 get_autocorrelation2d(Image im1, Image im2)
1550 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1552 return _IMP_em2d.get_autocorrelation2d(*args)
1556 get_correlation2d(Image im1, Image im2, Image corr)
1557 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1559 return _IMP_em2d.get_correlation2d(*args)
1562 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1563 return _IMP_em2d.get_correlation2d_no_preprocessing(M1, M2, corr)
1566 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1567 return _IMP_em2d.get_fft_using_optimal_size(m, M)
1570 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1571 return _IMP_em2d.get_spectrum(m, real, imag)
1574 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1575 return _IMP_em2d.get_rotation_error(rr1, rr2)
1578 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1579 return _IMP_em2d.get_shift_error(rr1, rr2)
1581 def get_average_rotation_error(correct_RRs, computed_RRs):
1582 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1583 return _IMP_em2d.get_average_rotation_error(correct_RRs, computed_RRs)
1585 def get_average_shift_error(correct_RRs, computed_RRs):
1586 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1587 return _IMP_em2d.get_average_shift_error(correct_RRs, computed_RRs)
1591 get_cross_correlation_coefficient(Image im1, Image im2) -> double
1592 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1594 return _IMP_em2d.get_cross_correlation_coefficient(*args)
1597 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1598 return _IMP_em2d.get_global_score(RRs)
1600 """Proxy of C++ IMP::em2d::ScoreFunction class."""
1602 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1604 def __init__(self, *args, **kwargs):
1605 raise AttributeError(
"No constructor defined - class is abstract")
1607 def get_score(self, image, projection):
1608 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1609 return _IMP_em2d.ScoreFunction_get_score(self, image, projection)
1612 def set_variance_image(self, var):
1613 """set_variance_image(ScoreFunction self, Image var)"""
1614 return _IMP_em2d.ScoreFunction_set_variance_image(self, var)
1617 def get_version_info(self):
1618 """get_version_info(ScoreFunction self) -> VersionInfo"""
1619 return _IMP_em2d.ScoreFunction_get_version_info(self)
1623 """__str__(ScoreFunction self) -> std::string"""
1624 return _IMP_em2d.ScoreFunction___str__(self)
1628 """__repr__(ScoreFunction self) -> std::string"""
1629 return _IMP_em2d.ScoreFunction___repr__(self)
1634 return _object_cast_to_ScoreFunction(o)
1636 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1637 ScoreFunction_swigregister(ScoreFunction)
1639 class ChiSquaredScore(ScoreFunction):
1640 """Proxy of C++ IMP::em2d::ChiSquaredScore class."""
1642 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1645 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1646 this = _IMP_em2d.new_ChiSquaredScore()
1648 self.this.append(this)
1649 except __builtin__.Exception:
1653 """__str__(ChiSquaredScore self) -> std::string"""
1654 return _IMP_em2d.ChiSquaredScore___str__(self)
1658 """__repr__(ChiSquaredScore self) -> std::string"""
1659 return _IMP_em2d.ChiSquaredScore___repr__(self)
1664 return _object_cast_to_ChiSquaredScore(o)
1666 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1667 __del__ =
lambda self:
None
1668 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1669 ChiSquaredScore_swigregister(ChiSquaredScore)
1671 class EM2DScore(ScoreFunction):
1672 """Proxy of C++ IMP::em2d::EM2DScore class."""
1674 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1677 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1678 this = _IMP_em2d.new_EM2DScore()
1680 self.this.append(this)
1681 except __builtin__.Exception:
1685 """__str__(EM2DScore self) -> std::string"""
1686 return _IMP_em2d.EM2DScore___str__(self)
1690 """__repr__(EM2DScore self) -> std::string"""
1691 return _IMP_em2d.EM2DScore___repr__(self)
1696 return _object_cast_to_EM2DScore(o)
1698 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1699 __del__ =
lambda self:
None
1700 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1701 EM2DScore_swigregister(EM2DScore)
1703 class MeanAbsoluteDifference(ScoreFunction):
1704 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class."""
1706 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1709 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1710 this = _IMP_em2d.new_MeanAbsoluteDifference()
1712 self.this.append(this)
1713 except __builtin__.Exception:
1717 """__str__(MeanAbsoluteDifference self) -> std::string"""
1718 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1722 """__repr__(MeanAbsoluteDifference self) -> std::string"""
1723 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1728 return _object_cast_to_MeanAbsoluteDifference(o)
1730 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1731 __del__ =
lambda self:
None
1732 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1733 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1737 """read_selection_file(IMP::String fn) -> IMP::Strings"""
1738 return _IMP_em2d.read_selection_file(fn)
1741 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1742 return _IMP_em2d.create_filenames(number, basic_name, extension)
1744 """Proxy of C++ IMP::em2d::ProjectionParameters class."""
1746 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1748 def __init__(self, *args):
1750 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1751 __init__(IMP::em2d::ProjectionParameters self, Model m, ParticleIndex id) -> ProjectionParameters
1752 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1754 this = _IMP_em2d.new_ProjectionParameters(*args)
1756 self.this.append(this)
1757 except __builtin__.Exception:
1760 def show(self, *args):
1762 show(ProjectionParameters self, _ostream out)
1763 show(ProjectionParameters self)
1765 return _IMP_em2d.ProjectionParameters_show(self, *args)
1768 def setup_particle(*args):
1770 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
1771 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1773 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1775 setup_particle = staticmethod(setup_particle)
1776 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1777 __del__ =
lambda self:
None
1780 """get_keys() -> IMP::FloatKeys const &"""
1781 return _IMP_em2d.ProjectionParameters_get_keys()
1783 get_keys = staticmethod(get_keys)
1785 def set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values):
1786 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1787 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, m, min_translation_values, max_translation_values)
1790 def get_is_setup(*args):
1792 get_is_setup(_ParticleAdaptor p) -> bool
1793 get_is_setup(Model m, ParticleIndex pi) -> bool
1795 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1797 get_is_setup = staticmethod(get_is_setup)
1799 def get_parameters_optimized(self):
1800 """get_parameters_optimized(ProjectionParameters self) -> bool"""
1801 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
1804 def get_translation(self):
1805 """get_translation(ProjectionParameters self) -> Vector3D"""
1806 return _IMP_em2d.ProjectionParameters_get_translation(self)
1809 def set_translation(self, v):
1810 """set_translation(ProjectionParameters self, Vector3D v)"""
1811 return _IMP_em2d.ProjectionParameters_set_translation(self, v)
1814 def get_rotation(self):
1815 """get_rotation(ProjectionParameters self) -> Rotation3D"""
1816 return _IMP_em2d.ProjectionParameters_get_rotation(self)
1819 def set_rotation(self, R):
1820 """set_rotation(ProjectionParameters self, Rotation3D R)"""
1821 return _IMP_em2d.ProjectionParameters_set_rotation(self, R)
1824 def set_parameters_optimized(self, tf):
1825 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
1826 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, tf)
1829 def get_quaternion_1(self):
1830 """get_quaternion_1(ProjectionParameters self) -> double"""
1831 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
1834 def set_quaternion_1(self, t):
1835 """set_quaternion_1(ProjectionParameters self, double t)"""
1836 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, t)
1839 def get_quaternion_2(self):
1840 """get_quaternion_2(ProjectionParameters self) -> double"""
1841 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
1844 def set_quaternion_2(self, t):
1845 """set_quaternion_2(ProjectionParameters self, double t)"""
1846 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, t)
1849 def get_quaternion_3(self):
1850 """get_quaternion_3(ProjectionParameters self) -> double"""
1851 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
1854 def set_quaternion_3(self, t):
1855 """set_quaternion_3(ProjectionParameters self, double t)"""
1856 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, t)
1859 def get_quaternion_4(self):
1860 """get_quaternion_4(ProjectionParameters self) -> double"""
1861 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
1864 def set_quaternion_4(self, t):
1865 """set_quaternion_4(ProjectionParameters self, double t)"""
1866 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, t)
1869 def get_translation_x(self):
1870 """get_translation_x(ProjectionParameters self) -> double"""
1871 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
1874 def set_translation_x(self, t):
1875 """set_translation_x(ProjectionParameters self, double t)"""
1876 return _IMP_em2d.ProjectionParameters_set_translation_x(self, t)
1879 def get_translation_y(self):
1880 """get_translation_y(ProjectionParameters self) -> double"""
1881 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
1884 def set_translation_y(self, t):
1885 """set_translation_y(ProjectionParameters self, double t)"""
1886 return _IMP_em2d.ProjectionParameters_set_translation_y(self, t)
1889 def add_attribute(self, *args):
1891 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
1892 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1893 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
1894 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
1895 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1896 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
1898 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1901 def get_value(self, *args):
1903 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1904 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1905 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1906 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1907 get_value(ProjectionParameters self, ObjectKey a0) -> Object
1909 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1912 def set_value(self, *args):
1914 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1915 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1916 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1917 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1918 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
1920 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1923 def remove_attribute(self, *args):
1925 remove_attribute(ProjectionParameters self, FloatKey a0)
1926 remove_attribute(ProjectionParameters self, IntKey a0)
1927 remove_attribute(ProjectionParameters self, StringKey a0)
1928 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1929 remove_attribute(ProjectionParameters self, ObjectKey a0)
1931 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1934 def has_attribute(self, *args):
1936 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1937 has_attribute(ProjectionParameters self, IntKey a0) -> bool
1938 has_attribute(ProjectionParameters self, StringKey a0) -> bool
1939 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1940 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1942 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1945 def get_derivative(self, a0):
1946 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1947 return _IMP_em2d.ProjectionParameters_get_derivative(self, a0)
1951 """get_name(ProjectionParameters self) -> std::string"""
1952 return _IMP_em2d.ProjectionParameters_get_name(self)
1955 def clear_caches(self):
1956 """clear_caches(ProjectionParameters self)"""
1957 return _IMP_em2d.ProjectionParameters_clear_caches(self)
1960 def set_name(self, a0):
1961 """set_name(ProjectionParameters self, std::string a0)"""
1962 return _IMP_em2d.ProjectionParameters_set_name(self, a0)
1966 """set_check_level(ProjectionParameters self, IMP::CheckLevel a0)"""
1967 return _IMP_em2d.ProjectionParameters_set_check_level(self, a0)
1970 def add_to_derivative(self, a0, a1, a2):
1971 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1972 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, a0, a1, a2)
1975 def set_is_optimized(self, a0, a1):
1976 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
1977 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, a0, a1)
1980 def get_is_optimized(self, a0):
1981 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
1982 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, a0)
1986 """get_check_level(ProjectionParameters self) -> IMP::CheckLevel"""
1987 return _IMP_em2d.ProjectionParameters_get_check_level(self)
1990 def __eq__(self, *args):
1992 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
1993 __eq__(ProjectionParameters self, Particle d) -> bool
1995 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
1998 def __ne__(self, *args):
2000 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
2001 __ne__(ProjectionParameters self, Particle d) -> bool
2003 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
2006 def __le__(self, *args):
2008 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
2009 __le__(ProjectionParameters self, Particle d) -> bool
2011 return _IMP_em2d.ProjectionParameters___le__(self, *args)
2014 def __lt__(self, *args):
2016 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
2017 __lt__(ProjectionParameters self, Particle d) -> bool
2019 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
2022 def __ge__(self, *args):
2024 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
2025 __ge__(ProjectionParameters self, Particle d) -> bool
2027 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
2030 def __gt__(self, *args):
2032 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
2033 __gt__(ProjectionParameters self, Particle d) -> bool
2035 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
2039 """__hash__(ProjectionParameters self) -> std::size_t"""
2040 return _IMP_em2d.ProjectionParameters___hash__(self)
2044 """__str__(ProjectionParameters self) -> std::string"""
2045 return _IMP_em2d.ProjectionParameters___str__(self)
2049 """__repr__(ProjectionParameters self) -> std::string"""
2050 return _IMP_em2d.ProjectionParameters___repr__(self)
2052 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
2053 ProjectionParameters_swigregister(ProjectionParameters)
2055 def ProjectionParameters_setup_particle(*args):
2057 setup_particle(Model m, ParticleIndex pi) -> ProjectionParameters
2058 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
2060 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
2062 def ProjectionParameters_get_keys():
2063 """ProjectionParameters_get_keys() -> IMP::FloatKeys const &"""
2064 return _IMP_em2d.ProjectionParameters_get_keys()
2066 def ProjectionParameters_get_is_setup(*args):
2068 get_is_setup(_ParticleAdaptor p) -> bool
2069 ProjectionParameters_get_is_setup(Model m, ParticleIndex pi) -> bool
2071 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
2074 def __lshift__(out, n):
2075 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
2076 return _IMP_em2d.__lshift__(out, n)
2078 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class."""
2080 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2082 def __init__(self, p):
2083 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
2084 this = _IMP_em2d.new_ProjectionParametersScoreState(p)
2086 self.this.append(this)
2087 except __builtin__.Exception:
2090 def do_before_evaluate(self):
2091 """do_before_evaluate(ProjectionParametersScoreState self)"""
2092 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
2095 def do_after_evaluate(self, da):
2096 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
2097 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, da)
2100 def do_get_inputs(self):
2101 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2102 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
2105 def do_get_outputs(self):
2106 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::ModelObjectsTemp"""
2107 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
2110 def get_version_info(self):
2111 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
2112 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
2116 """__str__(ProjectionParametersScoreState self) -> std::string"""
2117 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
2121 """__repr__(ProjectionParametersScoreState self) -> std::string"""
2122 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
2127 return _object_cast_to_ProjectionParametersScoreState(o)
2129 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
2130 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
2132 class ProjectionMask(object):
2133 """Proxy of C++ IMP::em2d::ProjectionMask class."""
2135 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2137 def __init__(self, *args, **kwargs):
2138 raise AttributeError(
"No constructor defined")
2140 def apply(self, m, v):
2141 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
2142 return _IMP_em2d.ProjectionMask_apply(self, m, v)
2145 def show(self, *args):
2147 show(ProjectionMask self, _ostream out)
2148 show(ProjectionMask self)
2150 return _IMP_em2d.ProjectionMask_show(self, *args)
2152 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
2153 __del__ =
lambda self:
None
2156 """__str__(ProjectionMask self) -> std::string"""
2157 return _IMP_em2d.ProjectionMask___str__(self)
2161 """__repr__(ProjectionMask self) -> std::string"""
2162 return _IMP_em2d.ProjectionMask___repr__(self)
2164 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
2165 ProjectionMask_swigregister(ProjectionMask)
2169 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2170 return _IMP_em2d.do_place(mask, m, v)
2171 class MasksManager(object):
2172 """Proxy of C++ IMP::em2d::MasksManager class."""
2174 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2176 def __init__(self, *args):
2178 __init__(IMP::em2d::MasksManager self) -> MasksManager
2179 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2181 this = _IMP_em2d.new_MasksManager(*args)
2183 self.this.append(this)
2184 except __builtin__.Exception:
2187 def setup_kernel(self, resolution, pixelsize):
2188 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2189 return _IMP_em2d.MasksManager_setup_kernel(self, resolution, pixelsize)
2192 def create_masks(self, ps):
2193 """create_masks(MasksManager self, IMP::ParticlesTemp const & ps)"""
2194 return _IMP_em2d.MasksManager_create_masks(self, ps)
2197 def create_mask(self, mass):
2198 """create_mask(MasksManager self, double mass)"""
2199 return _IMP_em2d.MasksManager_create_mask(self, mass)
2202 def find_mask(self, mass):
2203 """find_mask(MasksManager self, double mass) -> IMP::em2d::ProjectionMaskPtr"""
2204 return _IMP_em2d.MasksManager_find_mask(self, mass)
2207 def show(self, *args):
2209 show(MasksManager self, _ostream out)
2210 show(MasksManager self)
2212 return _IMP_em2d.MasksManager_show(self, *args)
2215 def get_number_of_masks(self):
2216 """get_number_of_masks(MasksManager self) -> unsigned int"""
2217 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2219 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2220 __del__ =
lambda self:
None
2223 """__str__(MasksManager self) -> std::string"""
2224 return _IMP_em2d.MasksManager___str__(self)
2228 """__repr__(MasksManager self) -> std::string"""
2229 return _IMP_em2d.MasksManager___repr__(self)
2231 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2232 MasksManager_swigregister(MasksManager)
2234 class ProjectingParameters(object):
2235 """Proxy of C++ IMP::em2d::ProjectingParameters class."""
2237 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2238 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2239 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2241 def __init__(self, *args):
2243 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2244 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2246 this = _IMP_em2d.new_ProjectingParameters(*args)
2248 self.this.append(this)
2249 except __builtin__.Exception:
2252 def show(self, *args):
2254 show(ProjectingParameters self, _ostream out)
2255 show(ProjectingParameters self)
2257 return _IMP_em2d.ProjectingParameters_show(self, *args)
2261 """__str__(ProjectingParameters self) -> std::string"""
2262 return _IMP_em2d.ProjectingParameters___str__(self)
2266 """__repr__(ProjectingParameters self) -> std::string"""
2267 return _IMP_em2d.ProjectingParameters___repr__(self)
2269 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2270 __del__ =
lambda self:
None
2271 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2272 ProjectingParameters_swigregister(ProjectingParameters)
2274 class ProjectingOptions(ProjectingParameters):
2275 """Proxy of C++ IMP::em2d::ProjectingOptions class."""
2277 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2278 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2279 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2280 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2282 def __init__(self, *args):
2284 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2285 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2286 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2288 this = _IMP_em2d.new_ProjectingOptions(*args)
2290 self.this.append(this)
2291 except __builtin__.Exception:
2294 def show(self, *args):
2296 show(ProjectingOptions self, _ostream out)
2297 show(ProjectingOptions self)
2299 return _IMP_em2d.ProjectingOptions_show(self, *args)
2303 """__str__(ProjectingOptions self) -> std::string"""
2304 return _IMP_em2d.ProjectingOptions___str__(self)
2308 """__repr__(ProjectingOptions self) -> std::string"""
2309 return _IMP_em2d.ProjectingOptions___repr__(self)
2311 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2312 __del__ =
lambda self:
None
2313 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2314 ProjectingOptions_swigregister(ProjectingOptions)
2319 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2320 get_projections(IMP::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2321 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options, IMP::Strings names) -> IMP::em2d::Images
2322 get_projections(IMP::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values, int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2324 return _IMP_em2d.get_projections(*args)
2328 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks, IMP::String name)
2329 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2330 get_projection(Image img, IMP::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2332 return _IMP_em2d.get_projection(*args)
2335 """do_project_particles(IMP::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation, ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)"""
2336 return _IMP_em2d.do_project_particles(ps, m2, R, translation, options, masks)
2339 """create_evenly_distributed_projections(IMP::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2340 return _IMP_em2d.create_evenly_distributed_projections(ps, n, options)
2344 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2345 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2347 return _IMP_em2d.do_project_vectors(*args)
2350 """get_enclosing_image_size(IMP::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2351 return _IMP_em2d.get_enclosing_image_size(ps, pixel_size, slack)
2355 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2356 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2358 return _IMP_em2d.get_complete_alignment(input, m_to_align, apply)
2362 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2363 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2365 return _IMP_em2d.get_rotational_alignment(input, m_to_align, apply)
2369 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2370 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2372 return _IMP_em2d.get_translational_alignment(input, m_to_align, apply)
2376 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align, cv::Mat const & POLAR2, bool apply=False) -> ResultAlign2D
2377 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align, cv::Mat const & POLAR2) -> ResultAlign2D
2379 return _IMP_em2d.get_complete_alignment_no_preprocessing(input, INPUT, POLAR1, m_to_align, POLAR2, apply)
2382 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2383 return _IMP_em2d.get_rotational_alignment_no_preprocessing(POLAR1, POLAR2)
2386 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2387 return _IMP_em2d.get_translational_alignment_no_preprocessing(M1, M2)
2390 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2391 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(center1, center2, AUTOC_POLAR1, AUTOC_POLAR2)
2395 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2396 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2398 return _IMP_em2d.write_vectors_as_pdb(*args)
2399 class Em2DRestraintParameters(ProjectingParameters):
2400 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class."""
2402 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2403 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2404 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2405 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2406 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2407 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2408 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2410 def __init__(self, *args):
2412 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2413 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2414 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2416 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2418 self.this.append(this)
2419 except __builtin__.Exception:
2422 def show(self, *args):
2424 show(Em2DRestraintParameters self, _ostream out)
2425 show(Em2DRestraintParameters self)
2427 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2431 """__str__(Em2DRestraintParameters self) -> std::string"""
2432 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2436 """__repr__(Em2DRestraintParameters self) -> std::string"""
2437 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2439 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2440 __del__ =
lambda self:
None
2441 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2442 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2443 cvar = _IMP_em2d.cvar
2444 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2445 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2446 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2449 """Proxy of C++ IMP::em2d::ProjectionFinder class."""
2451 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2454 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2455 this = _IMP_em2d.new_ProjectionFinder()
2457 self.this.append(this)
2458 except __builtin__.Exception:
2461 def setup(self, score_function, params):
2462 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2463 return _IMP_em2d.ProjectionFinder_setup(self, score_function, params)
2466 def set_subjects(self, subjects):
2467 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2468 return _IMP_em2d.ProjectionFinder_set_subjects(self, subjects)
2471 def set_projections(self, projections):
2472 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2473 return _IMP_em2d.ProjectionFinder_set_projections(self, projections)
2476 def set_variance_images(self, variances):
2477 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2478 return _IMP_em2d.ProjectionFinder_set_variance_images(self, variances)
2481 def set_model_particles(self, ps):
2482 """set_model_particles(ProjectionFinder self, IMP::ParticlesTemp const & ps)"""
2483 return _IMP_em2d.ProjectionFinder_set_model_particles(self, ps)
2486 def set_save_match_images(self, x):
2487 """set_save_match_images(ProjectionFinder self, bool x)"""
2488 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, x)
2491 def get_save_match_images(self):
2492 """get_save_match_images(ProjectionFinder self) -> bool"""
2493 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2496 def set_fast_mode(self, n):
2497 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2498 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, n)
2501 def get_registration_results(self):
2502 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2503 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2506 def get_coarse_registration(self):
2507 """get_coarse_registration(ProjectionFinder self)"""
2508 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2511 def get_complete_registration(self):
2512 """get_complete_registration(ProjectionFinder self)"""
2513 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2517 """get_global_score(ProjectionFinder self) -> double"""
2518 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2521 def show(self, out):
2522 """show(ProjectionFinder self, _ostream out)"""
2523 return _IMP_em2d.ProjectionFinder_show(self, out)
2526 def get_preprocessing_time(self):
2527 """get_preprocessing_time(ProjectionFinder self) -> double"""
2528 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2531 def get_coarse_registration_time(self):
2532 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2533 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2536 def get_fine_registration_time(self):
2537 """get_fine_registration_time(ProjectionFinder self) -> double"""
2538 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2541 def get_number_of_subjects(self):
2542 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2543 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2546 def set_number_of_class_averages_members(self, n_members):
2547 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2548 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, n_members)
2551 def get_number_of_projections(self):
2552 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2553 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2556 def get_version_info(self):
2557 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2558 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2562 """__str__(ProjectionFinder self) -> std::string"""
2563 return _IMP_em2d.ProjectionFinder___str__(self)
2567 """__repr__(ProjectionFinder self) -> std::string"""
2568 return _IMP_em2d.ProjectionFinder___repr__(self)
2573 return _object_cast_to_ProjectionFinder(o)
2575 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2576 ProjectionFinder_swigregister(ProjectionFinder)
2579 """Proxy of C++ IMP::em2d::Em2DRestraint class."""
2581 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2583 def __init__(self, m):
2584 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
2585 this = _IMP_em2d.new_Em2DRestraint(m)
2587 self.this.append(this)
2588 except __builtin__.Exception:
2591 def setup(self, score_function, params):
2592 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2593 return _IMP_em2d.Em2DRestraint_setup(self, score_function, params)
2596 def set_particles(self, particles_container):
2597 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2598 return _IMP_em2d.Em2DRestraint_set_particles(self, particles_container)
2601 def set_images(self, em_images):
2602 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2603 return _IMP_em2d.Em2DRestraint_set_images(self, em_images)
2606 def set_variance_images(self, variance_images):
2607 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2608 return _IMP_em2d.Em2DRestraint_set_variance_images(self, variance_images)
2611 def set_fast_mode(self, n):
2612 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2613 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, n)
2616 def set_coarse_registration_mode(self, opt):
2617 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2618 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, opt)
2621 def get_registration_results(self):
2622 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2623 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2626 def do_get_inputs(self):
2627 """do_get_inputs(Em2DRestraint self) -> IMP::ModelObjectsTemp"""
2628 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2631 def get_version_info(self):
2632 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2633 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2637 """__str__(Em2DRestraint self) -> std::string"""
2638 return _IMP_em2d.Em2DRestraint___str__(self)
2642 """__repr__(Em2DRestraint self) -> std::string"""
2643 return _IMP_em2d.Em2DRestraint___repr__(self)
2648 return _object_cast_to_Em2DRestraint(o)
2650 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2651 Em2DRestraint_swigregister(Em2DRestraint)
2653 class ClusterSet(object):
2654 """Proxy of C++ IMP::em2d::ClusterSet class."""
2656 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2658 def __init__(self, N):
2659 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2660 this = _IMP_em2d.new_ClusterSet(N)
2662 self.this.append(this)
2663 except __builtin__.Exception:
2666 def do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters):
2667 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2668 return _IMP_em2d.ClusterSet_do_join_clusters(self, cluster_id1, cluster_id2, distance_between_clusters)
2671 def get_cluster_elements(self, id):
2672 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2673 return _IMP_em2d.ClusterSet_get_cluster_elements(self, id)
2676 def get_clusters_below_cutoff(self, cutoff):
2677 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2678 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, cutoff)
2681 def get_cluster_formed_at_step(self, step):
2682 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2683 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, step)
2686 def get_distance_at_step(self, step):
2687 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2688 return _IMP_em2d.ClusterSet_get_distance_at_step(self, step)
2691 def get_id_for_cluster_at_step(self, step):
2692 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2693 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, step)
2696 def get_linkage_matrix(self):
2697 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2698 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2701 def get_linkage_matrix_in_matlab_format(self):
2702 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2703 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2706 def get_number_of_steps(self):
2707 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2708 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2711 def show(self, out):
2712 """show(ClusterSet self, _ostream out)"""
2713 return _IMP_em2d.ClusterSet_show(self, out)
2717 """__str__(ClusterSet self) -> std::string"""
2718 return _IMP_em2d.ClusterSet___str__(self)
2722 """__repr__(ClusterSet self) -> std::string"""
2723 return _IMP_em2d.ClusterSet___repr__(self)
2725 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2726 __del__ =
lambda self:
None
2727 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2728 ClusterSet_swigregister(ClusterSet)
2730 class SingleLinkage(object):
2731 """Proxy of C++ IMP::em2d::SingleLinkage class."""
2733 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2736 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2737 this = _IMP_em2d.new_SingleLinkage()
2739 self.this.append(this)
2740 except __builtin__.Exception:
2743 def __call__(self, id1, id2, cluster_set, distances):
2744 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2745 return _IMP_em2d.SingleLinkage___call__(self, id1, id2, cluster_set, distances)
2748 def show(self, out):
2749 """show(SingleLinkage self, _ostream out)"""
2750 return _IMP_em2d.SingleLinkage_show(self, out)
2754 """__str__(SingleLinkage self) -> std::string"""
2755 return _IMP_em2d.SingleLinkage___str__(self)
2759 """__repr__(SingleLinkage self) -> std::string"""
2760 return _IMP_em2d.SingleLinkage___repr__(self)
2762 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2763 __del__ =
lambda self:
None
2764 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2765 SingleLinkage_swigregister(SingleLinkage)
2767 class CompleteLinkage(object):
2768 """Proxy of C++ IMP::em2d::CompleteLinkage class."""
2770 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2773 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2774 this = _IMP_em2d.new_CompleteLinkage()
2776 self.this.append(this)
2777 except __builtin__.Exception:
2780 def __call__(self, id1, id2, cluster_set, distances):
2781 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2782 return _IMP_em2d.CompleteLinkage___call__(self, id1, id2, cluster_set, distances)
2785 def show(self, out):
2786 """show(CompleteLinkage self, _ostream out)"""
2787 return _IMP_em2d.CompleteLinkage_show(self, out)
2791 """__str__(CompleteLinkage self) -> std::string"""
2792 return _IMP_em2d.CompleteLinkage___str__(self)
2796 """__repr__(CompleteLinkage self) -> std::string"""
2797 return _IMP_em2d.CompleteLinkage___repr__(self)
2799 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2800 __del__ =
lambda self:
None
2801 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2802 CompleteLinkage_swigregister(CompleteLinkage)
2804 class AverageDistanceLinkage(object):
2805 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class."""
2807 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2810 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2811 this = _IMP_em2d.new_AverageDistanceLinkage()
2813 self.this.append(this)
2814 except __builtin__.Exception:
2817 def __call__(self, id1, id2, cluster_set, distances):
2818 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2819 return _IMP_em2d.AverageDistanceLinkage___call__(self, id1, id2, cluster_set, distances)
2822 def show(self, out):
2823 """show(AverageDistanceLinkage self, _ostream out)"""
2824 return _IMP_em2d.AverageDistanceLinkage_show(self, out)
2828 """__str__(AverageDistanceLinkage self) -> std::string"""
2829 return _IMP_em2d.AverageDistanceLinkage___str__(self)
2833 """__repr__(AverageDistanceLinkage self) -> std::string"""
2834 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2836 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2837 __del__ =
lambda self:
None
2838 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2839 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2842 """Proxy of C++ IMP::em2d::CollisionCrossSection class."""
2844 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2846 def __init__(self, n_projections, resolution, pixel_size, projection_image_size):
2847 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2848 this = _IMP_em2d.new_CollisionCrossSection(n_projections, resolution, pixel_size, projection_image_size)
2850 self.this.append(this)
2851 except __builtin__.Exception:
2854 def set_model_particles(self, ps):
2855 """set_model_particles(CollisionCrossSection self, IMP::ParticlesTemp const & ps)"""
2856 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, ps)
2860 """get_ccs(CollisionCrossSection self) -> double"""
2861 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2864 def show(self, out):
2865 """show(CollisionCrossSection self, _ostream out)"""
2866 return _IMP_em2d.CollisionCrossSection_show(self, out)
2869 def get_version_info(self):
2870 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2871 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2875 """__str__(CollisionCrossSection self) -> std::string"""
2876 return _IMP_em2d.CollisionCrossSection___str__(self)
2880 """__repr__(CollisionCrossSection self) -> std::string"""
2881 return _IMP_em2d.CollisionCrossSection___repr__(self)
2886 return _object_cast_to_CollisionCrossSection(o)
2888 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2889 CollisionCrossSection_swigregister(CollisionCrossSection)
2892 """Proxy of C++ IMP::em2d::GridStates class."""
2894 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2896 def __init__(self, *args):
2898 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::String const & name) -> GridStates
2899 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2901 this = _IMP_em2d.new_GridStates(*args)
2903 self.this.append(this)
2904 except __builtin__.Exception:
2907 def get_position(self, i):
2908 """get_position(GridStates self, unsigned int i) -> Vector3D"""
2909 return _IMP_em2d.GridStates_get_position(self, i)
2912 def get_orientation(self, i):
2913 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2914 return _IMP_em2d.GridStates_get_orientation(self, i)
2917 def get_version_info(self):
2918 """get_version_info(GridStates self) -> VersionInfo"""
2919 return _IMP_em2d.GridStates_get_version_info(self)
2923 """__str__(GridStates self) -> std::string"""
2924 return _IMP_em2d.GridStates___str__(self)
2928 """__repr__(GridStates self) -> std::string"""
2929 return _IMP_em2d.GridStates___repr__(self)
2934 return _object_cast_to_GridStates(o)
2936 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2937 GridStates_swigregister(GridStates)
2939 class ProjectionStates(GridStates):
2940 """Proxy of C++ IMP::em2d::ProjectionStates class."""
2942 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2944 def __init__(self, *args):
2946 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections, IMP::String const & name) -> ProjectionStates
2947 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations, IMP::em2d::Images const & projections) -> ProjectionStates
2949 this = _IMP_em2d.new_ProjectionStates(*args)
2951 self.this.append(this)
2952 except __builtin__.Exception:
2956 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
2957 return _IMP_em2d.ProjectionStates_get_projection(self, i)
2961 """__str__(ProjectionStates self) -> std::string"""
2962 return _IMP_em2d.ProjectionStates___str__(self)
2966 """__repr__(ProjectionStates self) -> std::string"""
2967 return _IMP_em2d.ProjectionStates___repr__(self)
2972 return _object_cast_to_ProjectionStates(o)
2974 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
2975 ProjectionStates_swigregister(ProjectionStates)
2978 """Proxy of C++ IMP::em2d::DistanceFilter 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, subset_to_act_on, subset_to_restrain, ps_table, max_distance):
2983 """__init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table, double max_distance) -> DistanceFilter"""
2984 this = _IMP_em2d.new_DistanceFilter(subset_to_act_on, subset_to_restrain, ps_table, max_distance)
2986 self.this.append(this)
2987 except __builtin__.Exception:
2990 def show(self, *args):
2992 show(DistanceFilter self, _ostream out)
2993 show(DistanceFilter self)
2995 return _IMP_em2d.DistanceFilter_show(self, *args)
2998 def get_version_info(self):
2999 """get_version_info(DistanceFilter self) -> VersionInfo"""
3000 return _IMP_em2d.DistanceFilter_get_version_info(self)
3004 """__str__(DistanceFilter self) -> std::string"""
3005 return _IMP_em2d.DistanceFilter___str__(self)
3009 """__repr__(DistanceFilter self) -> std::string"""
3010 return _IMP_em2d.DistanceFilter___repr__(self)
3015 return _object_cast_to_DistanceFilter(o)
3017 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
3018 DistanceFilter_swigregister(DistanceFilter)
3021 """Proxy of C++ IMP::em2d::DistanceFilterTable class."""
3023 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3025 def __init__(self, subset_to_act_on, ps_table, max_distance):
3026 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
3027 this = _IMP_em2d.new_DistanceFilterTable(subset_to_act_on, ps_table, max_distance)
3029 self.this.append(this)
3030 except __builtin__.Exception:
3033 def show(self, *args):
3035 show(DistanceFilterTable self, _ostream out)
3036 show(DistanceFilterTable self)
3038 return _IMP_em2d.DistanceFilterTable_show(self, *args)
3041 def get_version_info(self):
3042 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
3043 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
3047 """__str__(DistanceFilterTable self) -> std::string"""
3048 return _IMP_em2d.DistanceFilterTable___str__(self)
3052 """__repr__(DistanceFilterTable self) -> std::string"""
3053 return _IMP_em2d.DistanceFilterTable___repr__(self)
3058 return _object_cast_to_DistanceFilterTable(o)
3060 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
3061 DistanceFilterTable_swigregister(DistanceFilterTable)
3063 class IntsOrder(object):
3064 """Proxy of C++ IMP::em2d::IntsOrder class."""
3066 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3067 __repr__ = _swig_repr
3069 def __call__(self, a, b):
3070 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
3071 return _IMP_em2d.IntsOrder___call__(self, a, b)
3075 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
3076 this = _IMP_em2d.new_IntsOrder()
3078 self.this.append(this)
3079 except __builtin__.Exception:
3081 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
3082 __del__ =
lambda self:
None
3083 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
3084 IntsOrder_swigregister(IntsOrder)
3087 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class."""
3089 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3091 def get_version_info(self):
3092 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
3093 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
3096 def __init__(self, scf, rbs, img):
3097 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
3098 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(scf, rbs, img)
3100 self.this.append(this)
3101 except __builtin__.Exception:
3104 def set_projecting_parameters(self, p):
3105 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
3106 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, p)
3109 def set_orientations(self, rb, rots):
3110 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
3111 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, rb, rots)
3114 def get_number_of_masks(self, rb):
3115 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
3116 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, rb)
3120 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
3121 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
3125 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
3126 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
3131 return _object_cast_to_RigidBodiesImageFitRestraint(o)
3133 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
3134 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
3138 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
3139 return _IMP_em2d.get_unique_index(rot)
3141 """Proxy of C++ IMP::em2d::RelativePositionMover class."""
3143 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3145 def __init__(self, d, max_translation, max_rotation):
3146 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
3147 this = _IMP_em2d.new_RelativePositionMover(d, max_translation, max_rotation)
3149 self.this.append(this)
3150 except __builtin__.Exception:
3153 def add_internal_transformations(self, d, transforms):
3154 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
3155 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, d, transforms)
3158 def set_random_move_probability(self, p):
3159 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
3160 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, p)
3164 """__str__(RelativePositionMover self) -> std::string"""
3165 return _IMP_em2d.RelativePositionMover___str__(self)
3169 """__repr__(RelativePositionMover self) -> std::string"""
3170 return _IMP_em2d.RelativePositionMover___repr__(self)
3175 return _object_cast_to_RelativePositionMover(o)
3177 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
3178 RelativePositionMover_swigregister(RelativePositionMover)
3181 """Proxy of C++ IMP::em2d::DummyRestraint class."""
3183 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3185 def __init__(self, p, q):
3186 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
3187 this = _IMP_em2d.new_DummyRestraint(p, q)
3189 self.this.append(this)
3190 except __builtin__.Exception:
3193 def show(self, *args):
3195 show(DummyRestraint self, _ostream out)
3196 show(DummyRestraint self)
3198 return _IMP_em2d.DummyRestraint_show(self, *args)
3201 def do_get_inputs(self):
3202 """do_get_inputs(DummyRestraint self) -> IMP::ModelObjectsTemp"""
3203 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
3206 def get_version_info(self):
3207 """get_version_info(DummyRestraint self) -> VersionInfo"""
3208 return _IMP_em2d.DummyRestraint_get_version_info(self)
3212 """__str__(DummyRestraint self) -> std::string"""
3213 return _IMP_em2d.DummyRestraint___str__(self)
3217 """__repr__(DummyRestraint self) -> std::string"""
3218 return _IMP_em2d.DummyRestraint___repr__(self)
3223 return _object_cast_to_DummyRestraint(o)
3225 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3226 DummyRestraint_swigregister(DummyRestraint)
3229 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class."""
3231 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3233 def __init__(self, sc):
3234 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3235 this = _IMP_em2d.new_ParticlesDummyRestraint(sc)
3237 self.this.append(this)
3238 except __builtin__.Exception:
3241 def show(self, *args):
3243 show(ParticlesDummyRestraint self, _ostream out)
3244 show(ParticlesDummyRestraint self)
3246 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3249 def do_get_inputs(self):
3250 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::ModelObjectsTemp"""
3251 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3254 def get_version_info(self):
3255 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3256 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3260 """__str__(ParticlesDummyRestraint self) -> std::string"""
3261 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3265 """__repr__(ParticlesDummyRestraint self) -> std::string"""
3266 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3271 return _object_cast_to_ParticlesDummyRestraint(o)
3273 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3274 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3277 """Proxy of C++ IMP::em2d::PCAFitRestraint class."""
3279 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3281 def __init__(self, particles, image_files, pixel_size, resolution=10.0, projection_number=100, reuse_direction=False, n_components=1):
3283 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100, bool reuse_direction=False, unsigned int n_components=1) -> PCAFitRestraint
3284 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100, bool reuse_direction=False) -> PCAFitRestraint
3285 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0, unsigned int projection_number=100) -> PCAFitRestraint
3286 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
3287 __init__(IMP::em2d::PCAFitRestraint self, IMP::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
3289 this = _IMP_em2d.new_PCAFitRestraint(particles, image_files, pixel_size, resolution, projection_number, reuse_direction, n_components)
3291 self.this.append(this)
3292 except __builtin__.Exception:
3295 def get_projection_number(self):
3296 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
3297 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
3300 def set_projection_number(self, n):
3301 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
3302 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, n)
3305 def get_transformation(self, image_number):
3306 """get_transformation(PCAFitRestraint self, unsigned int image_number) -> Transformation3D"""
3307 return _IMP_em2d.PCAFitRestraint_get_transformation(self, image_number)
3311 """get_cross_correlation_coefficient(PCAFitRestraint self, unsigned int image_number) -> double"""
3312 return _IMP_em2d.PCAFitRestraint_get_cross_correlation_coefficient(self, image_number)
3315 def write_best_projections(self, file_name, evaluate=False):
3317 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
3318 write_best_projections(PCAFitRestraint self, std::string file_name)
3320 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, file_name, evaluate)
3323 def do_get_inputs(self):
3324 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3325 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
3328 def get_version_info(self):
3329 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3330 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
3334 """__str__(PCAFitRestraint self) -> std::string"""
3335 return _IMP_em2d.PCAFitRestraint___str__(self)
3339 """__repr__(PCAFitRestraint self) -> std::string"""
3340 return _IMP_em2d.PCAFitRestraint___repr__(self)
3345 return _object_cast_to_em2dPCAFitRestraint(o)
3347 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
3348 PCAFitRestraint_swigregister(PCAFitRestraint)
3351 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class."""
3353 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3354 __repr__ = _swig_repr
3356 def __init__(self, *args):
3358 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3359 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3360 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3362 this = _IMP_em2d.new_ResultAlign2D(*args)
3364 self.this.append(this)
3365 except __builtin__.Exception:
3367 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3368 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3372 return str((self.first, self.second))
3373 def __getitem__(self, index):
3378 def __setitem__(self, index, val):
3383 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3384 __del__ =
lambda self:
None
3385 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3386 ResultAlign2D_swigregister(ResultAlign2D)
3389 def _do_hierarchical_clustering_single_linkage(distances):
3390 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3391 return _IMP_em2d._do_hierarchical_clustering_single_linkage(distances)
3393 def _do_hierarchical_clustering_complete_linkage(distances):
3394 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3395 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(distances)
3397 def _do_hierarchical_clustering_average_distance_linkage(distances):
3398 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3399 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(distances)
3401 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3402 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3403 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3406 def get_module_version():
3407 """get_module_version() -> std::string const"""
3408 return _IMP_em2d.get_module_version()
3411 """get_example_path(std::string fname) -> std::string"""
3412 return _IMP_em2d.get_example_path(fname)
3415 """get_data_path(std::string fname) -> std::string"""
3416 return _IMP_em2d.get_data_path(fname)
3418 from .
import _version_check
3419 _version_check.check_version(get_module_version())
3420 __version__ = get_module_version()
double get_shift_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Distance between the two in-plane translations.
Images create_evenly_distributed_projections(const ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
void get_autocorrelation2d_no_preprocessing(const cv::Mat &M, cv::Mat &corr)
Autocorrelation without preprocessing.
void do_morphologic_contrast_enhancement(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
CheckLevel get_check_level()
Get the current audit mode.
void apply_threshold(cv::Mat &m, cv::Mat &result, double threshold=0.0)
em2d::Images get_projections(const ParticlesTemp &ps, const algebra::SphericalVector3Ds &vs, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
IMPEM2D_BEGIN_NAMESPACE Strings read_selection_file(String fn)
Reads a selection file.
ResultAlign2D get_complete_alignment_with_centers_no_preprocessing(const algebra::Vector2D ¢er1, const algebra::Vector2D ¢er2, const cv::Mat &AUTOC_POLAR1, const cv::Mat &AUTOC_POLAR2)
Strings create_filenames(unsigned long number, String basic_name, String extension)
Various classes to hold sets of particles.
ResultAlign2D get_translational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
Aligns two matrices translationally.
void get_correlation2d(const cv::Mat &A, const cv::Mat &B, cv::Mat &corr)
Correlation matrix between two 2D matrices using FFT.
cvIntMat create_circular_mask(int rows, int cols, int radius)
ResultAlign2D get_complete_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
void do_dilate_and_shrink_warp(cv::Mat &m, const cv::Mat &grayscale, cv::Mat &kernel)
(U. Adiga, 2005)
em2d::ResultAlign2D get_rotational_alignment(const cv::Mat &input, cv::Mat &m_to_align, bool apply=false)
RegistrationResults get_evenly_distributed_registration_results(unsigned int n_projections)
void apply_variance_filter(Image *input, Image *filtered, int kernelsize)
void apply_diffusion_filter(Image *input, Image *filtered, double beta, double pixelsize, int time_steps)
int do_labeling(const cvIntMat &m, cvIntMat &mat_to_label)
Labeling function for a matrix.
Make CGAL functionality available to IMP.
MatchTemplateResults get_best_template_matches(const cv::Mat &m, const cv::Mat &templ, unsigned int n)
Modify the transformation of a rigid body.
void do_project_particles(const ParticlesTemp &ps, cv::Mat &m2, const algebra::Rotation3D &R, const algebra::Vector3D &translation, const ProjectingOptions &options, MasksManagerPtr masks)
Projects a set of particles. This is the core function that others call.
void get_autocorrelation2d(const cv::Mat &m, cv::Mat &corr)
Computes the autocorrelation matrix.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void apply_mean_outside_mask(Image *img, double radius)
Several general purpose optimizers from the GNU Scientific Library (GSL).
double get_rotation_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Composable functors to implement scores via compile-time composition.
ResultAlign2D get_rotational_alignment_no_preprocessing(const cv::Mat &POLAR1, const cv::Mat &POLAR2)
void get_fft_using_optimal_size(const cv::Mat &m, cv::Mat &M)
Floats get_histogram(Image *img, int bins)
void write_matrix(cv::Mat &m, std::string name)
Quick and dirty way of writing a OpenCV matrix to a Spider image.
void do_subtract_images(Image *first, Image *second, Image *result)
Code to compute statistical measures.
RegistrationResults get_random_registration_results(unsigned int n, double maximum_shift=5.0)
Provides a set of random registration results (or parameters)
algebra::Vector2Ds do_project_vectors(const algebra::Vector3Ds &ps, const algebra::Rotation3D &R, const algebra::Vector3D &translation)
Project the points contained in Vector3Ds to gen vectors in 2D.
void write_vectors_as_pdb(const algebra::Vector2Ds vs, const String filename)
Common base class for heavy weight IMP objects.
ScoreStates maintain invariants in the Model.
void apply_circular_mask(const cv::Mat &mat, cv::Mat &result, int radius, double value=0.0)
Images read_images(const Strings &names, const ImageReaderWriter *rw)
void write_registration_results(String filename, const RegistrationResults &results)
Writes a set of registration results.
Basic utilities for handling cryo-electron microscopy 3D density maps.
void crop(Image *img, const IntPair ¢er, int size)
void get_morphologic_gradient(const cv::Mat &m, cv::Mat &result, const cv::Mat &kernel)
void apply_mask(const cv::Mat &m, cv::Mat &result, const cvIntMat &mask, double val)
Applies a binary mask to an image.
double get_cross_correlation_coefficient(Image *im1, Image *im2)
Cross correlation between two images.
void save_images(Images images, const Strings &names, const ImageReaderWriter *rw)
void get_domes(cv::Mat &m, cv::Mat &result, double h)
Gets the domes of m with height h.
void do_normalize(Image *im, bool force=false)
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.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
A restraint is a term in an IMP ScoringFunction.
void get_spectrum(const cv::Mat &m, cv::Mat &real, cv::Mat &imag)
Computes the fft of a matrix and returns the real and imaginary matrices.