11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_em2d', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_em2d', fp, pathname, description)
28 _IMP_em2d = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
72 def _swig_setattr_nondynamic_method(set):
73 def set_attr(self,name,value):
74 if (name ==
"thisown"):
return self.this.own(value)
75 if hasattr(self,name)
or (name ==
"this"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_EM2D_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class"""
91 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
92 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
94 __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
98 return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
102 incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
103 incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
105 return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
109 decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
110 decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
112 return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
120 return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, *args)
123 """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
124 return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
127 """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
128 return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
131 """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
132 return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
135 """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
136 return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
140 return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
144 return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
148 return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
152 return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
156 return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
160 return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
165 __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
171 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
178 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
179 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
180 IMP_SILENT = _IMP_em2d.IMP_SILENT
181 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
182 IMP_TERSE = _IMP_em2d.IMP_TERSE
183 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
184 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
185 IMP_NONE = _IMP_em2d.IMP_NONE
186 IMP_USAGE = _IMP_em2d.IMP_USAGE
187 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_em2d.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_em2d.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_em2d.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_em2d.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 """Proxy of C++ std::ostream class"""
224 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
225 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
226 __repr__ = _swig_repr
227 def write(self, *args):
228 """write(_ostream self, char const * osa_buf)"""
229 return _IMP_em2d._ostream_write(self, *args)
231 _ostream_swigregister = _IMP_em2d._ostream_swigregister
232 _ostream_swigregister(_ostream)
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_em2d.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_em2d.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_em2d.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_em2d.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
269 IMP_GSL_HAS_IMP_BASE = _IMP_em2d.IMP_GSL_HAS_IMP_BASE
270 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
271 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
272 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
273 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
274 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
275 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
276 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
278 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
279 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
280 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
281 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
282 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
283 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_HDF5
285 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
287 IMP_STATISTICS_HAS_IMP_BASE = _IMP_em2d.IMP_STATISTICS_HAS_IMP_BASE
288 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
289 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
290 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
291 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
292 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
293 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
294 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
296 IMP_CORE_HAS_IMP_BASE = _IMP_em2d.IMP_CORE_HAS_IMP_BASE
297 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
298 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
299 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
300 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
301 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
302 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
303 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
304 IMP_CORE_HAS_HDF5 = _IMP_em2d.IMP_CORE_HAS_HDF5
305 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
307 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
308 IMP_CONTAINER_HAS_IMP_BASE = _IMP_em2d.IMP_CONTAINER_HAS_IMP_BASE
309 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
310 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
311 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
312 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
313 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
314 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
315 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
316 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
317 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
318 IMP_CONTAINER_HAS_HDF5 = _IMP_em2d.IMP_CONTAINER_HAS_HDF5
319 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
321 IMP_ATOM_HAS_IMP_BASE = _IMP_em2d.IMP_ATOM_HAS_IMP_BASE
322 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
323 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
324 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
325 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
326 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
327 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
328 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
329 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
330 IMP_ATOM_HAS_HDF5 = _IMP_em2d.IMP_ATOM_HAS_HDF5
331 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
332 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
333 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
334 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
336 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
337 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
338 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
339 IMP_EM_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM_HAS_IMP_KERNEL
340 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
341 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
342 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
343 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
344 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
345 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
346 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
347 IMP_EM_HAS_HDF5 = _IMP_em2d.IMP_EM_HAS_HDF5
348 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
350 IMP_RMF_HAS_IMP_BASE = _IMP_em2d.IMP_RMF_HAS_IMP_BASE
351 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
352 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
353 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
354 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
355 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
356 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
357 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
358 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
359 IMP_RMF_HAS_HDF5 = _IMP_em2d.IMP_RMF_HAS_HDF5
360 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
363 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
364 IMP_DOMINO_HAS_IMP_BASE = _IMP_em2d.IMP_DOMINO_HAS_IMP_BASE
365 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
366 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
367 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
368 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
369 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
370 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
371 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
372 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
373 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
374 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
375 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
376 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
377 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
380 IMP_EM2D_HAS_IMP_BASE = _IMP_em2d.IMP_EM2D_HAS_IMP_BASE
381 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
382 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
383 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
384 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
385 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
386 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
387 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
388 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
389 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
390 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
391 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
392 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
393 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
394 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
395 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
396 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
397 PolarResamplingParametersList=list
398 _plural_types.append(
"PolarResamplingParametersList")
399 _value_types.append(
"PolarResamplingParameters")
402 _plural_types.append(
"ProjectionMasks")
403 _value_types.append(
"ProjectionMask")
406 _plural_types.append(
"MasksManagers")
407 _value_types.append(
"MasksManager")
409 RegistrationResults=list
410 _plural_types.append(
"RegistrationResults")
411 _value_types.append(
"RegistrationResult")
414 _plural_types.append(
"ClusterSets")
415 _value_types.append(
"ClusterSet")
418 _plural_types.append(
"SingleLinkages")
419 _value_types.append(
"SingleLinkage")
421 CompleteLinkages=list
422 _plural_types.append(
"CompleteLinkages")
423 _value_types.append(
"CompleteLinkage")
425 AverageDistanceLinkages=list
426 _plural_types.append(
"AverageDistanceLinkages")
427 _value_types.append(
"AverageDistanceLinkage")
429 SegmentationParametersList=list
430 _plural_types.append(
"SegmentationParametersList")
431 _value_types.append(
"SegmentationParameters")
433 MatchTemplateResults=list
434 _plural_types.append(
"MatchTemplateResults")
435 _value_types.append(
"MatchTemplateResult")
437 ProjectingParametersList=list
438 _plural_types.append(
"ProjectingParametersList")
439 _value_types.append(
"ProjectingParameters")
441 ProjectingOptionsList=list
442 _plural_types.append(
"ProjectingOptionsList")
443 _value_types.append(
"ProjectingOptions")
445 Em2DRestraintParametersList=list
446 _plural_types.append(
"Em2DRestraintParametersList")
447 _value_types.append(
"Em2DRestraintParameters")
449 _object_types.append(
"ProjectionFinder")
452 def _object_cast_to_ProjectionFinder(*args):
453 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
454 return _IMP_em2d._object_cast_to_ProjectionFinder(*args)
455 _object_types.append(
"ScoreFunction")
458 def _object_cast_to_ScoreFunction(*args):
459 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
460 return _IMP_em2d._object_cast_to_ScoreFunction(*args)
461 _object_types.append(
"ChiSquaredScore")
464 def _object_cast_to_ChiSquaredScore(*args):
465 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
466 return _IMP_em2d._object_cast_to_ChiSquaredScore(*args)
467 _object_types.append(
"EM2DScore")
470 def _object_cast_to_EM2DScore(*args):
471 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
472 return _IMP_em2d._object_cast_to_EM2DScore(*args)
473 _object_types.append(
"MeanAbsoluteDifference")
476 def _object_cast_to_MeanAbsoluteDifference(*args):
477 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
478 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(*args)
479 _object_types.append(
"ProjectionParametersScoreState")
482 def _object_cast_to_ProjectionParametersScoreState(*args):
483 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
484 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(*args)
485 _object_types.append(
"Em2DRestraint")
488 def _object_cast_to_Em2DRestraint(*args):
489 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
490 return _IMP_em2d._object_cast_to_Em2DRestraint(*args)
491 _object_types.append(
"Image")
494 def _object_cast_to_Image(*args):
495 """_object_cast_to_Image(Object o) -> Image"""
496 return _IMP_em2d._object_cast_to_Image(*args)
497 _object_types.append(
"ImageReaderWriter")
500 def _object_cast_to_ImageReaderWriter(*args):
501 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
502 return _IMP_em2d._object_cast_to_ImageReaderWriter(*args)
503 _object_types.append(
"JPGImageReaderWriter")
506 def _object_cast_to_JPGImageReaderWriter(*args):
507 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
508 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(*args)
509 _object_types.append(
"TIFFImageReaderWriter")
512 def _object_cast_to_TIFFImageReaderWriter(*args):
513 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
514 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(*args)
515 _object_types.append(
"SpiderImageReaderWriter")
518 def _object_cast_to_SpiderImageReaderWriter(*args):
519 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
520 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(*args)
521 _object_types.append(
"CollisionCrossSection")
524 def _object_cast_to_CollisionCrossSection(*args):
525 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
526 return _IMP_em2d._object_cast_to_CollisionCrossSection(*args)
527 _object_types.append(
"GridStates")
530 def _object_cast_to_GridStates(*args):
531 """_object_cast_to_GridStates(Object o) -> GridStates"""
532 return _IMP_em2d._object_cast_to_GridStates(*args)
533 _object_types.append(
"ProjectionStates")
536 def _object_cast_to_ProjectionStates(*args):
537 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
538 return _IMP_em2d._object_cast_to_ProjectionStates(*args)
539 _object_types.append(
"DistanceFilter")
542 def _object_cast_to_DistanceFilter(*args):
543 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
544 return _IMP_em2d._object_cast_to_DistanceFilter(*args)
545 _object_types.append(
"DistanceFilterTable")
548 def _object_cast_to_DistanceFilterTable(*args):
549 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
550 return _IMP_em2d._object_cast_to_DistanceFilterTable(*args)
551 _object_types.append(
"RigidBodiesImageFitRestraint")
554 def _object_cast_to_RigidBodiesImageFitRestraint(*args):
555 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
556 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(*args)
557 _object_types.append(
"DummyRestraint")
560 def _object_cast_to_DummyRestraint(*args):
561 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
562 return _IMP_em2d._object_cast_to_DummyRestraint(*args)
563 _object_types.append(
"ParticlesDummyRestraint")
566 def _object_cast_to_ParticlesDummyRestraint(*args):
567 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
568 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(*args)
569 _object_types.append(
"RelativePositionMover")
572 def _object_cast_to_RelativePositionMover(*args):
573 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
574 return _IMP_em2d._object_cast_to_RelativePositionMover(*args)
575 _object_types.append(
"PCAFitRestraint")
577 def ProjectionParametersList(l=[]):
578 return [ProjectionParameters(x)
for x
in l]
579 _plural_types.append(
"ProjectionParametersList")
581 _value_types.append(
"ProjectionParameters")
586 show(cv::Mat const & m, _ostream out=std::cout)
587 show(cv::Mat const & m)
589 return _IMP_em2d.show(*args)
592 """write_matrix(cv::Mat & m, std::string name)"""
593 return _IMP_em2d.write_matrix(*args)
595 """Proxy of C++ IMP::em2d::ImageReaderWriter class"""
596 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
597 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
598 def read(self, *args):
599 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
600 return _IMP_em2d.ImageReaderWriter_read(self, *args)
602 def read_from_floats(self, *args):
603 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
604 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, *args)
606 def read_from_ints(self, *args):
607 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
608 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, *args)
610 def write(self, *args):
611 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
612 return _IMP_em2d.ImageReaderWriter_write(self, *args)
614 def write_to_floats(self, *args):
615 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
616 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, *args)
618 def write_to_ints(self, *args):
619 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
620 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, *args)
622 def get_version_info(self):
623 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
624 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
627 """__str__(ImageReaderWriter self) -> std::string"""
628 return _IMP_em2d.ImageReaderWriter___str__(self)
631 """__repr__(ImageReaderWriter self) -> std::string"""
632 return _IMP_em2d.ImageReaderWriter___repr__(self)
635 return _object_cast_to_ImageReaderWriter(o)
636 get_from = staticmethod(get_from)
638 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
639 ImageReaderWriter_swigregister(ImageReaderWriter)
641 class PolarResamplingParameters(object):
642 """Proxy of C++ IMP::em2d::PolarResamplingParameters class"""
643 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
644 def __init__(self, *args):
646 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
647 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
648 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
650 this = _IMP_em2d.new_PolarResamplingParameters(*args)
651 try: self.this.append(this)
652 except: self.this = this
653 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
654 __del__ =
lambda self :
None;
655 def setup(self, *args):
656 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
657 return _IMP_em2d.PolarResamplingParameters_setup(self, *args)
659 def get_starting_radius(self):
660 """get_starting_radius(PolarResamplingParameters self) -> double"""
661 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
663 def get_ending_radius(self):
664 """get_ending_radius(PolarResamplingParameters self) -> double"""
665 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
667 def get_radius(self, *args):
668 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
669 return _IMP_em2d.PolarResamplingParameters_get_radius(self, *args)
671 def get_number_of_rings(self):
672 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
673 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
675 def set_estimated_number_of_angles(self, *args):
676 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
677 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, *args)
679 def get_number_of_angles(self):
680 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
681 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
683 def get_angle_step(self):
684 """get_angle_step(PolarResamplingParameters self) -> double"""
685 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
687 def get_radius_step(self):
688 """get_radius_step(PolarResamplingParameters self) -> double"""
689 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
691 def create_maps_for_resampling(self):
692 """create_maps_for_resampling(PolarResamplingParameters self)"""
693 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
695 def get_resampling_maps(self, *args):
696 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
697 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, *args)
699 def get_resampling_map(self, *args):
700 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
701 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, *args)
703 def show(self, *args):
704 """show(PolarResamplingParameters self, _ostream out)"""
705 return _IMP_em2d.PolarResamplingParameters_show(self, *args)
707 def get_is_setup(self):
708 """get_is_setup(PolarResamplingParameters self) -> bool"""
709 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
712 """__str__(PolarResamplingParameters self) -> std::string"""
713 return _IMP_em2d.PolarResamplingParameters___str__(self)
716 """__repr__(PolarResamplingParameters self) -> std::string"""
717 return _IMP_em2d.PolarResamplingParameters___repr__(self)
719 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
720 PolarResamplingParameters_swigregister(PolarResamplingParameters)
722 class SegmentationParameters(object):
723 """Proxy of C++ IMP::em2d::SegmentationParameters class"""
724 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
725 image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
726 diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
727 diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
728 fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
729 opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
730 remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
731 binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
732 binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
733 threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
734 def __init__(self, *args):
736 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
737 __init__(IMP::em2d::SegmentationParameters self, double apix, double diff_beta, unsigned int diff_timesteps, double fh_stddevs, cv::Mat const & kr,
738 int background, int foreground) -> SegmentationParameters
740 this = _IMP_em2d.new_SegmentationParameters(*args)
741 try: self.this.append(this)
742 except: self.this = this
743 def show(self, *args):
745 show(SegmentationParameters self, _ostream out=std::cout)
746 show(SegmentationParameters self)
748 return _IMP_em2d.SegmentationParameters_show(self, *args)
751 """__str__(SegmentationParameters self) -> std::string"""
752 return _IMP_em2d.SegmentationParameters___str__(self)
755 """__repr__(SegmentationParameters self) -> std::string"""
756 return _IMP_em2d.SegmentationParameters___repr__(self)
758 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
759 __del__ =
lambda self :
None;
760 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
761 SegmentationParameters_swigregister(SegmentationParameters)
763 class MatchTemplateResult(object):
764 """Proxy of C++ IMP::em2d::MatchTemplateResult class"""
765 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
766 pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
767 cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
768 def __init__(self, *args):
769 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
770 this = _IMP_em2d.new_MatchTemplateResult(*args)
771 try: self.this.append(this)
772 except: self.this = this
773 def show(self, *args):
775 show(MatchTemplateResult self, _ostream out=std::cout)
776 show(MatchTemplateResult self)
778 return _IMP_em2d.MatchTemplateResult_show(self, *args)
781 """__str__(MatchTemplateResult self) -> std::string"""
782 return _IMP_em2d.MatchTemplateResult___str__(self)
785 """__repr__(MatchTemplateResult self) -> std::string"""
786 return _IMP_em2d.MatchTemplateResult___repr__(self)
788 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
789 __del__ =
lambda self :
None;
790 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
791 MatchTemplateResult_swigregister(MatchTemplateResult)
795 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
796 return _IMP_em2d.apply_mask(*args)
800 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
801 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
803 return _IMP_em2d.apply_circular_mask(*args)
806 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
807 return _IMP_em2d.get_mean(*args)
810 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
811 return _IMP_em2d.create_circular_mask(*args)
813 def do_histogram_stretching(*args):
814 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
815 return _IMP_em2d.do_histogram_stretching(*args)
818 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & grayscale, cv::Mat & kernel)"""
819 return _IMP_em2d.do_dilate_and_shrink_warp(*args)
823 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
824 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
826 return _IMP_em2d.do_morphologic_reconstruction(*args)
829 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
830 return _IMP_em2d.do_labeling(*args)
833 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
834 return _IMP_em2d.get_diffusion_filtering_partial_derivative(*args)
837 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
838 return _IMP_em2d.get_domes(*args)
841 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
842 return _IMP_em2d.get_transformed(*args)
846 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
847 apply_threshold(cv::Mat & m, cv::Mat & result)
849 return _IMP_em2d.apply_threshold(*args)
852 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
853 return _IMP_em2d.do_morphologic_contrast_enhancement(*args)
856 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
857 return _IMP_em2d.get_morphologic_gradient(*args)
860 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
861 return _IMP_em2d.get_overlap_percentage(*args)
864 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
865 return _IMP_em2d.get_best_template_matches(*args)
867 """Proxy of C++ IMP::em2d::Image class"""
868 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
869 def __init__(self, *args):
871 __init__(IMP::em2d::Image self) -> Image
872 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
873 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
875 this = _IMP_em2d.new_Image(*args)
876 try: self.this.append(this)
877 except: self.this = this
879 """get_data(Image self) -> cv::Mat &"""
880 return _IMP_em2d.Image_get_data(self)
882 def set_data(self, *args):
883 """set_data(Image self, cv::Mat const & mat)"""
884 return _IMP_em2d.Image_set_data(self, *args)
887 """set_zeros(Image self)"""
888 return _IMP_em2d.Image_set_zeros(self)
890 def set_value(self, *args):
892 set_value(Image self, double val)
893 set_value(Image self, int i, int j, double val)
895 return _IMP_em2d.Image_set_value(self, *args)
897 def __call__(self, *args):
898 """__call__(Image self, int i, int j) -> double"""
899 return _IMP_em2d.Image___call__(self, *args)
901 def get_header(self):
902 """get_header(Image self) -> ImageHeader"""
903 return _IMP_em2d.Image_get_header(self)
905 def set_size(self, *args):
907 set_size(Image self, int rows, int cols)
908 set_size(Image self, Image img)
910 return _IMP_em2d.Image_set_size(self, *args)
912 def update_header(self):
913 """update_header(Image self)"""
914 return _IMP_em2d.Image_update_header(self)
916 def read(self, *args):
917 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
918 return _IMP_em2d.Image_read(self, *args)
920 def write(self, *args):
921 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
922 return _IMP_em2d.Image_write(self, *args)
924 def show(self, *args):
925 """show(Image self, _ostream out)"""
926 return _IMP_em2d.Image_show(self, *args)
928 def get_version_info(self):
929 """get_version_info(Image self) -> VersionInfo"""
930 return _IMP_em2d.Image_get_version_info(self)
932 def set_name(self, *args):
933 """set_name(Image self, IMP::String const & name)"""
934 return _IMP_em2d.Image_set_name(self, *args)
937 """get_name(Image self) -> IMP::String"""
938 return _IMP_em2d.Image_get_name(self)
940 def get_min_and_max_values(self):
941 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
942 return _IMP_em2d.Image_get_min_and_max_values(self)
945 """__str__(Image self) -> std::string"""
946 return _IMP_em2d.Image___str__(self)
949 """__repr__(Image self) -> std::string"""
950 return _IMP_em2d.Image___repr__(self)
953 return _object_cast_to_Image(o)
954 get_from = staticmethod(get_from)
956 Image_swigregister = _IMP_em2d.Image_swigregister
957 Image_swigregister(Image)
961 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
962 return _IMP_em2d.read_images(*args)
965 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
966 return _IMP_em2d.save_images(*args)
970 do_normalize(cv::Mat & m)
971 do_normalize(Image im, bool force=False)
972 do_normalize(Image im)
974 return _IMP_em2d.do_normalize(*args)
978 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
979 get_histogram(Image img, int bins) -> IMP::Floats
981 return _IMP_em2d.get_histogram(*args)
985 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
986 apply_variance_filter(Image input, Image filtered, int kernelsize)
988 return _IMP_em2d.apply_variance_filter(*args)
992 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
993 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
995 return _IMP_em2d.apply_diffusion_filter(*args)
997 def do_fill_holes(*args):
999 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1000 do_fill_holes(Image input, Image result, double n_stddevs)
1002 return _IMP_em2d.do_fill_holes(*args)
1004 def do_combined_fill_holes_and_threshold(*args):
1006 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1007 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1008 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1010 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1012 def do_extend_borders(*args):
1014 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1015 do_extend_borders(Image im1, Image im2, unsigned int pix)
1017 return _IMP_em2d.do_extend_borders(*args)
1019 def do_segmentation(*args):
1021 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1022 do_segmentation(Image input, Image result, SegmentationParameters params)
1024 return _IMP_em2d.do_segmentation(*args)
1026 def do_remove_small_objects(*args):
1028 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1029 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1030 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1031 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1032 do_remove_small_objects(Image input, double percentage, int background=0)
1033 do_remove_small_objects(Image input, double percentage)
1035 return _IMP_em2d.do_remove_small_objects(*args)
1038 """do_subtract_images(Image first, Image second, Image result)"""
1039 return _IMP_em2d.do_subtract_images(*args)
1041 def add_noise(*args):
1043 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1044 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform")
1045 add_noise(cv::Mat & v, double op1, double op2)
1046 add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1047 add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform")
1048 add_noise(Image im1, double op1, double op2)
1050 return _IMP_em2d.add_noise(*args)
1054 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1055 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1057 return _IMP_em2d.do_resample_polar(*args)
1061 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1062 crop(Image img, IMP::IntPair const & center, int size)
1064 return _IMP_em2d.crop(*args)
1067 """apply_mean_outside_mask(Image img, double radius)"""
1068 return _IMP_em2d.apply_mean_outside_mask(*args)
1069 class RegistrationResult(object):
1070 """Proxy of C++ IMP::em2d::RegistrationResult class"""
1071 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1072 def __init__(self, *args):
1074 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1075 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0,
1076 IMP::String name="") -> RegistrationResult
1077 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1078 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1079 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1080 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0., 0.), int projection_index=0,
1081 int image_index=0, IMP::String name="") -> RegistrationResult
1082 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0., 0.), int projection_index=0,
1083 int image_index=0) -> RegistrationResult
1084 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0., 0.), int projection_index=0) -> RegistrationResult
1085 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0., 0.)) -> RegistrationResult
1086 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1088 this = _IMP_em2d.new_RegistrationResult(*args)
1089 try: self.this.append(this)
1090 except: self.this = this
1092 """get_phi(RegistrationResult self) -> double"""
1093 return _IMP_em2d.RegistrationResult_get_phi(self)
1095 def get_theta(self):
1096 """get_theta(RegistrationResult self) -> double"""
1097 return _IMP_em2d.RegistrationResult_get_theta(self)
1100 """get_psi(RegistrationResult self) -> double"""
1101 return _IMP_em2d.RegistrationResult_get_psi(self)
1103 def get_shift(self):
1104 """get_shift(RegistrationResult self) -> Vector2D"""
1105 return _IMP_em2d.RegistrationResult_get_shift(self)
1107 def get_shift_3d(self):
1108 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1109 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1111 def get_projection_index(self):
1112 """get_projection_index(RegistrationResult self) -> int"""
1113 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1115 def set_projection_index(self, *args):
1116 """set_projection_index(RegistrationResult self, int index)"""
1117 return _IMP_em2d.RegistrationResult_set_projection_index(self, *args)
1119 def get_image_index(self):
1120 """get_image_index(RegistrationResult self) -> int"""
1121 return _IMP_em2d.RegistrationResult_get_image_index(self)
1123 def set_image_index(self, *args):
1124 """set_image_index(RegistrationResult self, int index)"""
1125 return _IMP_em2d.RegistrationResult_set_image_index(self, *args)
1128 """get_name(RegistrationResult self) -> IMP::String"""
1129 return _IMP_em2d.RegistrationResult_get_name(self)
1132 """get_ccc(RegistrationResult self) -> double"""
1133 return _IMP_em2d.RegistrationResult_get_ccc(self)
1135 def set_ccc(self, *args):
1136 """set_ccc(RegistrationResult self, double ccc)"""
1137 return _IMP_em2d.RegistrationResult_set_ccc(self, *args)
1139 def get_score(self):
1140 """get_score(RegistrationResult self) -> double"""
1141 return _IMP_em2d.RegistrationResult_get_score(self)
1143 def set_score(self, *args):
1144 """set_score(RegistrationResult self, double Score)"""
1145 return _IMP_em2d.RegistrationResult_set_score(self, *args)
1147 def set_rotation(self, *args):
1149 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1150 set_rotation(RegistrationResult self, Rotation3D R)
1152 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1154 def set_shift(self, *args):
1155 """set_shift(RegistrationResult self, Vector2D shift)"""
1156 return _IMP_em2d.RegistrationResult_set_shift(self, *args)
1158 def set_name(self, *args):
1159 """set_name(RegistrationResult self, IMP::String name)"""
1160 return _IMP_em2d.RegistrationResult_set_name(self, *args)
1162 def add_in_plane_transformation(self, *args):
1163 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1164 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, *args)
1166 def show(self, *args):
1168 show(RegistrationResult self, _ostream out=std::cout)
1169 show(RegistrationResult self)
1171 return _IMP_em2d.RegistrationResult_show(self, *args)
1173 def write(self, *args):
1175 write(RegistrationResult self, _ostream out=std::cout)
1176 write(RegistrationResult self)
1178 return _IMP_em2d.RegistrationResult_write(self, *args)
1180 def write_comment_line(self, *args):
1182 write_comment_line(RegistrationResult self, _ostream out=std::cout)
1183 write_comment_line(RegistrationResult self)
1185 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1187 def read(self, *args):
1188 """read(RegistrationResult self, IMP::String const & s)"""
1189 return _IMP_em2d.RegistrationResult_read(self, *args)
1191 def set_random_registration(self, *args):
1192 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1193 return _IMP_em2d.RegistrationResult_set_random_registration(self, *args)
1195 def get_rotation(self):
1196 """get_rotation(RegistrationResult self) -> Rotation3D"""
1197 return _IMP_em2d.RegistrationResult_get_rotation(self)
1199 def set_in_image(self, *args):
1200 """set_in_image(RegistrationResult self, ImageHeader header)"""
1201 return _IMP_em2d.RegistrationResult_set_in_image(self, *args)
1203 def read_from_image(self, *args):
1204 """read_from_image(RegistrationResult self, ImageHeader header)"""
1205 return _IMP_em2d.RegistrationResult_read_from_image(self, *args)
1207 def get_is_optimized_result(self):
1208 """get_is_optimized_result(RegistrationResult self) -> bool"""
1209 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1211 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1212 __del__ =
lambda self :
None;
1214 """__str__(RegistrationResult self) -> std::string"""
1215 return _IMP_em2d.RegistrationResult___str__(self)
1218 """__repr__(RegistrationResult self) -> std::string"""
1219 return _IMP_em2d.RegistrationResult___repr__(self)
1221 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1222 RegistrationResult_swigregister(RegistrationResult)
1226 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1227 return _IMP_em2d.read_registration_results(*args)
1230 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1231 return _IMP_em2d.write_registration_results(*args)
1235 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1236 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1238 return _IMP_em2d.get_random_registration_results(*args)
1241 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1242 return _IMP_em2d.get_evenly_distributed_registration_results(*args)
1244 def get_random_between_zero_and_one():
1245 """get_random_between_zero_and_one() -> double"""
1246 return _IMP_em2d.get_random_between_zero_and_one()
1247 class SpiderImageReaderWriter(ImageReaderWriter):
1248 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class"""
1249 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1250 filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1251 skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1252 force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1253 skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1254 def __init__(self, *args):
1256 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1257 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1259 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1260 try: self.this.append(this)
1261 except: self.this = this
1263 """__str__(SpiderImageReaderWriter self) -> std::string"""
1264 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1267 """__repr__(SpiderImageReaderWriter self) -> std::string"""
1268 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1271 return _object_cast_to_SpiderImageReaderWriter(o)
1272 get_from = staticmethod(get_from)
1274 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1275 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1277 class JPGImageReaderWriter(ImageReaderWriter):
1278 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class"""
1279 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1281 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1282 this = _IMP_em2d.new_JPGImageReaderWriter()
1283 try: self.this.append(this)
1284 except: self.this = this
1286 """__str__(JPGImageReaderWriter self) -> std::string"""
1287 return _IMP_em2d.JPGImageReaderWriter___str__(self)
1290 """__repr__(JPGImageReaderWriter self) -> std::string"""
1291 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1294 return _object_cast_to_JPGImageReaderWriter(o)
1295 get_from = staticmethod(get_from)
1297 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1298 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1300 class TIFFImageReaderWriter(ImageReaderWriter):
1301 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class"""
1302 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1304 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1305 this = _IMP_em2d.new_TIFFImageReaderWriter()
1306 try: self.this.append(this)
1307 except: self.this = this
1309 """__str__(TIFFImageReaderWriter self) -> std::string"""
1310 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1313 """__repr__(TIFFImageReaderWriter self) -> std::string"""
1314 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1317 return _object_cast_to_TIFFImageReaderWriter(o)
1318 get_from = staticmethod(get_from)
1320 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1321 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1325 """do_matrix_to_image_flip(cv::Mat & m)"""
1326 return _IMP_em2d.do_matrix_to_image_flip(*args)
1329 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1330 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(*args)
1334 get_autocorrelation2d(Image im1, Image im2)
1335 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1337 return _IMP_em2d.get_autocorrelation2d(*args)
1341 get_correlation2d(Image im1, Image im2, Image corr)
1342 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1344 return _IMP_em2d.get_correlation2d(*args)
1347 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1348 return _IMP_em2d.get_correlation2d_no_preprocessing(*args)
1351 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1352 return _IMP_em2d.get_fft_using_optimal_size(*args)
1355 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1356 return _IMP_em2d.get_spectrum(*args)
1359 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1360 return _IMP_em2d.get_rotation_error(*args)
1363 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1364 return _IMP_em2d.get_shift_error(*args)
1366 def get_average_rotation_error(*args):
1367 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1368 return _IMP_em2d.get_average_rotation_error(*args)
1370 def get_average_shift_error(*args):
1371 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1372 return _IMP_em2d.get_average_shift_error(*args)
1376 get_cross_correlation_coefficient(Image im1, Image im2) -> double
1377 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1379 return _IMP_em2d.get_cross_correlation_coefficient(*args)
1382 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1383 return _IMP_em2d.get_global_score(*args)
1385 """Proxy of C++ IMP::em2d::ScoreFunction class"""
1386 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1387 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
1388 def get_score(self, *args):
1389 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1390 return _IMP_em2d.ScoreFunction_get_score(self, *args)
1392 def set_variance_image(self, *args):
1393 """set_variance_image(ScoreFunction self, Image var)"""
1394 return _IMP_em2d.ScoreFunction_set_variance_image(self, *args)
1396 def get_version_info(self):
1397 """get_version_info(ScoreFunction self) -> VersionInfo"""
1398 return _IMP_em2d.ScoreFunction_get_version_info(self)
1401 """__str__(ScoreFunction self) -> std::string"""
1402 return _IMP_em2d.ScoreFunction___str__(self)
1405 """__repr__(ScoreFunction self) -> std::string"""
1406 return _IMP_em2d.ScoreFunction___repr__(self)
1409 return _object_cast_to_ScoreFunction(o)
1410 get_from = staticmethod(get_from)
1412 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1413 ScoreFunction_swigregister(ScoreFunction)
1415 class ChiSquaredScore(ScoreFunction):
1416 """Proxy of C++ IMP::em2d::ChiSquaredScore class"""
1417 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1419 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1420 this = _IMP_em2d.new_ChiSquaredScore()
1421 try: self.this.append(this)
1422 except: self.this = this
1424 """__str__(ChiSquaredScore self) -> std::string"""
1425 return _IMP_em2d.ChiSquaredScore___str__(self)
1428 """__repr__(ChiSquaredScore self) -> std::string"""
1429 return _IMP_em2d.ChiSquaredScore___repr__(self)
1432 return _object_cast_to_ChiSquaredScore(o)
1433 get_from = staticmethod(get_from)
1435 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1436 __del__ =
lambda self :
None;
1437 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1438 ChiSquaredScore_swigregister(ChiSquaredScore)
1440 class EM2DScore(ScoreFunction):
1441 """Proxy of C++ IMP::em2d::EM2DScore class"""
1442 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1444 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1445 this = _IMP_em2d.new_EM2DScore()
1446 try: self.this.append(this)
1447 except: self.this = this
1449 """__str__(EM2DScore self) -> std::string"""
1450 return _IMP_em2d.EM2DScore___str__(self)
1453 """__repr__(EM2DScore self) -> std::string"""
1454 return _IMP_em2d.EM2DScore___repr__(self)
1457 return _object_cast_to_EM2DScore(o)
1458 get_from = staticmethod(get_from)
1460 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1461 __del__ =
lambda self :
None;
1462 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1463 EM2DScore_swigregister(EM2DScore)
1465 class MeanAbsoluteDifference(ScoreFunction):
1466 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class"""
1467 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1469 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1470 this = _IMP_em2d.new_MeanAbsoluteDifference()
1471 try: self.this.append(this)
1472 except: self.this = this
1474 """__str__(MeanAbsoluteDifference self) -> std::string"""
1475 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1478 """__repr__(MeanAbsoluteDifference self) -> std::string"""
1479 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1482 return _object_cast_to_MeanAbsoluteDifference(o)
1483 get_from = staticmethod(get_from)
1485 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1486 __del__ =
lambda self :
None;
1487 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1488 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1492 """read_selection_file(IMP::String fn) -> IMP::Strings"""
1493 return _IMP_em2d.read_selection_file(*args)
1496 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1497 return _IMP_em2d.create_filenames(*args)
1499 """Proxy of C++ IMP::em2d::ProjectionParameters class"""
1500 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1501 def __init__(self, *args):
1503 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1504 __init__(IMP::em2d::ProjectionParameters self, Model m, ::IMP::kernel::ParticleIndex id) -> ProjectionParameters
1505 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1507 this = _IMP_em2d.new_ProjectionParameters(*args)
1508 try: self.this.append(this)
1509 except: self.this = this
1510 def show(self, *args):
1512 show(ProjectionParameters self, _ostream out=std::cout)
1513 show(ProjectionParameters self)
1515 return _IMP_em2d.ProjectionParameters_show(self, *args)
1517 def setup_particle(*args):
1519 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1520 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1522 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1524 setup_particle = staticmethod(setup_particle)
1525 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1526 __del__ =
lambda self :
None;
1528 """get_keys() -> IMP::kernel::FloatKeys const &"""
1529 return _IMP_em2d.ProjectionParameters_get_keys()
1531 get_keys = staticmethod(get_keys)
1532 def set_proper_ranges_for_keys(self, *args):
1533 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1534 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, *args)
1536 def get_is_setup(*args):
1538 get_is_setup(_ParticleAdaptor p) -> bool
1539 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1541 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1543 get_is_setup = staticmethod(get_is_setup)
1544 def get_parameters_optimized(self):
1545 """get_parameters_optimized(ProjectionParameters self) -> bool"""
1546 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
1548 def get_translation(self):
1549 """get_translation(ProjectionParameters self) -> Vector3D"""
1550 return _IMP_em2d.ProjectionParameters_get_translation(self)
1552 def set_translation(self, *args):
1553 """set_translation(ProjectionParameters self, Vector3D v)"""
1554 return _IMP_em2d.ProjectionParameters_set_translation(self, *args)
1556 def get_rotation(self):
1557 """get_rotation(ProjectionParameters self) -> Rotation3D"""
1558 return _IMP_em2d.ProjectionParameters_get_rotation(self)
1560 def set_rotation(self, *args):
1561 """set_rotation(ProjectionParameters self, Rotation3D R)"""
1562 return _IMP_em2d.ProjectionParameters_set_rotation(self, *args)
1564 def set_parameters_optimized(self, *args):
1565 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
1566 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, *args)
1568 def get_quaternion_1(self):
1569 """get_quaternion_1(ProjectionParameters self) -> double"""
1570 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
1572 def set_quaternion_1(self, *args):
1573 """set_quaternion_1(ProjectionParameters self, double t)"""
1574 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, *args)
1576 def get_quaternion_2(self):
1577 """get_quaternion_2(ProjectionParameters self) -> double"""
1578 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
1580 def set_quaternion_2(self, *args):
1581 """set_quaternion_2(ProjectionParameters self, double t)"""
1582 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, *args)
1584 def get_quaternion_3(self):
1585 """get_quaternion_3(ProjectionParameters self) -> double"""
1586 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
1588 def set_quaternion_3(self, *args):
1589 """set_quaternion_3(ProjectionParameters self, double t)"""
1590 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, *args)
1592 def get_quaternion_4(self):
1593 """get_quaternion_4(ProjectionParameters self) -> double"""
1594 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
1596 def set_quaternion_4(self, *args):
1597 """set_quaternion_4(ProjectionParameters self, double t)"""
1598 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, *args)
1600 def get_translation_x(self):
1601 """get_translation_x(ProjectionParameters self) -> double"""
1602 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
1604 def set_translation_x(self, *args):
1605 """set_translation_x(ProjectionParameters self, double t)"""
1606 return _IMP_em2d.ProjectionParameters_set_translation_x(self, *args)
1608 def get_translation_y(self):
1609 """get_translation_y(ProjectionParameters self) -> double"""
1610 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
1612 def set_translation_y(self, *args):
1613 """set_translation_y(ProjectionParameters self, double t)"""
1614 return _IMP_em2d.ProjectionParameters_set_translation_y(self, *args)
1616 def add_attribute(self, *args):
1618 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
1619 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1620 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
1621 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
1622 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1623 add_attribute(ProjectionParameters self, ObjectKey a0, Object a1)
1625 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1627 def get_value(self, *args):
1629 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1630 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1631 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1632 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1633 get_value(ProjectionParameters self, ObjectKey a0) -> Object
1635 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1637 def set_value(self, *args):
1639 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1640 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1641 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1642 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1643 set_value(ProjectionParameters self, ObjectKey a0, Object a1)
1645 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1647 def remove_attribute(self, *args):
1649 remove_attribute(ProjectionParameters self, FloatKey a0)
1650 remove_attribute(ProjectionParameters self, IntKey a0)
1651 remove_attribute(ProjectionParameters self, StringKey a0)
1652 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1653 remove_attribute(ProjectionParameters self, ObjectKey a0)
1655 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1657 def has_attribute(self, *args):
1659 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1660 has_attribute(ProjectionParameters self, IntKey a0) -> bool
1661 has_attribute(ProjectionParameters self, StringKey a0) -> bool
1662 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1663 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1665 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1667 def get_derivative(self, *args):
1668 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1669 return _IMP_em2d.ProjectionParameters_get_derivative(self, *args)
1672 """get_name(ProjectionParameters self) -> std::string"""
1673 return _IMP_em2d.ProjectionParameters_get_name(self)
1675 def clear_caches(self):
1676 """clear_caches(ProjectionParameters self)"""
1677 return _IMP_em2d.ProjectionParameters_clear_caches(self)
1679 def set_name(self, *args):
1680 """set_name(ProjectionParameters self, std::string a0)"""
1681 return _IMP_em2d.ProjectionParameters_set_name(self, *args)
1684 """set_check_level(ProjectionParameters self, IMP::base::CheckLevel a0)"""
1685 return _IMP_em2d.ProjectionParameters_set_check_level(self, *args)
1687 def add_to_derivative(self, *args):
1688 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1689 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, *args)
1691 def set_is_optimized(self, *args):
1692 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
1693 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, *args)
1695 def get_is_optimized(self, *args):
1696 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
1697 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, *args)
1700 """get_check_level(ProjectionParameters self) -> IMP::base::CheckLevel"""
1701 return _IMP_em2d.ProjectionParameters_get_check_level(self)
1703 def __eq__(self, *args):
1705 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
1706 __eq__(ProjectionParameters self, Particle d) -> bool
1708 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
1710 def __ne__(self, *args):
1712 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
1713 __ne__(ProjectionParameters self, Particle d) -> bool
1715 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
1717 def __le__(self, *args):
1719 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
1720 __le__(ProjectionParameters self, Particle d) -> bool
1722 return _IMP_em2d.ProjectionParameters___le__(self, *args)
1724 def __lt__(self, *args):
1726 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
1727 __lt__(ProjectionParameters self, Particle d) -> bool
1729 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
1731 def __ge__(self, *args):
1733 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
1734 __ge__(ProjectionParameters self, Particle d) -> bool
1736 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
1738 def __gt__(self, *args):
1740 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
1741 __gt__(ProjectionParameters self, Particle d) -> bool
1743 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
1746 """__hash__(ProjectionParameters self) -> std::size_t"""
1747 return _IMP_em2d.ProjectionParameters___hash__(self)
1750 """__str__(ProjectionParameters self) -> std::string"""
1751 return _IMP_em2d.ProjectionParameters___str__(self)
1754 """__repr__(ProjectionParameters self) -> std::string"""
1755 return _IMP_em2d.ProjectionParameters___repr__(self)
1757 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
1758 ProjectionParameters_swigregister(ProjectionParameters)
1760 def ProjectionParameters_setup_particle(*args):
1762 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1763 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1765 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1767 def ProjectionParameters_get_keys():
1768 """ProjectionParameters_get_keys() -> IMP::kernel::FloatKeys const &"""
1769 return _IMP_em2d.ProjectionParameters_get_keys()
1771 def ProjectionParameters_get_is_setup(*args):
1773 get_is_setup(_ParticleAdaptor p) -> bool
1774 ProjectionParameters_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1776 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1779 def __lshift__(*args):
1780 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
1781 return _IMP_em2d.__lshift__(*args)
1783 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class"""
1784 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1785 def __init__(self, *args):
1786 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
1787 this = _IMP_em2d.new_ProjectionParametersScoreState(*args)
1788 try: self.this.append(this)
1789 except: self.this = this
1790 def do_before_evaluate(self):
1791 """do_before_evaluate(ProjectionParametersScoreState self)"""
1792 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
1794 def do_after_evaluate(self, *args):
1795 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
1796 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, *args)
1798 def do_get_inputs(self):
1799 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1800 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
1802 def do_get_outputs(self):
1803 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1804 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
1806 def get_version_info(self):
1807 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
1808 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
1811 """__str__(ProjectionParametersScoreState self) -> std::string"""
1812 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
1815 """__repr__(ProjectionParametersScoreState self) -> std::string"""
1816 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
1819 return _object_cast_to_ProjectionParametersScoreState(o)
1820 get_from = staticmethod(get_from)
1822 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
1823 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
1825 class ProjectionMask(object):
1826 """Proxy of C++ IMP::em2d::ProjectionMask class"""
1827 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1828 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
1829 def apply(self, *args):
1830 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
1831 return _IMP_em2d.ProjectionMask_apply(self, *args)
1833 def show(self, *args):
1835 show(ProjectionMask self, _ostream out=std::cout)
1836 show(ProjectionMask self)
1838 return _IMP_em2d.ProjectionMask_show(self, *args)
1840 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
1841 __del__ =
lambda self :
None;
1843 """__str__(ProjectionMask self) -> std::string"""
1844 return _IMP_em2d.ProjectionMask___str__(self)
1847 """__repr__(ProjectionMask self) -> std::string"""
1848 return _IMP_em2d.ProjectionMask___repr__(self)
1850 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
1851 ProjectionMask_swigregister(ProjectionMask)
1855 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
1856 return _IMP_em2d.do_place(*args)
1857 class MasksManager(object):
1858 """Proxy of C++ IMP::em2d::MasksManager class"""
1859 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1860 def __init__(self, *args):
1862 __init__(IMP::em2d::MasksManager self) -> MasksManager
1863 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
1865 this = _IMP_em2d.new_MasksManager(*args)
1866 try: self.this.append(this)
1867 except: self.this = this
1868 def setup_kernel(self, *args):
1869 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
1870 return _IMP_em2d.MasksManager_setup_kernel(self, *args)
1872 def create_masks(self, *args):
1873 """create_masks(MasksManager self, IMP::kernel::ParticlesTemp const & ps)"""
1874 return _IMP_em2d.MasksManager_create_masks(self, *args)
1876 def create_mask(self, *args):
1877 """create_mask(MasksManager self, double radius, double mass)"""
1878 return _IMP_em2d.MasksManager_create_mask(self, *args)
1880 def find_mask(self, *args):
1881 """find_mask(MasksManager self, double radius) -> IMP::em2d::ProjectionMaskPtr"""
1882 return _IMP_em2d.MasksManager_find_mask(self, *args)
1884 def show(self, *args):
1886 show(MasksManager self, _ostream out=std::cout)
1887 show(MasksManager self)
1889 return _IMP_em2d.MasksManager_show(self, *args)
1891 def get_number_of_masks(self):
1892 """get_number_of_masks(MasksManager self) -> unsigned int"""
1893 return _IMP_em2d.MasksManager_get_number_of_masks(self)
1895 __swig_destroy__ = _IMP_em2d.delete_MasksManager
1896 __del__ =
lambda self :
None;
1898 """__str__(MasksManager self) -> std::string"""
1899 return _IMP_em2d.MasksManager___str__(self)
1902 """__repr__(MasksManager self) -> std::string"""
1903 return _IMP_em2d.MasksManager___repr__(self)
1905 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
1906 MasksManager_swigregister(MasksManager)
1908 class ProjectingParameters(object):
1909 """Proxy of C++ IMP::em2d::ProjectingParameters class"""
1910 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1911 pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
1912 resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
1913 def __init__(self, *args):
1915 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
1916 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
1918 this = _IMP_em2d.new_ProjectingParameters(*args)
1919 try: self.this.append(this)
1920 except: self.this = this
1921 def show(self, *args):
1923 show(ProjectingParameters self, _ostream out=std::cout)
1924 show(ProjectingParameters self)
1926 return _IMP_em2d.ProjectingParameters_show(self, *args)
1929 """__str__(ProjectingParameters self) -> std::string"""
1930 return _IMP_em2d.ProjectingParameters___str__(self)
1933 """__repr__(ProjectingParameters self) -> std::string"""
1934 return _IMP_em2d.ProjectingParameters___repr__(self)
1936 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
1937 __del__ =
lambda self :
None;
1938 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
1939 ProjectingParameters_swigregister(ProjectingParameters)
1941 class ProjectingOptions(ProjectingParameters):
1942 """Proxy of C++ IMP::em2d::ProjectingOptions class"""
1943 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1944 save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
1945 normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
1946 clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
1947 def __init__(self, *args):
1949 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
1950 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
1951 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
1953 this = _IMP_em2d.new_ProjectingOptions(*args)
1954 try: self.this.append(this)
1955 except: self.this = this
1956 def show(self, *args):
1958 show(ProjectingOptions self, _ostream out=std::cout)
1959 show(ProjectingOptions self)
1961 return _IMP_em2d.ProjectingOptions_show(self, *args)
1964 """__str__(ProjectingOptions self) -> std::string"""
1965 return _IMP_em2d.ProjectingOptions___str__(self)
1968 """__repr__(ProjectingOptions self) -> std::string"""
1969 return _IMP_em2d.ProjectingOptions___repr__(self)
1971 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
1972 __del__ =
lambda self :
None;
1973 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
1974 ProjectingOptions_swigregister(ProjectingOptions)
1979 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
1980 int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
1981 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
1982 int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
1983 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
1984 int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
1985 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
1986 int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
1988 return _IMP_em2d.get_projections(*args)
1992 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
1993 IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr(),
1994 IMP::String name="")
1995 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
1996 IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr())
1997 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
1999 return _IMP_em2d.get_projection(*args)
2003 do_project_particles(IMP::kernel::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation,
2004 ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2006 return _IMP_em2d.do_project_particles(*args)
2009 """create_evenly_distributed_projections(IMP::kernel::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2010 return _IMP_em2d.create_evenly_distributed_projections(*args)
2014 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2015 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2017 return _IMP_em2d.do_project_vectors(*args)
2020 """get_enclosing_image_size(IMP::kernel::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2021 return _IMP_em2d.get_enclosing_image_size(*args)
2025 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2026 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2028 return _IMP_em2d.get_complete_alignment(*args)
2032 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2033 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2035 return _IMP_em2d.get_rotational_alignment(*args)
2039 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2040 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2042 return _IMP_em2d.get_translational_alignment(*args)
2046 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2047 cv::Mat const & POLAR2, bool apply=False) -> ResultAlign2D
2048 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2049 cv::Mat const & POLAR2) -> ResultAlign2D
2051 return _IMP_em2d.get_complete_alignment_no_preprocessing(*args)
2054 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2055 return _IMP_em2d.get_rotational_alignment_no_preprocessing(*args)
2058 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2059 return _IMP_em2d.get_translational_alignment_no_preprocessing(*args)
2062 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2063 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(*args)
2067 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2068 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2070 return _IMP_em2d.write_vectors_as_pdb(*args)
2071 class Em2DRestraintParameters(ProjectingParameters):
2072 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class"""
2073 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2074 n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2075 coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2076 save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2077 optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2078 simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2079 simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2080 def __init__(self, *args):
2082 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2083 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2084 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2086 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2087 try: self.this.append(this)
2088 except: self.this = this
2089 def show(self, *args):
2091 show(Em2DRestraintParameters self, _ostream out=std::cout)
2092 show(Em2DRestraintParameters self)
2094 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2097 """__str__(Em2DRestraintParameters self) -> std::string"""
2098 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2101 """__repr__(Em2DRestraintParameters self) -> std::string"""
2102 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2104 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2105 __del__ =
lambda self :
None;
2106 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2107 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2108 cvar = _IMP_em2d.cvar
2109 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2110 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2111 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2114 """Proxy of C++ IMP::em2d::ProjectionFinder class"""
2115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2117 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2118 this = _IMP_em2d.new_ProjectionFinder()
2119 try: self.this.append(this)
2120 except: self.this = this
2121 def setup(self, *args):
2122 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2123 return _IMP_em2d.ProjectionFinder_setup(self, *args)
2125 def set_subjects(self, *args):
2126 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2127 return _IMP_em2d.ProjectionFinder_set_subjects(self, *args)
2129 def set_projections(self, *args):
2130 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2131 return _IMP_em2d.ProjectionFinder_set_projections(self, *args)
2133 def set_variance_images(self, *args):
2134 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2135 return _IMP_em2d.ProjectionFinder_set_variance_images(self, *args)
2137 def set_model_particles(self, *args):
2138 """set_model_particles(ProjectionFinder self, IMP::kernel::ParticlesTemp const & ps)"""
2139 return _IMP_em2d.ProjectionFinder_set_model_particles(self, *args)
2141 def set_save_match_images(self, *args):
2142 """set_save_match_images(ProjectionFinder self, bool x)"""
2143 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, *args)
2145 def get_save_match_images(self):
2146 """get_save_match_images(ProjectionFinder self) -> bool"""
2147 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2149 def set_fast_mode(self, *args):
2150 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2151 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, *args)
2153 def get_registration_results(self):
2154 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2155 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2157 def get_coarse_registration(self):
2158 """get_coarse_registration(ProjectionFinder self)"""
2159 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2161 def get_complete_registration(self):
2162 """get_complete_registration(ProjectionFinder self)"""
2163 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2166 """get_global_score(ProjectionFinder self) -> double"""
2167 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2169 def show(self, *args):
2170 """show(ProjectionFinder self, _ostream out)"""
2171 return _IMP_em2d.ProjectionFinder_show(self, *args)
2173 def get_preprocessing_time(self):
2174 """get_preprocessing_time(ProjectionFinder self) -> double"""
2175 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2177 def get_coarse_registration_time(self):
2178 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2179 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2181 def get_fine_registration_time(self):
2182 """get_fine_registration_time(ProjectionFinder self) -> double"""
2183 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2185 def get_number_of_subjects(self):
2186 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2187 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2189 def set_number_of_class_averages_members(self, *args):
2190 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2191 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, *args)
2193 def get_number_of_projections(self):
2194 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2195 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2197 def get_version_info(self):
2198 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2199 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2202 """__str__(ProjectionFinder self) -> std::string"""
2203 return _IMP_em2d.ProjectionFinder___str__(self)
2206 """__repr__(ProjectionFinder self) -> std::string"""
2207 return _IMP_em2d.ProjectionFinder___repr__(self)
2210 return _object_cast_to_ProjectionFinder(o)
2211 get_from = staticmethod(get_from)
2213 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2214 ProjectionFinder_swigregister(ProjectionFinder)
2217 """Proxy of C++ IMP::em2d::Em2DRestraint class"""
2218 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2219 def __init__(self, *args):
2220 """__init__(IMP::em2d::Em2DRestraint self, Model m) -> Em2DRestraint"""
2221 this = _IMP_em2d.new_Em2DRestraint(*args)
2222 try: self.this.append(this)
2223 except: self.this = this
2224 def setup(self, *args):
2225 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2226 return _IMP_em2d.Em2DRestraint_setup(self, *args)
2228 def set_particles(self, *args):
2229 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2230 return _IMP_em2d.Em2DRestraint_set_particles(self, *args)
2232 def set_images(self, *args):
2233 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2234 return _IMP_em2d.Em2DRestraint_set_images(self, *args)
2236 def set_variance_images(self, *args):
2237 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2238 return _IMP_em2d.Em2DRestraint_set_variance_images(self, *args)
2240 def set_fast_mode(self, *args):
2241 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2242 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, *args)
2244 def set_coarse_registration_mode(self, *args):
2245 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2246 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, *args)
2248 def get_registration_results(self):
2249 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2250 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2252 def do_get_inputs(self):
2253 """do_get_inputs(Em2DRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2254 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2256 def get_version_info(self):
2257 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2258 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2261 """__str__(Em2DRestraint self) -> std::string"""
2262 return _IMP_em2d.Em2DRestraint___str__(self)
2265 """__repr__(Em2DRestraint self) -> std::string"""
2266 return _IMP_em2d.Em2DRestraint___repr__(self)
2269 return _object_cast_to_Em2DRestraint(o)
2270 get_from = staticmethod(get_from)
2272 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2273 Em2DRestraint_swigregister(Em2DRestraint)
2275 class ClusterSet(object):
2276 """Proxy of C++ IMP::em2d::ClusterSet class"""
2277 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2278 def __init__(self, *args):
2279 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2280 this = _IMP_em2d.new_ClusterSet(*args)
2281 try: self.this.append(this)
2282 except: self.this = this
2283 def do_join_clusters(self, *args):
2284 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2285 return _IMP_em2d.ClusterSet_do_join_clusters(self, *args)
2287 def get_cluster_elements(self, *args):
2288 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2289 return _IMP_em2d.ClusterSet_get_cluster_elements(self, *args)
2291 def get_clusters_below_cutoff(self, *args):
2292 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2293 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, *args)
2295 def get_cluster_formed_at_step(self, *args):
2296 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2297 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, *args)
2299 def get_distance_at_step(self, *args):
2300 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2301 return _IMP_em2d.ClusterSet_get_distance_at_step(self, *args)
2303 def get_id_for_cluster_at_step(self, *args):
2304 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2305 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, *args)
2307 def get_linkage_matrix(self):
2308 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2309 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2311 def get_linkage_matrix_in_matlab_format(self):
2312 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2313 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2315 def get_number_of_steps(self):
2316 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2317 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2319 def show(self, *args):
2320 """show(ClusterSet self, _ostream out)"""
2321 return _IMP_em2d.ClusterSet_show(self, *args)
2324 """__str__(ClusterSet self) -> std::string"""
2325 return _IMP_em2d.ClusterSet___str__(self)
2328 """__repr__(ClusterSet self) -> std::string"""
2329 return _IMP_em2d.ClusterSet___repr__(self)
2331 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2332 __del__ =
lambda self :
None;
2333 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2334 ClusterSet_swigregister(ClusterSet)
2336 class SingleLinkage(object):
2337 """Proxy of C++ IMP::em2d::SingleLinkage class"""
2338 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2340 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2341 this = _IMP_em2d.new_SingleLinkage()
2342 try: self.this.append(this)
2343 except: self.this = this
2344 def __call__(self, *args):
2345 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2346 return _IMP_em2d.SingleLinkage___call__(self, *args)
2348 def show(self, *args):
2349 """show(SingleLinkage self, _ostream out)"""
2350 return _IMP_em2d.SingleLinkage_show(self, *args)
2353 """__str__(SingleLinkage self) -> std::string"""
2354 return _IMP_em2d.SingleLinkage___str__(self)
2357 """__repr__(SingleLinkage self) -> std::string"""
2358 return _IMP_em2d.SingleLinkage___repr__(self)
2360 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2361 __del__ =
lambda self :
None;
2362 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2363 SingleLinkage_swigregister(SingleLinkage)
2365 class CompleteLinkage(object):
2366 """Proxy of C++ IMP::em2d::CompleteLinkage class"""
2367 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2369 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2370 this = _IMP_em2d.new_CompleteLinkage()
2371 try: self.this.append(this)
2372 except: self.this = this
2373 def __call__(self, *args):
2374 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2375 return _IMP_em2d.CompleteLinkage___call__(self, *args)
2377 def show(self, *args):
2378 """show(CompleteLinkage self, _ostream out)"""
2379 return _IMP_em2d.CompleteLinkage_show(self, *args)
2382 """__str__(CompleteLinkage self) -> std::string"""
2383 return _IMP_em2d.CompleteLinkage___str__(self)
2386 """__repr__(CompleteLinkage self) -> std::string"""
2387 return _IMP_em2d.CompleteLinkage___repr__(self)
2389 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2390 __del__ =
lambda self :
None;
2391 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2392 CompleteLinkage_swigregister(CompleteLinkage)
2394 class AverageDistanceLinkage(object):
2395 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class"""
2396 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2398 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2399 this = _IMP_em2d.new_AverageDistanceLinkage()
2400 try: self.this.append(this)
2401 except: self.this = this
2402 def __call__(self, *args):
2403 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2404 return _IMP_em2d.AverageDistanceLinkage___call__(self, *args)
2406 def show(self, *args):
2407 """show(AverageDistanceLinkage self, _ostream out)"""
2408 return _IMP_em2d.AverageDistanceLinkage_show(self, *args)
2411 """__str__(AverageDistanceLinkage self) -> std::string"""
2412 return _IMP_em2d.AverageDistanceLinkage___str__(self)
2415 """__repr__(AverageDistanceLinkage self) -> std::string"""
2416 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2418 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2419 __del__ =
lambda self :
None;
2420 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2421 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2424 """Proxy of C++ IMP::em2d::CollisionCrossSection class"""
2425 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2426 def __init__(self, *args):
2427 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2428 this = _IMP_em2d.new_CollisionCrossSection(*args)
2429 try: self.this.append(this)
2430 except: self.this = this
2431 def set_model_particles(self, *args):
2432 """set_model_particles(CollisionCrossSection self, IMP::kernel::ParticlesTemp const & ps)"""
2433 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, *args)
2436 """get_ccs(CollisionCrossSection self) -> double"""
2437 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2439 def show(self, *args):
2440 """show(CollisionCrossSection self, _ostream out)"""
2441 return _IMP_em2d.CollisionCrossSection_show(self, *args)
2443 def get_version_info(self):
2444 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2445 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2448 """__str__(CollisionCrossSection self) -> std::string"""
2449 return _IMP_em2d.CollisionCrossSection___str__(self)
2452 """__repr__(CollisionCrossSection self) -> std::string"""
2453 return _IMP_em2d.CollisionCrossSection___repr__(self)
2456 return _object_cast_to_CollisionCrossSection(o)
2457 get_from = staticmethod(get_from)
2459 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2460 CollisionCrossSection_swigregister(CollisionCrossSection)
2463 """Proxy of C++ IMP::em2d::GridStates class"""
2464 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2465 def __init__(self, *args):
2467 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2468 IMP::String const & name="GridStates") -> GridStates
2469 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2471 this = _IMP_em2d.new_GridStates(*args)
2472 try: self.this.append(this)
2473 except: self.this = this
2474 def get_position(self, *args):
2475 """get_position(GridStates self, unsigned int i) -> Vector3D"""
2476 return _IMP_em2d.GridStates_get_position(self, *args)
2478 def get_orientation(self, *args):
2479 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2480 return _IMP_em2d.GridStates_get_orientation(self, *args)
2482 def get_version_info(self):
2483 """get_version_info(GridStates self) -> VersionInfo"""
2484 return _IMP_em2d.GridStates_get_version_info(self)
2486 def do_show(self, *args):
2487 """do_show(GridStates self, _ostream out)"""
2488 return _IMP_em2d.GridStates_do_show(self, *args)
2490 __swig_destroy__ = _IMP_em2d.delete_GridStates
2491 __del__ =
lambda self :
None;
2493 """__str__(GridStates self) -> std::string"""
2494 return _IMP_em2d.GridStates___str__(self)
2497 """__repr__(GridStates self) -> std::string"""
2498 return _IMP_em2d.GridStates___repr__(self)
2501 return _object_cast_to_GridStates(o)
2502 get_from = staticmethod(get_from)
2504 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2505 GridStates_swigregister(GridStates)
2507 class ProjectionStates(GridStates):
2508 """Proxy of C++ IMP::em2d::ProjectionStates class"""
2509 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2510 def __init__(self, *args):
2512 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2513 IMP::em2d::Images const & projections, IMP::String const & name="ProjectionStates") -> ProjectionStates
2514 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2515 IMP::em2d::Images const & projections) -> ProjectionStates
2517 this = _IMP_em2d.new_ProjectionStates(*args)
2518 try: self.this.append(this)
2519 except: self.this = this
2521 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
2522 return _IMP_em2d.ProjectionStates_get_projection(self, *args)
2524 def do_show(self, *args):
2525 """do_show(ProjectionStates self, _ostream out)"""
2526 return _IMP_em2d.ProjectionStates_do_show(self, *args)
2528 __swig_destroy__ = _IMP_em2d.delete_ProjectionStates
2529 __del__ =
lambda self :
None;
2531 """__str__(ProjectionStates self) -> std::string"""
2532 return _IMP_em2d.ProjectionStates___str__(self)
2535 """__repr__(ProjectionStates self) -> std::string"""
2536 return _IMP_em2d.ProjectionStates___repr__(self)
2539 return _object_cast_to_ProjectionStates(o)
2540 get_from = staticmethod(get_from)
2542 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
2543 ProjectionStates_swigregister(ProjectionStates)
2546 """Proxy of C++ IMP::em2d::DistanceFilter class"""
2547 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2548 def __init__(self, *args):
2550 __init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table,
2551 double max_distance) -> DistanceFilter
2553 this = _IMP_em2d.new_DistanceFilter(*args)
2554 try: self.this.append(this)
2555 except: self.this = this
2556 def show(self, *args):
2558 show(DistanceFilter self, _ostream out=std::cout)
2559 show(DistanceFilter self)
2561 return _IMP_em2d.DistanceFilter_show(self, *args)
2563 def get_version_info(self):
2564 """get_version_info(DistanceFilter self) -> VersionInfo"""
2565 return _IMP_em2d.DistanceFilter_get_version_info(self)
2567 def do_show(self, *args):
2568 """do_show(DistanceFilter self, _ostream out)"""
2569 return _IMP_em2d.DistanceFilter_do_show(self, *args)
2571 __swig_destroy__ = _IMP_em2d.delete_DistanceFilter
2572 __del__ =
lambda self :
None;
2574 """__str__(DistanceFilter self) -> std::string"""
2575 return _IMP_em2d.DistanceFilter___str__(self)
2578 """__repr__(DistanceFilter self) -> std::string"""
2579 return _IMP_em2d.DistanceFilter___repr__(self)
2582 return _object_cast_to_DistanceFilter(o)
2583 get_from = staticmethod(get_from)
2585 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
2586 DistanceFilter_swigregister(DistanceFilter)
2589 """Proxy of C++ IMP::em2d::DistanceFilterTable class"""
2590 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2591 def __init__(self, *args):
2592 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
2593 this = _IMP_em2d.new_DistanceFilterTable(*args)
2594 try: self.this.append(this)
2595 except: self.this = this
2596 def show(self, *args):
2598 show(DistanceFilterTable self, _ostream out=std::cout)
2599 show(DistanceFilterTable self)
2601 return _IMP_em2d.DistanceFilterTable_show(self, *args)
2603 def get_version_info(self):
2604 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
2605 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
2607 def do_show(self, *args):
2608 """do_show(DistanceFilterTable self, _ostream out)"""
2609 return _IMP_em2d.DistanceFilterTable_do_show(self, *args)
2611 __swig_destroy__ = _IMP_em2d.delete_DistanceFilterTable
2612 __del__ =
lambda self :
None;
2614 """__str__(DistanceFilterTable self) -> std::string"""
2615 return _IMP_em2d.DistanceFilterTable___str__(self)
2618 """__repr__(DistanceFilterTable self) -> std::string"""
2619 return _IMP_em2d.DistanceFilterTable___repr__(self)
2622 return _object_cast_to_DistanceFilterTable(o)
2623 get_from = staticmethod(get_from)
2625 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
2626 DistanceFilterTable_swigregister(DistanceFilterTable)
2628 class IntsOrder(object):
2629 """Proxy of C++ IMP::em2d::IntsOrder class"""
2630 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2631 __repr__ = _swig_repr
2632 def __call__(self, *args):
2633 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
2634 return _IMP_em2d.IntsOrder___call__(self, *args)
2637 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
2638 this = _IMP_em2d.new_IntsOrder()
2639 try: self.this.append(this)
2640 except: self.this = this
2641 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
2642 __del__ =
lambda self :
None;
2643 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
2644 IntsOrder_swigregister(IntsOrder)
2647 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class"""
2648 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2649 def get_version_info(self):
2650 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
2651 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
2653 def __init__(self, *args):
2654 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
2655 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(*args)
2656 try: self.this.append(this)
2657 except: self.this = this
2658 def set_projecting_parameters(self, *args):
2659 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
2660 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, *args)
2662 def set_orientations(self, *args):
2663 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
2664 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, *args)
2666 def get_number_of_masks(self, *args):
2667 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
2668 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, *args)
2671 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
2672 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
2675 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
2676 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
2679 return _object_cast_to_RigidBodiesImageFitRestraint(o)
2680 get_from = staticmethod(get_from)
2682 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
2683 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
2687 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
2688 return _IMP_em2d.get_unique_index(*args)
2690 """Proxy of C++ IMP::em2d::RelativePositionMover class"""
2691 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2692 def __init__(self, *args):
2693 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
2694 this = _IMP_em2d.new_RelativePositionMover(*args)
2695 try: self.this.append(this)
2696 except: self.this = this
2697 def add_internal_transformations(self, *args):
2698 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
2699 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, *args)
2701 def set_random_move_probability(self, *args):
2702 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
2703 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, *args)
2706 """__str__(RelativePositionMover self) -> std::string"""
2707 return _IMP_em2d.RelativePositionMover___str__(self)
2710 """__repr__(RelativePositionMover self) -> std::string"""
2711 return _IMP_em2d.RelativePositionMover___repr__(self)
2714 return _object_cast_to_RelativePositionMover(o)
2715 get_from = staticmethod(get_from)
2717 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
2718 RelativePositionMover_swigregister(RelativePositionMover)
2721 """Proxy of C++ IMP::em2d::DummyRestraint class"""
2722 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2723 def __init__(self, *args):
2724 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
2725 this = _IMP_em2d.new_DummyRestraint(*args)
2726 try: self.this.append(this)
2727 except: self.this = this
2728 def show(self, *args):
2730 show(DummyRestraint self, _ostream out=std::cout)
2731 show(DummyRestraint self)
2733 return _IMP_em2d.DummyRestraint_show(self, *args)
2735 def do_get_inputs(self):
2736 """do_get_inputs(DummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2737 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
2739 def get_version_info(self):
2740 """get_version_info(DummyRestraint self) -> VersionInfo"""
2741 return _IMP_em2d.DummyRestraint_get_version_info(self)
2744 """__str__(DummyRestraint self) -> std::string"""
2745 return _IMP_em2d.DummyRestraint___str__(self)
2748 """__repr__(DummyRestraint self) -> std::string"""
2749 return _IMP_em2d.DummyRestraint___repr__(self)
2752 return _object_cast_to_DummyRestraint(o)
2753 get_from = staticmethod(get_from)
2755 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
2756 DummyRestraint_swigregister(DummyRestraint)
2759 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class"""
2760 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2761 def __init__(self, *args):
2762 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
2763 this = _IMP_em2d.new_ParticlesDummyRestraint(*args)
2764 try: self.this.append(this)
2765 except: self.this = this
2766 def show(self, *args):
2768 show(ParticlesDummyRestraint self, _ostream out=std::cout)
2769 show(ParticlesDummyRestraint self)
2771 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
2773 def do_get_inputs(self):
2774 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2775 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
2777 def get_version_info(self):
2778 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
2779 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
2782 """__str__(ParticlesDummyRestraint self) -> std::string"""
2783 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
2786 """__repr__(ParticlesDummyRestraint self) -> std::string"""
2787 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
2790 return _object_cast_to_ParticlesDummyRestraint(o)
2791 get_from = staticmethod(get_from)
2793 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
2794 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
2797 """Proxy of C++ IMP::em2d::PCAFitRestraint class"""
2798 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2799 def __init__(self, *args):
2801 __init__(IMP::em2d::PCAFitRestraint self, IMP::kernel::Particles particles, Strings image_files, double pixel_size, double resolution=10.0,
2802 unsigned int projection_number=100, bool reuse_direction=False) -> PCAFitRestraint
2803 __init__(IMP::em2d::PCAFitRestraint self, IMP::kernel::Particles particles, Strings image_files, double pixel_size, double resolution=10.0,
2804 unsigned int projection_number=100) -> PCAFitRestraint
2805 __init__(IMP::em2d::PCAFitRestraint self, IMP::kernel::Particles particles, Strings image_files, double pixel_size, double resolution=10.0) -> PCAFitRestraint
2806 __init__(IMP::em2d::PCAFitRestraint self, IMP::kernel::Particles particles, Strings image_files, double pixel_size) -> PCAFitRestraint
2808 this = _IMP_em2d.new_PCAFitRestraint(*args)
2809 try: self.this.append(this)
2810 except: self.this = this
2811 def get_projection_number(self):
2812 """get_projection_number(PCAFitRestraint self) -> unsigned int"""
2813 return _IMP_em2d.PCAFitRestraint_get_projection_number(self)
2815 def set_projection_number(self, *args):
2816 """set_projection_number(PCAFitRestraint self, unsigned int n)"""
2817 return _IMP_em2d.PCAFitRestraint_set_projection_number(self, *args)
2819 def write_best_projections(self, *args):
2821 write_best_projections(PCAFitRestraint self, std::string file_name, bool evaluate=False)
2822 write_best_projections(PCAFitRestraint self, std::string file_name)
2824 return _IMP_em2d.PCAFitRestraint_write_best_projections(self, *args)
2826 def do_get_inputs(self):
2827 """do_get_inputs(PCAFitRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2828 return _IMP_em2d.PCAFitRestraint_do_get_inputs(self)
2830 def get_version_info(self):
2831 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2832 return _IMP_em2d.PCAFitRestraint_get_version_info(self)
2835 """__str__(PCAFitRestraint self) -> std::string"""
2836 return _IMP_em2d.PCAFitRestraint___str__(self)
2839 """__repr__(PCAFitRestraint self) -> std::string"""
2840 return _IMP_em2d.PCAFitRestraint___repr__(self)
2843 return _object_cast_to_PCAFitRestraint(o)
2844 get_from = staticmethod(get_from)
2846 PCAFitRestraint_swigregister = _IMP_em2d.PCAFitRestraint_swigregister
2847 PCAFitRestraint_swigregister(PCAFitRestraint)
2850 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class"""
2851 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2852 __repr__ = _swig_repr
2853 def __init__(self, *args):
2855 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
2856 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
2857 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
2859 this = _IMP_em2d.new_ResultAlign2D(*args)
2860 try: self.this.append(this)
2861 except: self.this = this
2862 first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
2863 second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
2864 def __len__(self):
return 2
2865 def __repr__(self):
return str((self.first, self.second))
2866 def __getitem__(self, index):
2871 def __setitem__(self, index, val):
2876 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
2877 __del__ =
lambda self :
None;
2878 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
2879 ResultAlign2D_swigregister(ResultAlign2D)
2882 def _do_hierarchical_clustering_single_linkage(*args):
2883 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
2884 return _IMP_em2d._do_hierarchical_clustering_single_linkage(*args)
2886 def _do_hierarchical_clustering_complete_linkage(*args):
2887 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
2888 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(*args)
2890 def _do_hierarchical_clustering_average_distance_linkage(*args):
2891 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
2892 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(*args)
2893 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
2894 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
2895 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
2898 def get_module_version():
2899 """get_module_version() -> std::string const"""
2900 return _IMP_em2d.get_module_version()
2903 """get_example_path(std::string fname) -> std::string"""
2904 return _IMP_em2d.get_example_path(*args)
2907 """get_data_path(std::string fname) -> std::string"""
2908 return _IMP_em2d.get_data_path(*args)
2909 from .
import _version_check
2910 _version_check.check_version(get_module_version())
double get_shift_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
Distance between the two in-plane translations.
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)
void do_project_particles(const kernel::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.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
void apply_threshold(cv::Mat &m, cv::Mat &result, double threshold=0.0)
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.
unsigned int get_enclosing_image_size(const kernel::ParticlesTemp &ps, double pixel_size, unsigned int slack)
Get an automatic size for an image that contains the particles.
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 get_projection(em2d::Image *img, const kernel::ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
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.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
MatchTemplateResults get_best_template_matches(const cv::Mat &m, const cv::Mat &templ, unsigned int n)
Modify the transformation of a rigid body.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
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 installed data.
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)
ScoreStates maintain invariants in the Model.
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)
void apply_circular_mask(const cv::Mat &mat, cv::Mat &result, int radius, double value=0.0)
Base functionality and abstract base classes for representation, scoring and sampling.
Images read_images(const Strings &names, const ImageReaderWriter *rw)
A restraint is a term in an IMP ScoringFunction.
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)
Common base class for heavy weight IMP objects.
Images create_evenly_distributed_projections(const kernel::ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
void get_domes(cv::Mat &m, cv::Mat &result, double h)
Gets the domes of m with height h.
void do_normalize(Image *im, bool force=false)
DensityMap * get_transformed(const DensityMap *input, const algebra::Transformation3D &tr, double threshold)
Return a new density map containing a rotated version of the old one.
void do_matrix_to_image_flip(cv::Mat &m)
ResultAlign2D get_translational_alignment_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2)
void get_correlation2d_no_preprocessing(const cv::Mat &M1, const cv::Mat &M2, cv::Mat &corr)
Correlation without preprocessing.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
std::pair< algebra::Transformation2D, double > ResultAlign2D
em2d::Images get_projections(const kernel::ParticlesTemp &ps, const algebra::SphericalVector3Ds &vs, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
void do_resample_polar(Image *im1, Image *im2, const PolarResamplingParameters &polar_params)
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
em2d::ResultAlign2D get_complete_alignment_no_preprocessing(const cv::Mat &input, const cv::Mat &INPUT, const cv::Mat &POLAR1, cv::Mat &m_to_align, const cv::Mat &POLAR2, bool apply=false)
double get_overlap_percentage(cv::Mat &m1, cv::Mat &m2, const IntPair ¢er)
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
RegistrationResults read_registration_results(const String &filename)
Reads a set of registration results.
void get_diffusion_filtering_partial_derivative(const cv::Mat &m, cv::Mat &der, double dx, double dy, double ang)
Ints get_unique_index(const algebra::Rotation3D &rot)
For a unique 4 ints ( 2 first decimal positions) for a rotation.
double get_global_score(const RegistrationResults &RRs)
void do_place(cv::Mat &mask, cv::Mat &m, const algebra::Vector2D &v)
void do_morphologic_reconstruction(const cv::Mat &mask, cv::Mat &marker, int neighbors_mode=4)
morphologic grayscale reconstruction (L Vincent, 1993)
CheckLevel get_check_level()
Get the current audit mode.
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 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.