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:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_EM2D_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_EM2D_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_EM2D_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_EM2D_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_em2d.delete_IMP_EM2D_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
91 return _IMP_em2d.IMP_EM2D_SwigPyIterator_value(self)
95 incr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
96 incr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
98 return _IMP_em2d.IMP_EM2D_SwigPyIterator_incr(self, n)
102 decr(IMP_EM2D_SwigPyIterator self, size_t n=1) -> IMP_EM2D_SwigPyIterator
103 decr(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator
105 return _IMP_em2d.IMP_EM2D_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_em2d.IMP_EM2D_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
113 return _IMP_em2d.IMP_EM2D_SwigPyIterator_equal(self, *args)
116 """copy(IMP_EM2D_SwigPyIterator self) -> IMP_EM2D_SwigPyIterator"""
117 return _IMP_em2d.IMP_EM2D_SwigPyIterator_copy(self)
120 """next(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
121 return _IMP_em2d.IMP_EM2D_SwigPyIterator_next(self)
124 """__next__(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
125 return _IMP_em2d.IMP_EM2D_SwigPyIterator___next__(self)
128 """previous(IMP_EM2D_SwigPyIterator self) -> PyObject *"""
129 return _IMP_em2d.IMP_EM2D_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
133 return _IMP_em2d.IMP_EM2D_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
137 return _IMP_em2d.IMP_EM2D_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> bool"""
141 return _IMP_em2d.IMP_EM2D_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
145 return _IMP_em2d.IMP_EM2D_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
149 return _IMP_em2d.IMP_EM2D_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator"""
153 return _IMP_em2d.IMP_EM2D_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_EM2D_SwigPyIterator self, ptrdiff_t n) -> IMP_EM2D_SwigPyIterator
158 __sub__(IMP_EM2D_SwigPyIterator self, IMP_EM2D_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_em2d.IMP_EM2D_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_EM2D_SwigPyIterator_swigregister = _IMP_em2d.IMP_EM2D_SwigPyIterator_swigregister
164 IMP_EM2D_SwigPyIterator_swigregister(IMP_EM2D_SwigPyIterator)
171 IMP_DEBUG = _IMP_em2d.IMP_DEBUG
172 IMP_RELEASE = _IMP_em2d.IMP_RELEASE
173 IMP_SILENT = _IMP_em2d.IMP_SILENT
174 IMP_PROGRESS = _IMP_em2d.IMP_PROGRESS
175 IMP_TERSE = _IMP_em2d.IMP_TERSE
176 IMP_VERBOSE = _IMP_em2d.IMP_VERBOSE
177 IMP_MEMORY = _IMP_em2d.IMP_MEMORY
178 IMP_NONE = _IMP_em2d.IMP_NONE
179 IMP_USAGE = _IMP_em2d.IMP_USAGE
180 IMP_INTERNAL = _IMP_em2d.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_em2d.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_em2d.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em2d.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_em2d.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_em2d.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_em2d.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_em2d.DEFAULT_CHECK
216 NONE = _IMP_em2d.NONE
217 USAGE = _IMP_em2d.USAGE
218 USAGE_AND_INTERNAL = _IMP_em2d.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_em2d.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_em2d.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_em2d._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_em2d._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_em2d.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_em2d.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_em2d.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_em2d.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_em2d.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_em2d.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_em2d.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_em2d.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_em2d.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_em2d.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_em2d.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_em2d.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_em2d.IMPDISPLAY_SHOW_WARNINGS
277 IMP_GSL_HAS_IMP_BASE = _IMP_em2d.IMP_GSL_HAS_IMP_BASE
278 IMP_GSL_HAS_IMP_CGAL = _IMP_em2d.IMP_GSL_HAS_IMP_CGAL
279 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_FILESYSTEM
280 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
281 IMP_GSL_HAS_BOOST_RANDOM = _IMP_em2d.IMP_GSL_HAS_BOOST_RANDOM
282 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_GSL_HAS_BOOST_SYSTEM
283 IMP_GSL_HAS_CGAL = _IMP_em2d.IMP_GSL_HAS_CGAL
284 IMPGSL_SHOW_WARNINGS = _IMP_em2d.IMPGSL_SHOW_WARNINGS
286 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
289 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
290 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
291 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em2d.IMP_SCORE_FUNCTOR_HAS_CGAL
292 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em2d.IMPSCOREFUNCTOR_SHOW_WARNINGS
294 IMP_STATISTICS_HAS_IMP_BASE = _IMP_em2d.IMP_STATISTICS_HAS_IMP_BASE
295 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_IMP_CGAL
296 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
297 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
298 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_RANDOM
299 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_STATISTICS_HAS_BOOST_SYSTEM
300 IMP_STATISTICS_HAS_CGAL = _IMP_em2d.IMP_STATISTICS_HAS_CGAL
301 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em2d.IMPSTATISTICS_SHOW_WARNINGS
303 IMP_CORE_HAS_IMP_BASE = _IMP_em2d.IMP_CORE_HAS_IMP_BASE
304 IMP_CORE_HAS_IMP_CGAL = _IMP_em2d.IMP_CORE_HAS_IMP_CGAL
305 IMP_CORE_HAS_IMP_KERNEL = _IMP_em2d.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_FILESYSTEM
307 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
308 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CORE_HAS_BOOST_RANDOM
309 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CORE_HAS_BOOST_SYSTEM
310 IMP_CORE_HAS_CGAL = _IMP_em2d.IMP_CORE_HAS_CGAL
311 IMPCORE_SHOW_WARNINGS = _IMP_em2d.IMPCORE_SHOW_WARNINGS
313 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em2d.IMP_CONTAINER_HAS_IMP_ALGEBRA
314 IMP_CONTAINER_HAS_IMP_BASE = _IMP_em2d.IMP_CONTAINER_HAS_IMP_BASE
315 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_CGAL
316 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em2d.IMP_CONTAINER_HAS_IMP_DISPLAY
317 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em2d.IMP_CONTAINER_HAS_IMP_KERNEL
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
319 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
320 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
321 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_RANDOM
322 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_CONTAINER_HAS_BOOST_SYSTEM
323 IMP_CONTAINER_HAS_CGAL = _IMP_em2d.IMP_CONTAINER_HAS_CGAL
324 IMPCONTAINER_SHOW_WARNINGS = _IMP_em2d.IMPCONTAINER_SHOW_WARNINGS
326 IMP_ATOM_HAS_IMP_BASE = _IMP_em2d.IMP_ATOM_HAS_IMP_BASE
327 IMP_ATOM_HAS_IMP_CGAL = _IMP_em2d.IMP_ATOM_HAS_IMP_CGAL
328 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em2d.IMP_ATOM_HAS_IMP_KERNEL
329 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
330 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
331 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_ATOM_HAS_BOOST_RANDOM
332 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em2d.IMP_ATOM_HAS_BOOST_REGEX
333 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_ATOM_HAS_BOOST_SYSTEM
334 IMP_ATOM_HAS_CGAL = _IMP_em2d.IMP_ATOM_HAS_CGAL
335 IMPATOM_SHOW_WARNINGS = _IMP_em2d.IMPATOM_SHOW_WARNINGS
336 IMP_ATOM_TYPE_INDEX = _IMP_em2d.IMP_ATOM_TYPE_INDEX
337 IMP_RESIDUE_TYPE_INDEX = _IMP_em2d.IMP_RESIDUE_TYPE_INDEX
338 IMP_HIERARCHY_TYPE_INDEX = _IMP_em2d.IMP_HIERARCHY_TYPE_INDEX
340 IMP_EM_HAS_IMP_CGAL = _IMP_em2d.IMP_EM_HAS_IMP_CGAL
341 IMP_EM_HAS_IMP_CONTAINER = _IMP_em2d.IMP_EM_HAS_IMP_CONTAINER
342 IMP_EM_HAS_IMP_DISPLAY = _IMP_em2d.IMP_EM_HAS_IMP_DISPLAY
343 IMP_EM_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM_HAS_IMP_KERNEL
344 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM_HAS_IMP_SCORE_FUNCTOR
345 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_FILESYSTEM
346 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
347 IMP_EM_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM_HAS_BOOST_RANDOM
348 IMP_EM_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM_HAS_BOOST_REGEX
349 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM_HAS_BOOST_SYSTEM
350 IMP_EM_HAS_CGAL = _IMP_em2d.IMP_EM_HAS_CGAL
351 IMPEM_SHOW_WARNINGS = _IMP_em2d.IMPEM_SHOW_WARNINGS
353 IMP_RMF_HAS_IMP_BASE = _IMP_em2d.IMP_RMF_HAS_IMP_BASE
354 IMP_RMF_HAS_IMP_CGAL = _IMP_em2d.IMP_RMF_HAS_IMP_CGAL
355 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
356 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_FILESYSTEM
357 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
358 IMP_RMF_HAS_BOOST_RANDOM = _IMP_em2d.IMP_RMF_HAS_BOOST_RANDOM
359 IMP_RMF_HAS_BOOST_REGEX = _IMP_em2d.IMP_RMF_HAS_BOOST_REGEX
360 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_RMF_HAS_BOOST_SYSTEM
361 IMP_RMF_HAS_CGAL = _IMP_em2d.IMP_RMF_HAS_CGAL
362 IMPRMF_SHOW_WARNINGS = _IMP_em2d.IMPRMF_SHOW_WARNINGS
365 IMP_DOMINO_HAS_IMP_ATOM = _IMP_em2d.IMP_DOMINO_HAS_IMP_ATOM
366 IMP_DOMINO_HAS_IMP_BASE = _IMP_em2d.IMP_DOMINO_HAS_IMP_BASE
367 IMP_DOMINO_HAS_IMP_CGAL = _IMP_em2d.IMP_DOMINO_HAS_IMP_CGAL
368 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_em2d.IMP_DOMINO_HAS_IMP_KERNEL
369 IMP_DOMINO_HAS_IMP_RMF = _IMP_em2d.IMP_DOMINO_HAS_IMP_RMF
370 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
371 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_FILESYSTEM
372 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_em2d.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
373 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_RANDOM
374 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_em2d.IMP_DOMINO_HAS_BOOST_REGEX
375 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_DOMINO_HAS_BOOST_SYSTEM
376 IMP_DOMINO_HAS_CGAL = _IMP_em2d.IMP_DOMINO_HAS_CGAL
377 IMP_DOMINO_HAS_HDF5 = _IMP_em2d.IMP_DOMINO_HAS_HDF5
378 IMP_DOMINO_HAS_RMF = _IMP_em2d.IMP_DOMINO_HAS_RMF
379 IMPDOMINO_SHOW_WARNINGS = _IMP_em2d.IMPDOMINO_SHOW_WARNINGS
382 IMP_EM2D_HAS_IMP_BASE = _IMP_em2d.IMP_EM2D_HAS_IMP_BASE
383 IMP_EM2D_HAS_IMP_CGAL = _IMP_em2d.IMP_EM2D_HAS_IMP_CGAL
384 IMP_EM2D_HAS_IMP_KERNEL = _IMP_em2d.IMP_EM2D_HAS_IMP_KERNEL
385 IMP_EM2D_HAS_IMP_RMF = _IMP_em2d.IMP_EM2D_HAS_IMP_RMF
386 IMP_EM2D_HAS_IMP_SCORE_FUNCTOR = _IMP_em2d.IMP_EM2D_HAS_IMP_SCORE_FUNCTOR
387 IMP_EM2D_HAS_IMP_STATISTICS = _IMP_em2d.IMP_EM2D_HAS_IMP_STATISTICS
388 IMP_EM2D_HAS_BOOST_GRAPH = _IMP_em2d.IMP_EM2D_HAS_BOOST_GRAPH
389 IMP_EM2D_HAS_BOOST_RANDOM = _IMP_em2d.IMP_EM2D_HAS_BOOST_RANDOM
390 IMP_EM2D_HAS_BOOST_REGEX = _IMP_em2d.IMP_EM2D_HAS_BOOST_REGEX
391 IMP_EM2D_HAS_BOOST_SYSTEM = _IMP_em2d.IMP_EM2D_HAS_BOOST_SYSTEM
392 IMP_EM2D_HAS_CGAL = _IMP_em2d.IMP_EM2D_HAS_CGAL
393 IMP_EM2D_HAS_GSL = _IMP_em2d.IMP_EM2D_HAS_GSL
394 IMP_EM2D_HAS_HDF5 = _IMP_em2d.IMP_EM2D_HAS_HDF5
395 IMP_EM2D_HAS_OPENCV22 = _IMP_em2d.IMP_EM2D_HAS_OPENCV22
396 IMP_EM2D_HAS_RMF = _IMP_em2d.IMP_EM2D_HAS_RMF
397 IMP_EM2D_HAS_OPENCV21 = _IMP_em2d.IMP_EM2D_HAS_OPENCV21
398 IMPEM2D_SHOW_WARNINGS = _IMP_em2d.IMPEM2D_SHOW_WARNINGS
399 PolarResamplingParametersList=list
400 _plural_types.append(
"PolarResamplingParametersList")
401 _value_types.append(
"PolarResamplingParameters")
404 _plural_types.append(
"ProjectionMasks")
405 _value_types.append(
"ProjectionMask")
408 _plural_types.append(
"MasksManagers")
409 _value_types.append(
"MasksManager")
411 RegistrationResults=list
412 _plural_types.append(
"RegistrationResults")
413 _value_types.append(
"RegistrationResult")
416 _plural_types.append(
"ClusterSets")
417 _value_types.append(
"ClusterSet")
420 _plural_types.append(
"SingleLinkages")
421 _value_types.append(
"SingleLinkage")
423 CompleteLinkages=list
424 _plural_types.append(
"CompleteLinkages")
425 _value_types.append(
"CompleteLinkage")
427 AverageDistanceLinkages=list
428 _plural_types.append(
"AverageDistanceLinkages")
429 _value_types.append(
"AverageDistanceLinkage")
431 SegmentationParametersList=list
432 _plural_types.append(
"SegmentationParametersList")
433 _value_types.append(
"SegmentationParameters")
435 MatchTemplateResults=list
436 _plural_types.append(
"MatchTemplateResults")
437 _value_types.append(
"MatchTemplateResult")
439 ProjectingParametersList=list
440 _plural_types.append(
"ProjectingParametersList")
441 _value_types.append(
"ProjectingParameters")
443 ProjectingOptionsList=list
444 _plural_types.append(
"ProjectingOptionsList")
445 _value_types.append(
"ProjectingOptions")
447 Em2DRestraintParametersList=list
448 _plural_types.append(
"Em2DRestraintParametersList")
449 _value_types.append(
"Em2DRestraintParameters")
451 _object_types.append(
"ProjectionFinder")
454 def _object_cast_to_ProjectionFinder(*args):
455 """_object_cast_to_ProjectionFinder(Object o) -> ProjectionFinder"""
456 return _IMP_em2d._object_cast_to_ProjectionFinder(*args)
457 _object_types.append(
"ScoreFunction")
460 def _object_cast_to_ScoreFunction(*args):
461 """_object_cast_to_ScoreFunction(Object o) -> ScoreFunction"""
462 return _IMP_em2d._object_cast_to_ScoreFunction(*args)
463 _object_types.append(
"ChiSquaredScore")
466 def _object_cast_to_ChiSquaredScore(*args):
467 """_object_cast_to_ChiSquaredScore(Object o) -> ChiSquaredScore"""
468 return _IMP_em2d._object_cast_to_ChiSquaredScore(*args)
469 _object_types.append(
"EM2DScore")
472 def _object_cast_to_EM2DScore(*args):
473 """_object_cast_to_EM2DScore(Object o) -> EM2DScore"""
474 return _IMP_em2d._object_cast_to_EM2DScore(*args)
475 _object_types.append(
"MeanAbsoluteDifference")
478 def _object_cast_to_MeanAbsoluteDifference(*args):
479 """_object_cast_to_MeanAbsoluteDifference(Object o) -> MeanAbsoluteDifference"""
480 return _IMP_em2d._object_cast_to_MeanAbsoluteDifference(*args)
481 _object_types.append(
"ProjectionParametersScoreState")
484 def _object_cast_to_ProjectionParametersScoreState(*args):
485 """_object_cast_to_ProjectionParametersScoreState(Object o) -> ProjectionParametersScoreState"""
486 return _IMP_em2d._object_cast_to_ProjectionParametersScoreState(*args)
487 _object_types.append(
"Em2DRestraint")
490 def _object_cast_to_Em2DRestraint(*args):
491 """_object_cast_to_Em2DRestraint(Object o) -> Em2DRestraint"""
492 return _IMP_em2d._object_cast_to_Em2DRestraint(*args)
493 _object_types.append(
"Image")
496 def _object_cast_to_Image(*args):
497 """_object_cast_to_Image(Object o) -> Image"""
498 return _IMP_em2d._object_cast_to_Image(*args)
499 _object_types.append(
"ImageReaderWriter")
502 def _object_cast_to_ImageReaderWriter(*args):
503 """_object_cast_to_ImageReaderWriter(Object o) -> ImageReaderWriter"""
504 return _IMP_em2d._object_cast_to_ImageReaderWriter(*args)
505 _object_types.append(
"JPGImageReaderWriter")
508 def _object_cast_to_JPGImageReaderWriter(*args):
509 """_object_cast_to_JPGImageReaderWriter(Object o) -> JPGImageReaderWriter"""
510 return _IMP_em2d._object_cast_to_JPGImageReaderWriter(*args)
511 _object_types.append(
"TIFFImageReaderWriter")
514 def _object_cast_to_TIFFImageReaderWriter(*args):
515 """_object_cast_to_TIFFImageReaderWriter(Object o) -> TIFFImageReaderWriter"""
516 return _IMP_em2d._object_cast_to_TIFFImageReaderWriter(*args)
517 _object_types.append(
"SpiderImageReaderWriter")
520 def _object_cast_to_SpiderImageReaderWriter(*args):
521 """_object_cast_to_SpiderImageReaderWriter(Object o) -> SpiderImageReaderWriter"""
522 return _IMP_em2d._object_cast_to_SpiderImageReaderWriter(*args)
523 _object_types.append(
"CollisionCrossSection")
526 def _object_cast_to_CollisionCrossSection(*args):
527 """_object_cast_to_CollisionCrossSection(Object o) -> CollisionCrossSection"""
528 return _IMP_em2d._object_cast_to_CollisionCrossSection(*args)
529 _object_types.append(
"GridStates")
532 def _object_cast_to_GridStates(*args):
533 """_object_cast_to_GridStates(Object o) -> GridStates"""
534 return _IMP_em2d._object_cast_to_GridStates(*args)
535 _object_types.append(
"ProjectionStates")
538 def _object_cast_to_ProjectionStates(*args):
539 """_object_cast_to_ProjectionStates(Object o) -> ProjectionStates"""
540 return _IMP_em2d._object_cast_to_ProjectionStates(*args)
541 _object_types.append(
"DistanceFilter")
544 def _object_cast_to_DistanceFilter(*args):
545 """_object_cast_to_DistanceFilter(Object o) -> DistanceFilter"""
546 return _IMP_em2d._object_cast_to_DistanceFilter(*args)
547 _object_types.append(
"DistanceFilterTable")
550 def _object_cast_to_DistanceFilterTable(*args):
551 """_object_cast_to_DistanceFilterTable(Object o) -> DistanceFilterTable"""
552 return _IMP_em2d._object_cast_to_DistanceFilterTable(*args)
553 _object_types.append(
"RigidBodiesImageFitRestraint")
556 def _object_cast_to_RigidBodiesImageFitRestraint(*args):
557 """_object_cast_to_RigidBodiesImageFitRestraint(Object o) -> RigidBodiesImageFitRestraint"""
558 return _IMP_em2d._object_cast_to_RigidBodiesImageFitRestraint(*args)
559 _object_types.append(
"DummyRestraint")
562 def _object_cast_to_DummyRestraint(*args):
563 """_object_cast_to_DummyRestraint(Object o) -> DummyRestraint"""
564 return _IMP_em2d._object_cast_to_DummyRestraint(*args)
565 _object_types.append(
"ParticlesDummyRestraint")
568 def _object_cast_to_ParticlesDummyRestraint(*args):
569 """_object_cast_to_ParticlesDummyRestraint(Object o) -> ParticlesDummyRestraint"""
570 return _IMP_em2d._object_cast_to_ParticlesDummyRestraint(*args)
571 _object_types.append(
"RelativePositionMover")
574 def _object_cast_to_RelativePositionMover(*args):
575 """_object_cast_to_RelativePositionMover(Object o) -> RelativePositionMover"""
576 return _IMP_em2d._object_cast_to_RelativePositionMover(*args)
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 __swig_setmethods__ = {}
597 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
598 __setattr__ =
lambda self, name, value: _swig_setattr(self, ImageReaderWriter, name, value)
599 __swig_getmethods__ = {}
600 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
601 __getattr__ =
lambda self, name: _swig_getattr(self, ImageReaderWriter, name)
602 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
603 def read(self, *args):
604 """read(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
605 return _IMP_em2d.ImageReaderWriter_read(self, *args)
607 def read_from_floats(self, *args):
608 """read_from_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
609 return _IMP_em2d.ImageReaderWriter_read_from_floats(self, *args)
611 def read_from_ints(self, *args):
612 """read_from_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat & data)"""
613 return _IMP_em2d.ImageReaderWriter_read_from_ints(self, *args)
615 def write(self, *args):
616 """write(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
617 return _IMP_em2d.ImageReaderWriter_write(self, *args)
619 def write_to_floats(self, *args):
620 """write_to_floats(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
621 return _IMP_em2d.ImageReaderWriter_write_to_floats(self, *args)
623 def write_to_ints(self, *args):
624 """write_to_ints(ImageReaderWriter self, IMP::String const & filename, ImageHeader header, cv::Mat const & data)"""
625 return _IMP_em2d.ImageReaderWriter_write_to_ints(self, *args)
627 def get_version_info(self):
628 """get_version_info(ImageReaderWriter self) -> VersionInfo"""
629 return _IMP_em2d.ImageReaderWriter_get_version_info(self)
631 __swig_destroy__ = _IMP_em2d.delete_ImageReaderWriter
632 __del__ =
lambda self :
None;
634 """__str__(ImageReaderWriter self) -> std::string"""
635 return _IMP_em2d.ImageReaderWriter___str__(self)
638 """__repr__(ImageReaderWriter self) -> std::string"""
639 return _IMP_em2d.ImageReaderWriter___repr__(self)
642 return _object_cast_to_ImageReaderWriter(o)
643 get_from = staticmethod(get_from)
645 ImageReaderWriter_swigregister = _IMP_em2d.ImageReaderWriter_swigregister
646 ImageReaderWriter_swigregister(ImageReaderWriter)
648 class PolarResamplingParameters(_object):
649 """Proxy of C++ IMP::em2d::PolarResamplingParameters class"""
650 __swig_setmethods__ = {}
651 __setattr__ =
lambda self, name, value: _swig_setattr(self, PolarResamplingParameters, name, value)
652 __swig_getmethods__ = {}
653 __getattr__ =
lambda self, name: _swig_getattr(self, PolarResamplingParameters, name)
654 def __init__(self, *args):
656 __init__(IMP::em2d::PolarResamplingParameters self) -> PolarResamplingParameters
657 __init__(IMP::em2d::PolarResamplingParameters self, unsigned int rows, unsigned int cols) -> PolarResamplingParameters
658 __init__(IMP::em2d::PolarResamplingParameters self, cv::Mat const & m) -> PolarResamplingParameters
660 this = _IMP_em2d.new_PolarResamplingParameters(*args)
661 try: self.this.append(this)
662 except: self.this = this
663 __swig_destroy__ = _IMP_em2d.delete_PolarResamplingParameters
664 __del__ =
lambda self :
None;
665 def setup(self, *args):
666 """setup(PolarResamplingParameters self, unsigned int rows, unsigned int cols)"""
667 return _IMP_em2d.PolarResamplingParameters_setup(self, *args)
669 def get_starting_radius(self):
670 """get_starting_radius(PolarResamplingParameters self) -> double"""
671 return _IMP_em2d.PolarResamplingParameters_get_starting_radius(self)
673 def get_ending_radius(self):
674 """get_ending_radius(PolarResamplingParameters self) -> double"""
675 return _IMP_em2d.PolarResamplingParameters_get_ending_radius(self)
677 def get_radius(self, *args):
678 """get_radius(PolarResamplingParameters self, unsigned int n_ring) -> double"""
679 return _IMP_em2d.PolarResamplingParameters_get_radius(self, *args)
681 def get_number_of_rings(self):
682 """get_number_of_rings(PolarResamplingParameters self) -> unsigned int"""
683 return _IMP_em2d.PolarResamplingParameters_get_number_of_rings(self)
685 def set_estimated_number_of_angles(self, *args):
686 """set_estimated_number_of_angles(PolarResamplingParameters self, unsigned int aprox_value)"""
687 return _IMP_em2d.PolarResamplingParameters_set_estimated_number_of_angles(self, *args)
689 def get_number_of_angles(self):
690 """get_number_of_angles(PolarResamplingParameters self) -> unsigned int"""
691 return _IMP_em2d.PolarResamplingParameters_get_number_of_angles(self)
693 def get_angle_step(self):
694 """get_angle_step(PolarResamplingParameters self) -> double"""
695 return _IMP_em2d.PolarResamplingParameters_get_angle_step(self)
697 def get_radius_step(self):
698 """get_radius_step(PolarResamplingParameters self) -> double"""
699 return _IMP_em2d.PolarResamplingParameters_get_radius_step(self)
701 def create_maps_for_resampling(self):
702 """create_maps_for_resampling(PolarResamplingParameters self)"""
703 return _IMP_em2d.PolarResamplingParameters_create_maps_for_resampling(self)
705 def get_resampling_maps(self, *args):
706 """get_resampling_maps(PolarResamplingParameters self, cv::Mat & m1, cv::Mat & m2)"""
707 return _IMP_em2d.PolarResamplingParameters_get_resampling_maps(self, *args)
709 def get_resampling_map(self, *args):
710 """get_resampling_map(PolarResamplingParameters self, cv::Mat & m1)"""
711 return _IMP_em2d.PolarResamplingParameters_get_resampling_map(self, *args)
713 def show(self, *args):
714 """show(PolarResamplingParameters self, _ostream out)"""
715 return _IMP_em2d.PolarResamplingParameters_show(self, *args)
717 def get_is_setup(self):
718 """get_is_setup(PolarResamplingParameters self) -> bool"""
719 return _IMP_em2d.PolarResamplingParameters_get_is_setup(self)
722 """__str__(PolarResamplingParameters self) -> std::string"""
723 return _IMP_em2d.PolarResamplingParameters___str__(self)
726 """__repr__(PolarResamplingParameters self) -> std::string"""
727 return _IMP_em2d.PolarResamplingParameters___repr__(self)
729 PolarResamplingParameters_swigregister = _IMP_em2d.PolarResamplingParameters_swigregister
730 PolarResamplingParameters_swigregister(PolarResamplingParameters)
732 class SegmentationParameters(_object):
733 """Proxy of C++ IMP::em2d::SegmentationParameters class"""
734 __swig_setmethods__ = {}
735 __setattr__ =
lambda self, name, value: _swig_setattr(self, SegmentationParameters, name, value)
736 __swig_getmethods__ = {}
737 __getattr__ =
lambda self, name: _swig_getattr(self, SegmentationParameters, name)
738 __swig_setmethods__[
"image_pixel_size"] = _IMP_em2d.SegmentationParameters_image_pixel_size_set
739 __swig_getmethods__[
"image_pixel_size"] = _IMP_em2d.SegmentationParameters_image_pixel_size_get
740 if _newclass:image_pixel_size = _swig_property(_IMP_em2d.SegmentationParameters_image_pixel_size_get, _IMP_em2d.SegmentationParameters_image_pixel_size_set)
741 __swig_setmethods__[
"diffusion_beta"] = _IMP_em2d.SegmentationParameters_diffusion_beta_set
742 __swig_getmethods__[
"diffusion_beta"] = _IMP_em2d.SegmentationParameters_diffusion_beta_get
743 if _newclass:diffusion_beta = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_beta_get, _IMP_em2d.SegmentationParameters_diffusion_beta_set)
744 __swig_setmethods__[
"diffusion_timesteps"] = _IMP_em2d.SegmentationParameters_diffusion_timesteps_set
745 __swig_getmethods__[
"diffusion_timesteps"] = _IMP_em2d.SegmentationParameters_diffusion_timesteps_get
746 if _newclass:diffusion_timesteps = _swig_property(_IMP_em2d.SegmentationParameters_diffusion_timesteps_get, _IMP_em2d.SegmentationParameters_diffusion_timesteps_set)
747 __swig_setmethods__[
"fill_holes_stddevs"] = _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set
748 __swig_getmethods__[
"fill_holes_stddevs"] = _IMP_em2d.SegmentationParameters_fill_holes_stddevs_get
749 if _newclass:fill_holes_stddevs = _swig_property(_IMP_em2d.SegmentationParameters_fill_holes_stddevs_get, _IMP_em2d.SegmentationParameters_fill_holes_stddevs_set)
750 __swig_setmethods__[
"opening_kernel"] = _IMP_em2d.SegmentationParameters_opening_kernel_set
751 __swig_getmethods__[
"opening_kernel"] = _IMP_em2d.SegmentationParameters_opening_kernel_get
752 if _newclass:opening_kernel = _swig_property(_IMP_em2d.SegmentationParameters_opening_kernel_get, _IMP_em2d.SegmentationParameters_opening_kernel_set)
753 __swig_setmethods__[
"remove_sizing_percentage"] = _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set
754 __swig_getmethods__[
"remove_sizing_percentage"] = _IMP_em2d.SegmentationParameters_remove_sizing_percentage_get
755 if _newclass:remove_sizing_percentage = _swig_property(_IMP_em2d.SegmentationParameters_remove_sizing_percentage_get, _IMP_em2d.SegmentationParameters_remove_sizing_percentage_set)
756 __swig_setmethods__[
"binary_background"] = _IMP_em2d.SegmentationParameters_binary_background_set
757 __swig_getmethods__[
"binary_background"] = _IMP_em2d.SegmentationParameters_binary_background_get
758 if _newclass:binary_background = _swig_property(_IMP_em2d.SegmentationParameters_binary_background_get, _IMP_em2d.SegmentationParameters_binary_background_set)
759 __swig_setmethods__[
"binary_foreground"] = _IMP_em2d.SegmentationParameters_binary_foreground_set
760 __swig_getmethods__[
"binary_foreground"] = _IMP_em2d.SegmentationParameters_binary_foreground_get
761 if _newclass:binary_foreground = _swig_property(_IMP_em2d.SegmentationParameters_binary_foreground_get, _IMP_em2d.SegmentationParameters_binary_foreground_set)
762 __swig_setmethods__[
"threshold"] = _IMP_em2d.SegmentationParameters_threshold_set
763 __swig_getmethods__[
"threshold"] = _IMP_em2d.SegmentationParameters_threshold_get
764 if _newclass:threshold = _swig_property(_IMP_em2d.SegmentationParameters_threshold_get, _IMP_em2d.SegmentationParameters_threshold_set)
765 def __init__(self, *args):
767 __init__(IMP::em2d::SegmentationParameters self) -> SegmentationParameters
768 __init__(IMP::em2d::SegmentationParameters self, double apix, double diff_beta, unsigned int diff_timesteps, double fh_stddevs, cv::Mat const & kr,
769 int background, int foreground) -> SegmentationParameters
771 this = _IMP_em2d.new_SegmentationParameters(*args)
772 try: self.this.append(this)
773 except: self.this = this
774 def show(self, *args):
776 show(SegmentationParameters self, _ostream out=std::cout)
777 show(SegmentationParameters self)
779 return _IMP_em2d.SegmentationParameters_show(self, *args)
782 """__str__(SegmentationParameters self) -> std::string"""
783 return _IMP_em2d.SegmentationParameters___str__(self)
786 """__repr__(SegmentationParameters self) -> std::string"""
787 return _IMP_em2d.SegmentationParameters___repr__(self)
789 __swig_destroy__ = _IMP_em2d.delete_SegmentationParameters
790 __del__ =
lambda self :
None;
791 SegmentationParameters_swigregister = _IMP_em2d.SegmentationParameters_swigregister
792 SegmentationParameters_swigregister(SegmentationParameters)
794 class MatchTemplateResult(_object):
795 """Proxy of C++ IMP::em2d::MatchTemplateResult class"""
796 __swig_setmethods__ = {}
797 __setattr__ =
lambda self, name, value: _swig_setattr(self, MatchTemplateResult, name, value)
798 __swig_getmethods__ = {}
799 __getattr__ =
lambda self, name: _swig_getattr(self, MatchTemplateResult, name)
800 __swig_setmethods__[
"pair"] = _IMP_em2d.MatchTemplateResult_pair_set
801 __swig_getmethods__[
"pair"] = _IMP_em2d.MatchTemplateResult_pair_get
802 if _newclass:pair = _swig_property(_IMP_em2d.MatchTemplateResult_pair_get, _IMP_em2d.MatchTemplateResult_pair_set)
803 __swig_setmethods__[
"cross_correlation"] = _IMP_em2d.MatchTemplateResult_cross_correlation_set
804 __swig_getmethods__[
"cross_correlation"] = _IMP_em2d.MatchTemplateResult_cross_correlation_get
805 if _newclass:cross_correlation = _swig_property(_IMP_em2d.MatchTemplateResult_cross_correlation_get, _IMP_em2d.MatchTemplateResult_cross_correlation_set)
806 def __init__(self, *args):
807 """__init__(IMP::em2d::MatchTemplateResult self, IMP::IntPair p, double cc) -> MatchTemplateResult"""
808 this = _IMP_em2d.new_MatchTemplateResult(*args)
809 try: self.this.append(this)
810 except: self.this = this
811 def show(self, *args):
813 show(MatchTemplateResult self, _ostream out=std::cout)
814 show(MatchTemplateResult self)
816 return _IMP_em2d.MatchTemplateResult_show(self, *args)
819 """__str__(MatchTemplateResult self) -> std::string"""
820 return _IMP_em2d.MatchTemplateResult___str__(self)
823 """__repr__(MatchTemplateResult self) -> std::string"""
824 return _IMP_em2d.MatchTemplateResult___repr__(self)
826 __swig_destroy__ = _IMP_em2d.delete_MatchTemplateResult
827 __del__ =
lambda self :
None;
828 MatchTemplateResult_swigregister = _IMP_em2d.MatchTemplateResult_swigregister
829 MatchTemplateResult_swigregister(MatchTemplateResult)
833 """apply_mask(cv::Mat const & m, cv::Mat & result, IMP::em2d::cvIntMat const & mask, double val)"""
834 return _IMP_em2d.apply_mask(*args)
838 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius, double value=0.0)
839 apply_circular_mask(cv::Mat const & mat, cv::Mat & result, int radius)
841 return _IMP_em2d.apply_circular_mask(*args)
844 """get_mean(cv::Mat const & mat, IMP::em2d::cvIntMat const & mask) -> double"""
845 return _IMP_em2d.get_mean(*args)
848 """create_circular_mask(int rows, int cols, int radius) -> IMP::em2d::cvIntMat"""
849 return _IMP_em2d.create_circular_mask(*args)
851 def do_histogram_stretching(*args):
852 """do_histogram_stretching(cv::Mat & m, int boxes, int offset)"""
853 return _IMP_em2d.do_histogram_stretching(*args)
856 """do_dilate_and_shrink_warp(cv::Mat & m, cv::Mat const & greyscale, cv::Mat & kernel)"""
857 return _IMP_em2d.do_dilate_and_shrink_warp(*args)
861 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker, int neighbors_mode=4)
862 do_morphologic_reconstruction(cv::Mat const & mask, cv::Mat & marker)
864 return _IMP_em2d.do_morphologic_reconstruction(*args)
867 """do_labeling(IMP::em2d::cvIntMat const & m, IMP::em2d::cvIntMat & mat_to_label) -> int"""
868 return _IMP_em2d.do_labeling(*args)
871 """get_diffusion_filtering_partial_derivative(cv::Mat const & m, cv::Mat & der, double dx, double dy, double ang)"""
872 return _IMP_em2d.get_diffusion_filtering_partial_derivative(*args)
875 """get_domes(cv::Mat & m, cv::Mat & result, double h)"""
876 return _IMP_em2d.get_domes(*args)
878 def my_meanStdDev(*args):
879 """my_meanStdDev(cv::Mat const & m, cv::Scalar & mean, cv::Scalar & stddev)"""
880 return _IMP_em2d.my_meanStdDev(*args)
883 """get_transformed(cv::Mat const & input, cv::Mat & transformed, Transformation2D T)"""
884 return _IMP_em2d.get_transformed(*args)
888 apply_threshold(cv::Mat & m, cv::Mat & result, double threshold=0.0)
889 apply_threshold(cv::Mat & m, cv::Mat & result)
891 return _IMP_em2d.apply_threshold(*args)
894 """do_morphologic_contrast_enhancement(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel, unsigned int iterations)"""
895 return _IMP_em2d.do_morphologic_contrast_enhancement(*args)
898 """get_morphologic_gradient(cv::Mat const & m, cv::Mat & result, cv::Mat const & kernel)"""
899 return _IMP_em2d.get_morphologic_gradient(*args)
902 """get_overlap_percentage(cv::Mat & m1, cv::Mat & m2, IMP::IntPair const & center) -> double"""
903 return _IMP_em2d.get_overlap_percentage(*args)
906 """get_best_template_matches(cv::Mat const & m, cv::Mat const & templ, unsigned int n) -> IMP::em2d::MatchTemplateResults"""
907 return _IMP_em2d.get_best_template_matches(*args)
909 """Proxy of C++ IMP::em2d::Image class"""
910 __swig_setmethods__ = {}
911 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
912 __setattr__ =
lambda self, name, value: _swig_setattr(self, Image, name, value)
913 __swig_getmethods__ = {}
914 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
915 __getattr__ =
lambda self, name: _swig_getattr(self, Image, name)
916 def __init__(self, *args):
918 __init__(IMP::em2d::Image self) -> Image
919 __init__(IMP::em2d::Image self, int rows, int cols) -> Image
920 __init__(IMP::em2d::Image self, IMP::String filename, ImageReaderWriter reader) -> Image
922 this = _IMP_em2d.new_Image(*args)
923 try: self.this.append(this)
924 except: self.this = this
926 """get_data(Image self) -> cv::Mat &"""
927 return _IMP_em2d.Image_get_data(self)
929 def set_data(self, *args):
930 """set_data(Image self, cv::Mat const & mat)"""
931 return _IMP_em2d.Image_set_data(self, *args)
934 """set_zeros(Image self)"""
935 return _IMP_em2d.Image_set_zeros(self)
937 def set_value(self, *args):
939 set_value(Image self, double val)
940 set_value(Image self, int i, int j, double val)
942 return _IMP_em2d.Image_set_value(self, *args)
944 def __call__(self, *args):
945 """__call__(Image self, int i, int j) -> double"""
946 return _IMP_em2d.Image___call__(self, *args)
948 def get_header(self):
949 """get_header(Image self) -> ImageHeader"""
950 return _IMP_em2d.Image_get_header(self)
952 def set_size(self, *args):
954 set_size(Image self, int rows, int cols)
955 set_size(Image self, Image img)
957 return _IMP_em2d.Image_set_size(self, *args)
959 def update_header(self):
960 """update_header(Image self)"""
961 return _IMP_em2d.Image_update_header(self)
963 def read(self, *args):
964 """read(Image self, IMP::String filename, ImageReaderWriter reader)"""
965 return _IMP_em2d.Image_read(self, *args)
967 def write(self, *args):
968 """write(Image self, IMP::String const & filename, ImageReaderWriter writer)"""
969 return _IMP_em2d.Image_write(self, *args)
971 def show(self, *args):
972 """show(Image self, _ostream out)"""
973 return _IMP_em2d.Image_show(self, *args)
975 def get_version_info(self):
976 """get_version_info(Image self) -> VersionInfo"""
977 return _IMP_em2d.Image_get_version_info(self)
979 __swig_destroy__ = _IMP_em2d.delete_Image
980 __del__ =
lambda self :
None;
981 def destroyed_msg(self):
982 """destroyed_msg(Image self)"""
983 return _IMP_em2d.Image_destroyed_msg(self)
985 def set_name(self, *args):
986 """set_name(Image self, IMP::String const & name)"""
987 return _IMP_em2d.Image_set_name(self, *args)
990 """get_name(Image self) -> IMP::String"""
991 return _IMP_em2d.Image_get_name(self)
993 def get_min_and_max_values(self):
994 """get_min_and_max_values(Image self) -> IMP::FloatRange"""
995 return _IMP_em2d.Image_get_min_and_max_values(self)
998 """__str__(Image self) -> std::string"""
999 return _IMP_em2d.Image___str__(self)
1002 """__repr__(Image self) -> std::string"""
1003 return _IMP_em2d.Image___repr__(self)
1006 return _object_cast_to_Image(o)
1007 get_from = staticmethod(get_from)
1009 Image_swigregister = _IMP_em2d.Image_swigregister
1010 Image_swigregister(Image)
1014 """read_images(IMP::Strings const & names, ImageReaderWriter rw) -> IMP::em2d::Images"""
1015 return _IMP_em2d.read_images(*args)
1018 """save_images(IMP::em2d::Images images, IMP::Strings const & names, ImageReaderWriter rw)"""
1019 return _IMP_em2d.save_images(*args)
1023 do_normalize(cv::Mat & m)
1024 do_normalize(Image im, bool force=False)
1025 do_normalize(Image im)
1027 return _IMP_em2d.do_normalize(*args)
1031 get_histogram(cv::Mat const & m, int bins) -> IMP::Floats
1032 get_histogram(Image img, int bins) -> IMP::Floats
1034 return _IMP_em2d.get_histogram(*args)
1038 apply_variance_filter(cv::Mat const & input, cv::Mat & filtered, int kernelsize)
1039 apply_variance_filter(Image input, Image filtered, int kernelsize)
1041 return _IMP_em2d.apply_variance_filter(*args)
1045 apply_diffusion_filter(cv::Mat const & m, cv::Mat & result, double beta, double pixelsize, unsigned int time_steps)
1046 apply_diffusion_filter(Image input, Image filtered, double beta, double pixelsize, int time_steps)
1048 return _IMP_em2d.apply_diffusion_filter(*args)
1050 def do_fill_holes(*args):
1052 do_fill_holes(cv::Mat const & m, cv::Mat & result, double h)
1053 do_fill_holes(Image input, Image result, double n_stddevs)
1055 return _IMP_em2d.do_fill_holes(*args)
1057 def do_combined_fill_holes_and_threshold(*args):
1059 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs, double threshold=0.0)
1060 do_combined_fill_holes_and_threshold(cv::Mat & m, cv::Mat & result, double n_stddevs)
1061 do_combined_fill_holes_and_threshold(Image input, Image result, double n_stddevs)
1063 return _IMP_em2d.do_combined_fill_holes_and_threshold(*args)
1065 def do_extend_borders(*args):
1067 do_extend_borders(cv::Mat & orig, cv::Mat & dst, unsigned int pix)
1068 do_extend_borders(Image im1, Image im2, unsigned int pix)
1070 return _IMP_em2d.do_extend_borders(*args)
1072 def do_segmentation(*args):
1074 do_segmentation(cv::Mat const & m, cv::Mat & result, SegmentationParameters params)
1075 do_segmentation(Image input, Image result, SegmentationParameters params)
1077 return _IMP_em2d.do_segmentation(*args)
1079 def do_remove_small_objects(*args):
1081 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0, int foreground=1)
1082 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage, int background=0)
1083 do_remove_small_objects(IMP::em2d::cvIntMat & m, double percentage)
1084 do_remove_small_objects(Image input, double percentage, int background=0, int foreground=1)
1085 do_remove_small_objects(Image input, double percentage, int background=0)
1086 do_remove_small_objects(Image input, double percentage)
1088 return _IMP_em2d.do_remove_small_objects(*args)
1091 """do_subtract_images(Image first, Image second, Image result)"""
1092 return _IMP_em2d.do_subtract_images(*args)
1094 def add_noise(*args):
1096 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1097 add_noise(cv::Mat & v, double op1, double op2, IMP::String const & mode="uniform")
1098 add_noise(cv::Mat & v, double op1, double op2)
1099 add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform", double df=3)
1100 add_noise(Image im1, double op1, double op2, IMP::String const & mode="uniform")
1101 add_noise(Image im1, double op1, double op2)
1103 return _IMP_em2d.add_noise(*args)
1107 do_resample_polar(cv::Mat const & input, cv::Mat & resampled, PolarResamplingParameters polar_params)
1108 do_resample_polar(Image im1, Image im2, PolarResamplingParameters polar_params)
1110 return _IMP_em2d.do_resample_polar(*args)
1114 crop(cv::Mat const & m, IMP::IntPair const & center, int size) -> cv::Mat
1115 crop(Image img, IMP::IntPair const & center, int size)
1117 return _IMP_em2d.crop(*args)
1120 """apply_mean_outside_mask(Image img, double radius)"""
1121 return _IMP_em2d.apply_mean_outside_mask(*args)
1122 class RegistrationResult(_object):
1123 """Proxy of C++ IMP::em2d::RegistrationResult class"""
1124 __swig_setmethods__ = {}
1125 __setattr__ =
lambda self, name, value: _swig_setattr(self, RegistrationResult, name, value)
1126 __swig_getmethods__ = {}
1127 __getattr__ =
lambda self, name: _swig_getattr(self, RegistrationResult, name)
1128 def __init__(self, *args):
1130 __init__(IMP::em2d::RegistrationResult self) -> RegistrationResult
1131 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0,
1132 IMP::String name="") -> RegistrationResult
1133 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0, int image_index=0) -> RegistrationResult
1134 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift, int projection_index=0) -> RegistrationResult
1135 __init__(IMP::em2d::RegistrationResult self, double phi, double theta, double psi, Vector2D shift) -> RegistrationResult
1136 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0,
1137 int image_index=0, IMP::String name="") -> RegistrationResult
1138 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0,
1139 int image_index=0) -> RegistrationResult
1140 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.), int projection_index=0) -> RegistrationResult
1141 __init__(IMP::em2d::RegistrationResult self, Rotation3D R, Vector2D shift=IMP::algebra::Vector2D(0.,0.)) -> RegistrationResult
1142 __init__(IMP::em2d::RegistrationResult self, Rotation3D R) -> RegistrationResult
1144 this = _IMP_em2d.new_RegistrationResult(*args)
1145 try: self.this.append(this)
1146 except: self.this = this
1148 """get_phi(RegistrationResult self) -> double"""
1149 return _IMP_em2d.RegistrationResult_get_phi(self)
1151 def get_theta(self):
1152 """get_theta(RegistrationResult self) -> double"""
1153 return _IMP_em2d.RegistrationResult_get_theta(self)
1156 """get_psi(RegistrationResult self) -> double"""
1157 return _IMP_em2d.RegistrationResult_get_psi(self)
1159 def get_shift(self):
1160 """get_shift(RegistrationResult self) -> Vector2D"""
1161 return _IMP_em2d.RegistrationResult_get_shift(self)
1163 def get_shift_3d(self):
1164 """get_shift_3d(RegistrationResult self) -> Vector3D"""
1165 return _IMP_em2d.RegistrationResult_get_shift_3d(self)
1167 def get_projection_index(self):
1168 """get_projection_index(RegistrationResult self) -> int"""
1169 return _IMP_em2d.RegistrationResult_get_projection_index(self)
1171 def set_projection_index(self, *args):
1172 """set_projection_index(RegistrationResult self, int index)"""
1173 return _IMP_em2d.RegistrationResult_set_projection_index(self, *args)
1175 def get_image_index(self):
1176 """get_image_index(RegistrationResult self) -> int"""
1177 return _IMP_em2d.RegistrationResult_get_image_index(self)
1179 def set_image_index(self, *args):
1180 """set_image_index(RegistrationResult self, int index)"""
1181 return _IMP_em2d.RegistrationResult_set_image_index(self, *args)
1184 """get_name(RegistrationResult self) -> IMP::String"""
1185 return _IMP_em2d.RegistrationResult_get_name(self)
1188 """get_ccc(RegistrationResult self) -> double"""
1189 return _IMP_em2d.RegistrationResult_get_ccc(self)
1191 def set_ccc(self, *args):
1192 """set_ccc(RegistrationResult self, double ccc)"""
1193 return _IMP_em2d.RegistrationResult_set_ccc(self, *args)
1195 def get_score(self):
1196 """get_score(RegistrationResult self) -> double"""
1197 return _IMP_em2d.RegistrationResult_get_score(self)
1199 def set_score(self, *args):
1200 """set_score(RegistrationResult self, double Score)"""
1201 return _IMP_em2d.RegistrationResult_set_score(self, *args)
1203 def set_rotation(self, *args):
1205 set_rotation(RegistrationResult self, double phi, double theta, double psi)
1206 set_rotation(RegistrationResult self, Rotation3D R)
1208 return _IMP_em2d.RegistrationResult_set_rotation(self, *args)
1210 def set_shift(self, *args):
1211 """set_shift(RegistrationResult self, Vector2D shift)"""
1212 return _IMP_em2d.RegistrationResult_set_shift(self, *args)
1214 def set_name(self, *args):
1215 """set_name(RegistrationResult self, IMP::String name)"""
1216 return _IMP_em2d.RegistrationResult_set_name(self, *args)
1218 def add_in_plane_transformation(self, *args):
1219 """add_in_plane_transformation(RegistrationResult self, Transformation2D t)"""
1220 return _IMP_em2d.RegistrationResult_add_in_plane_transformation(self, *args)
1222 def show(self, *args):
1224 show(RegistrationResult self, _ostream out=std::cout)
1225 show(RegistrationResult self)
1227 return _IMP_em2d.RegistrationResult_show(self, *args)
1229 def write(self, *args):
1231 write(RegistrationResult self, _ostream out=std::cout)
1232 write(RegistrationResult self)
1234 return _IMP_em2d.RegistrationResult_write(self, *args)
1236 def write_comment_line(self, *args):
1238 write_comment_line(RegistrationResult self, _ostream out=std::cout)
1239 write_comment_line(RegistrationResult self)
1241 return _IMP_em2d.RegistrationResult_write_comment_line(self, *args)
1243 def read(self, *args):
1244 """read(RegistrationResult self, IMP::String const & s)"""
1245 return _IMP_em2d.RegistrationResult_read(self, *args)
1247 def set_random_registration(self, *args):
1248 """set_random_registration(RegistrationResult self, unsigned int index, double maximum_shift)"""
1249 return _IMP_em2d.RegistrationResult_set_random_registration(self, *args)
1251 def get_rotation(self):
1252 """get_rotation(RegistrationResult self) -> Rotation3D"""
1253 return _IMP_em2d.RegistrationResult_get_rotation(self)
1255 def set_in_image(self, *args):
1256 """set_in_image(RegistrationResult self, ImageHeader header)"""
1257 return _IMP_em2d.RegistrationResult_set_in_image(self, *args)
1259 def read_from_image(self, *args):
1260 """read_from_image(RegistrationResult self, ImageHeader header)"""
1261 return _IMP_em2d.RegistrationResult_read_from_image(self, *args)
1263 def get_is_optimized_result(self):
1264 """get_is_optimized_result(RegistrationResult self) -> bool"""
1265 return _IMP_em2d.RegistrationResult_get_is_optimized_result(self)
1267 __swig_destroy__ = _IMP_em2d.delete_RegistrationResult
1268 __del__ =
lambda self :
None;
1270 """__str__(RegistrationResult self) -> std::string"""
1271 return _IMP_em2d.RegistrationResult___str__(self)
1274 """__repr__(RegistrationResult self) -> std::string"""
1275 return _IMP_em2d.RegistrationResult___repr__(self)
1277 RegistrationResult_swigregister = _IMP_em2d.RegistrationResult_swigregister
1278 RegistrationResult_swigregister(RegistrationResult)
1282 """read_registration_results(IMP::String const & filename) -> IMP::em2d::RegistrationResults"""
1283 return _IMP_em2d.read_registration_results(*args)
1286 """write_registration_results(IMP::String filename, IMP::em2d::RegistrationResults const & results)"""
1287 return _IMP_em2d.write_registration_results(*args)
1291 get_random_registration_results(unsigned int n, double maximum_shift=5.0) -> IMP::em2d::RegistrationResults
1292 get_random_registration_results(unsigned int n) -> IMP::em2d::RegistrationResults
1294 return _IMP_em2d.get_random_registration_results(*args)
1297 """get_evenly_distributed_registration_results(unsigned int n_projections) -> IMP::em2d::RegistrationResults"""
1298 return _IMP_em2d.get_evenly_distributed_registration_results(*args)
1300 def get_random_between_zero_and_one():
1301 """get_random_between_zero_and_one() -> double"""
1302 return _IMP_em2d.get_random_between_zero_and_one()
1303 class SpiderImageReaderWriter(ImageReaderWriter):
1304 """Proxy of C++ IMP::em2d::SpiderImageReaderWriter class"""
1305 __swig_setmethods__ = {}
1306 for _s
in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1307 __setattr__ =
lambda self, name, value: _swig_setattr(self, SpiderImageReaderWriter, name, value)
1308 __swig_getmethods__ = {}
1309 for _s
in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1310 __getattr__ =
lambda self, name: _swig_getattr(self, SpiderImageReaderWriter, name)
1311 __swig_setmethods__[
"filename_"] = _IMP_em2d.SpiderImageReaderWriter_filename__set
1312 __swig_getmethods__[
"filename_"] = _IMP_em2d.SpiderImageReaderWriter_filename__get
1313 if _newclass:filename_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_filename__get, _IMP_em2d.SpiderImageReaderWriter_filename__set)
1314 __swig_setmethods__[
"skip_type_check_"] = _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set
1315 __swig_getmethods__[
"skip_type_check_"] = _IMP_em2d.SpiderImageReaderWriter_skip_type_check__get
1316 if _newclass:skip_type_check_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_type_check__get, _IMP_em2d.SpiderImageReaderWriter_skip_type_check__set)
1317 __swig_setmethods__[
"force_reversed_"] = _IMP_em2d.SpiderImageReaderWriter_force_reversed__set
1318 __swig_getmethods__[
"force_reversed_"] = _IMP_em2d.SpiderImageReaderWriter_force_reversed__get
1319 if _newclass:force_reversed_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_force_reversed__get, _IMP_em2d.SpiderImageReaderWriter_force_reversed__set)
1320 __swig_setmethods__[
"skip_extra_checkings_"] = _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set
1321 __swig_getmethods__[
"skip_extra_checkings_"] = _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get
1322 if _newclass:skip_extra_checkings_ = _swig_property(_IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__get, _IMP_em2d.SpiderImageReaderWriter_skip_extra_checkings__set)
1323 def __init__(self, *args):
1325 __init__(IMP::em2d::SpiderImageReaderWriter self) -> SpiderImageReaderWriter
1326 __init__(IMP::em2d::SpiderImageReaderWriter self, IMP::String const & filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderImageReaderWriter
1328 this = _IMP_em2d.new_SpiderImageReaderWriter(*args)
1329 try: self.this.append(this)
1330 except: self.this = this
1331 __swig_destroy__ = _IMP_em2d.delete_SpiderImageReaderWriter
1332 __del__ =
lambda self :
None;
1334 """__str__(SpiderImageReaderWriter self) -> std::string"""
1335 return _IMP_em2d.SpiderImageReaderWriter___str__(self)
1338 """__repr__(SpiderImageReaderWriter self) -> std::string"""
1339 return _IMP_em2d.SpiderImageReaderWriter___repr__(self)
1342 return _object_cast_to_SpiderImageReaderWriter(o)
1343 get_from = staticmethod(get_from)
1345 SpiderImageReaderWriter_swigregister = _IMP_em2d.SpiderImageReaderWriter_swigregister
1346 SpiderImageReaderWriter_swigregister(SpiderImageReaderWriter)
1348 class JPGImageReaderWriter(ImageReaderWriter):
1349 """Proxy of C++ IMP::em2d::JPGImageReaderWriter class"""
1350 __swig_setmethods__ = {}
1351 for _s
in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1352 __setattr__ =
lambda self, name, value: _swig_setattr(self, JPGImageReaderWriter, name, value)
1353 __swig_getmethods__ = {}
1354 for _s
in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1355 __getattr__ =
lambda self, name: _swig_getattr(self, JPGImageReaderWriter, name)
1357 """__init__(IMP::em2d::JPGImageReaderWriter self) -> JPGImageReaderWriter"""
1358 this = _IMP_em2d.new_JPGImageReaderWriter()
1359 try: self.this.append(this)
1360 except: self.this = this
1361 __swig_destroy__ = _IMP_em2d.delete_JPGImageReaderWriter
1362 __del__ =
lambda self :
None;
1364 """__str__(JPGImageReaderWriter self) -> std::string"""
1365 return _IMP_em2d.JPGImageReaderWriter___str__(self)
1368 """__repr__(JPGImageReaderWriter self) -> std::string"""
1369 return _IMP_em2d.JPGImageReaderWriter___repr__(self)
1372 return _object_cast_to_JPGImageReaderWriter(o)
1373 get_from = staticmethod(get_from)
1375 JPGImageReaderWriter_swigregister = _IMP_em2d.JPGImageReaderWriter_swigregister
1376 JPGImageReaderWriter_swigregister(JPGImageReaderWriter)
1378 class TIFFImageReaderWriter(ImageReaderWriter):
1379 """Proxy of C++ IMP::em2d::TIFFImageReaderWriter class"""
1380 __swig_setmethods__ = {}
1381 for _s
in [ImageReaderWriter]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1382 __setattr__ =
lambda self, name, value: _swig_setattr(self, TIFFImageReaderWriter, name, value)
1383 __swig_getmethods__ = {}
1384 for _s
in [ImageReaderWriter]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1385 __getattr__ =
lambda self, name: _swig_getattr(self, TIFFImageReaderWriter, name)
1387 """__init__(IMP::em2d::TIFFImageReaderWriter self) -> TIFFImageReaderWriter"""
1388 this = _IMP_em2d.new_TIFFImageReaderWriter()
1389 try: self.this.append(this)
1390 except: self.this = this
1391 __swig_destroy__ = _IMP_em2d.delete_TIFFImageReaderWriter
1392 __del__ =
lambda self :
None;
1394 """__str__(TIFFImageReaderWriter self) -> std::string"""
1395 return _IMP_em2d.TIFFImageReaderWriter___str__(self)
1398 """__repr__(TIFFImageReaderWriter self) -> std::string"""
1399 return _IMP_em2d.TIFFImageReaderWriter___repr__(self)
1402 return _object_cast_to_TIFFImageReaderWriter(o)
1403 get_from = staticmethod(get_from)
1405 TIFFImageReaderWriter_swigregister = _IMP_em2d.TIFFImageReaderWriter_swigregister
1406 TIFFImageReaderWriter_swigregister(TIFFImageReaderWriter)
1410 """do_matrix_to_image_flip(cv::Mat & m)"""
1411 return _IMP_em2d.do_matrix_to_image_flip(*args)
1414 """get_autocorrelation2d_no_preprocessing(cv::Mat const & M, cv::Mat & corr)"""
1415 return _IMP_em2d.get_autocorrelation2d_no_preprocessing(*args)
1419 get_autocorrelation2d(Image im1, Image im2)
1420 get_autocorrelation2d(cv::Mat const & m, cv::Mat & corr)
1422 return _IMP_em2d.get_autocorrelation2d(*args)
1426 get_correlation2d(Image im1, Image im2, Image corr)
1427 get_correlation2d(cv::Mat const & A, cv::Mat const & B, cv::Mat & corr)
1429 return _IMP_em2d.get_correlation2d(*args)
1432 """get_correlation2d_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2, cv::Mat & corr)"""
1433 return _IMP_em2d.get_correlation2d_no_preprocessing(*args)
1436 """get_fft_using_optimal_size(cv::Mat const & m, cv::Mat & M)"""
1437 return _IMP_em2d.get_fft_using_optimal_size(*args)
1440 """get_spectrum(cv::Mat const & m, cv::Mat & real, cv::Mat & imag)"""
1441 return _IMP_em2d.get_spectrum(*args)
1444 """get_rotation_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1445 return _IMP_em2d.get_rotation_error(*args)
1448 """get_shift_error(RegistrationResult rr1, RegistrationResult rr2) -> double"""
1449 return _IMP_em2d.get_shift_error(*args)
1451 def get_average_rotation_error(*args):
1452 """get_average_rotation_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1453 return _IMP_em2d.get_average_rotation_error(*args)
1455 def get_average_shift_error(*args):
1456 """get_average_shift_error(IMP::em2d::RegistrationResults const & correct_RRs, IMP::em2d::RegistrationResults const & computed_RRs) -> double"""
1457 return _IMP_em2d.get_average_shift_error(*args)
1461 get_cross_correlation_coefficient(Image im1, Image im2) -> double
1462 get_cross_correlation_coefficient(cv::Mat const & m1, cv::Mat const & m2) -> double
1464 return _IMP_em2d.get_cross_correlation_coefficient(*args)
1467 """get_global_score(IMP::em2d::RegistrationResults const & RRs) -> double"""
1468 return _IMP_em2d.get_global_score(*args)
1470 """Proxy of C++ IMP::em2d::ScoreFunction class"""
1471 __swig_setmethods__ = {}
1472 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1473 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoreFunction, name, value)
1474 __swig_getmethods__ = {}
1475 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1476 __getattr__ =
lambda self, name: _swig_getattr(self, ScoreFunction, name)
1477 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
1478 def get_score(self, *args):
1479 """get_score(ScoreFunction self, Image image, Image projection) -> double"""
1480 return _IMP_em2d.ScoreFunction_get_score(self, *args)
1482 def set_variance_image(self, *args):
1483 """set_variance_image(ScoreFunction self, Image var)"""
1484 return _IMP_em2d.ScoreFunction_set_variance_image(self, *args)
1486 def get_version_info(self):
1487 """get_version_info(ScoreFunction self) -> VersionInfo"""
1488 return _IMP_em2d.ScoreFunction_get_version_info(self)
1490 __swig_destroy__ = _IMP_em2d.delete_ScoreFunction
1491 __del__ =
lambda self :
None;
1493 """__str__(ScoreFunction self) -> std::string"""
1494 return _IMP_em2d.ScoreFunction___str__(self)
1497 """__repr__(ScoreFunction self) -> std::string"""
1498 return _IMP_em2d.ScoreFunction___repr__(self)
1501 return _object_cast_to_ScoreFunction(o)
1502 get_from = staticmethod(get_from)
1504 ScoreFunction_swigregister = _IMP_em2d.ScoreFunction_swigregister
1505 ScoreFunction_swigregister(ScoreFunction)
1507 class ChiSquaredScore(ScoreFunction):
1508 """Proxy of C++ IMP::em2d::ChiSquaredScore class"""
1509 __swig_setmethods__ = {}
1510 for _s
in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1511 __setattr__ =
lambda self, name, value: _swig_setattr(self, ChiSquaredScore, name, value)
1512 __swig_getmethods__ = {}
1513 for _s
in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1514 __getattr__ =
lambda self, name: _swig_getattr(self, ChiSquaredScore, name)
1516 """__init__(IMP::em2d::ChiSquaredScore self) -> ChiSquaredScore"""
1517 this = _IMP_em2d.new_ChiSquaredScore()
1518 try: self.this.append(this)
1519 except: self.this = this
1521 """__str__(ChiSquaredScore self) -> std::string"""
1522 return _IMP_em2d.ChiSquaredScore___str__(self)
1525 """__repr__(ChiSquaredScore self) -> std::string"""
1526 return _IMP_em2d.ChiSquaredScore___repr__(self)
1529 return _object_cast_to_ChiSquaredScore(o)
1530 get_from = staticmethod(get_from)
1532 __swig_destroy__ = _IMP_em2d.delete_ChiSquaredScore
1533 __del__ =
lambda self :
None;
1534 ChiSquaredScore_swigregister = _IMP_em2d.ChiSquaredScore_swigregister
1535 ChiSquaredScore_swigregister(ChiSquaredScore)
1537 class EM2DScore(ScoreFunction):
1538 """Proxy of C++ IMP::em2d::EM2DScore class"""
1539 __swig_setmethods__ = {}
1540 for _s
in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1541 __setattr__ =
lambda self, name, value: _swig_setattr(self, EM2DScore, name, value)
1542 __swig_getmethods__ = {}
1543 for _s
in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1544 __getattr__ =
lambda self, name: _swig_getattr(self, EM2DScore, name)
1546 """__init__(IMP::em2d::EM2DScore self) -> EM2DScore"""
1547 this = _IMP_em2d.new_EM2DScore()
1548 try: self.this.append(this)
1549 except: self.this = this
1551 """__str__(EM2DScore self) -> std::string"""
1552 return _IMP_em2d.EM2DScore___str__(self)
1555 """__repr__(EM2DScore self) -> std::string"""
1556 return _IMP_em2d.EM2DScore___repr__(self)
1559 return _object_cast_to_EM2DScore(o)
1560 get_from = staticmethod(get_from)
1562 __swig_destroy__ = _IMP_em2d.delete_EM2DScore
1563 __del__ =
lambda self :
None;
1564 EM2DScore_swigregister = _IMP_em2d.EM2DScore_swigregister
1565 EM2DScore_swigregister(EM2DScore)
1567 class MeanAbsoluteDifference(ScoreFunction):
1568 """Proxy of C++ IMP::em2d::MeanAbsoluteDifference class"""
1569 __swig_setmethods__ = {}
1570 for _s
in [ScoreFunction]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1571 __setattr__ =
lambda self, name, value: _swig_setattr(self, MeanAbsoluteDifference, name, value)
1572 __swig_getmethods__ = {}
1573 for _s
in [ScoreFunction]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1574 __getattr__ =
lambda self, name: _swig_getattr(self, MeanAbsoluteDifference, name)
1576 """__init__(IMP::em2d::MeanAbsoluteDifference self) -> MeanAbsoluteDifference"""
1577 this = _IMP_em2d.new_MeanAbsoluteDifference()
1578 try: self.this.append(this)
1579 except: self.this = this
1581 """__str__(MeanAbsoluteDifference self) -> std::string"""
1582 return _IMP_em2d.MeanAbsoluteDifference___str__(self)
1585 """__repr__(MeanAbsoluteDifference self) -> std::string"""
1586 return _IMP_em2d.MeanAbsoluteDifference___repr__(self)
1589 return _object_cast_to_MeanAbsoluteDifference(o)
1590 get_from = staticmethod(get_from)
1592 __swig_destroy__ = _IMP_em2d.delete_MeanAbsoluteDifference
1593 __del__ =
lambda self :
None;
1594 MeanAbsoluteDifference_swigregister = _IMP_em2d.MeanAbsoluteDifference_swigregister
1595 MeanAbsoluteDifference_swigregister(MeanAbsoluteDifference)
1599 """read_selection_file(IMP::String fn) -> IMP::Strings"""
1600 return _IMP_em2d.read_selection_file(*args)
1603 """create_filenames(unsigned long number, IMP::String basic_name, IMP::String extension) -> IMP::Strings"""
1604 return _IMP_em2d.create_filenames(*args)
1606 """Proxy of C++ IMP::em2d::ProjectionParameters class"""
1607 __swig_setmethods__ = {}
1608 for _s
in [
IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1609 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectionParameters, name, value)
1610 __swig_getmethods__ = {}
1611 for _s
in [
IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1612 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectionParameters, name)
1613 def __init__(self, *args):
1615 __init__(IMP::em2d::ProjectionParameters self) -> ProjectionParameters
1616 __init__(IMP::em2d::ProjectionParameters self, Model m, ::IMP::kernel::ParticleIndex id) -> ProjectionParameters
1617 __init__(IMP::em2d::ProjectionParameters self, _ParticleAdaptor d) -> ProjectionParameters
1619 this = _IMP_em2d.new_ProjectionParameters(*args)
1620 try: self.this.append(this)
1621 except: self.this = this
1622 def decorate_particle(*args):
1623 """decorate_particle(Particle p) -> ProjectionParameters"""
1624 return _IMP_em2d.ProjectionParameters_decorate_particle(*args)
1626 if _newclass:decorate_particle = staticmethod(decorate_particle)
1627 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
1628 def particle_is_instance(*args):
1630 particle_is_instance(Particle p) -> bool
1631 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
1633 return _IMP_em2d.ProjectionParameters_particle_is_instance(*args)
1635 if _newclass:particle_is_instance = staticmethod(particle_is_instance)
1636 __swig_getmethods__[
"particle_is_instance"] =
lambda x: particle_is_instance
1637 def show(self, *args):
1639 show(ProjectionParameters self, _ostream out=std::cout)
1640 show(ProjectionParameters self)
1642 return _IMP_em2d.ProjectionParameters_show(self, *args)
1644 def setup_particle(*args):
1646 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1647 setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1649 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1651 if _newclass:setup_particle = staticmethod(setup_particle)
1652 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
1653 __swig_destroy__ = _IMP_em2d.delete_ProjectionParameters
1654 __del__ =
lambda self :
None;
1656 """get_keys() -> IMP::kernel::FloatKeys const &"""
1657 return _IMP_em2d.ProjectionParameters_get_keys()
1659 if _newclass:get_keys = staticmethod(get_keys)
1660 __swig_getmethods__[
"get_keys"] =
lambda x: get_keys
1661 def set_proper_ranges_for_keys(self, *args):
1662 """set_proper_ranges_for_keys(ProjectionParameters self, Model m, Vector3D min_translation_values, Vector3D max_translation_values)"""
1663 return _IMP_em2d.ProjectionParameters_set_proper_ranges_for_keys(self, *args)
1665 def get_is_setup(*args):
1667 get_is_setup(_ParticleAdaptor p) -> bool
1668 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1670 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1672 if _newclass:get_is_setup = staticmethod(get_is_setup)
1673 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
1674 def get_parameters_optimized(self):
1675 """get_parameters_optimized(ProjectionParameters self) -> bool"""
1676 return _IMP_em2d.ProjectionParameters_get_parameters_optimized(self)
1678 def get_translation(self):
1679 """get_translation(ProjectionParameters self) -> Vector3D"""
1680 return _IMP_em2d.ProjectionParameters_get_translation(self)
1682 def set_translation(self, *args):
1683 """set_translation(ProjectionParameters self, Vector3D v)"""
1684 return _IMP_em2d.ProjectionParameters_set_translation(self, *args)
1686 def get_rotation(self):
1687 """get_rotation(ProjectionParameters self) -> Rotation3D"""
1688 return _IMP_em2d.ProjectionParameters_get_rotation(self)
1690 def set_rotation(self, *args):
1691 """set_rotation(ProjectionParameters self, Rotation3D R)"""
1692 return _IMP_em2d.ProjectionParameters_set_rotation(self, *args)
1694 def set_parameters_optimized(self, *args):
1695 """set_parameters_optimized(ProjectionParameters self, bool tf)"""
1696 return _IMP_em2d.ProjectionParameters_set_parameters_optimized(self, *args)
1698 def get_quaternion_1(self):
1699 """get_quaternion_1(ProjectionParameters self) -> double"""
1700 return _IMP_em2d.ProjectionParameters_get_quaternion_1(self)
1702 def set_quaternion_1(self, *args):
1703 """set_quaternion_1(ProjectionParameters self, double t)"""
1704 return _IMP_em2d.ProjectionParameters_set_quaternion_1(self, *args)
1706 def get_quaternion_2(self):
1707 """get_quaternion_2(ProjectionParameters self) -> double"""
1708 return _IMP_em2d.ProjectionParameters_get_quaternion_2(self)
1710 def set_quaternion_2(self, *args):
1711 """set_quaternion_2(ProjectionParameters self, double t)"""
1712 return _IMP_em2d.ProjectionParameters_set_quaternion_2(self, *args)
1714 def get_quaternion_3(self):
1715 """get_quaternion_3(ProjectionParameters self) -> double"""
1716 return _IMP_em2d.ProjectionParameters_get_quaternion_3(self)
1718 def set_quaternion_3(self, *args):
1719 """set_quaternion_3(ProjectionParameters self, double t)"""
1720 return _IMP_em2d.ProjectionParameters_set_quaternion_3(self, *args)
1722 def get_quaternion_4(self):
1723 """get_quaternion_4(ProjectionParameters self) -> double"""
1724 return _IMP_em2d.ProjectionParameters_get_quaternion_4(self)
1726 def set_quaternion_4(self, *args):
1727 """set_quaternion_4(ProjectionParameters self, double t)"""
1728 return _IMP_em2d.ProjectionParameters_set_quaternion_4(self, *args)
1730 def get_translation_x(self):
1731 """get_translation_x(ProjectionParameters self) -> double"""
1732 return _IMP_em2d.ProjectionParameters_get_translation_x(self)
1734 def set_translation_x(self, *args):
1735 """set_translation_x(ProjectionParameters self, double t)"""
1736 return _IMP_em2d.ProjectionParameters_set_translation_x(self, *args)
1738 def get_translation_y(self):
1739 """get_translation_y(ProjectionParameters self) -> double"""
1740 return _IMP_em2d.ProjectionParameters_get_translation_y(self)
1742 def set_translation_y(self, *args):
1743 """set_translation_y(ProjectionParameters self, double t)"""
1744 return _IMP_em2d.ProjectionParameters_set_translation_y(self, *args)
1746 def add_attribute(self, *args):
1748 add_attribute(ProjectionParameters self, FloatKey k, IMP::Float v, bool opt)
1749 add_attribute(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1750 add_attribute(ProjectionParameters self, IntKey a0, IMP::Int a1)
1751 add_attribute(ProjectionParameters self, StringKey a0, IMP::String a1)
1752 add_attribute(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1753 add_attribute(ProjectionParameters self, ObjectKey a0, IMP::Object * a1)
1755 return _IMP_em2d.ProjectionParameters_add_attribute(self, *args)
1757 def get_value(self, *args):
1759 get_value(ProjectionParameters self, FloatKey a0) -> IMP::Float
1760 get_value(ProjectionParameters self, IntKey a0) -> IMP::Int
1761 get_value(ProjectionParameters self, StringKey a0) -> IMP::String
1762 get_value(ProjectionParameters self, ParticleIndexKey a0) -> Particle
1763 get_value(ProjectionParameters self, ObjectKey a0) -> IMP::Object *
1765 return _IMP_em2d.ProjectionParameters_get_value(self, *args)
1767 def set_value(self, *args):
1769 set_value(ProjectionParameters self, FloatKey a0, IMP::Float a1)
1770 set_value(ProjectionParameters self, IntKey a0, IMP::Int a1)
1771 set_value(ProjectionParameters self, StringKey a0, IMP::String a1)
1772 set_value(ProjectionParameters self, ParticleIndexKey a0, Particle a1)
1773 set_value(ProjectionParameters self, ObjectKey a0, IMP::Object * a1)
1775 return _IMP_em2d.ProjectionParameters_set_value(self, *args)
1777 def remove_attribute(self, *args):
1779 remove_attribute(ProjectionParameters self, FloatKey a0)
1780 remove_attribute(ProjectionParameters self, IntKey a0)
1781 remove_attribute(ProjectionParameters self, StringKey a0)
1782 remove_attribute(ProjectionParameters self, ParticleIndexKey a0)
1783 remove_attribute(ProjectionParameters self, ObjectKey a0)
1785 return _IMP_em2d.ProjectionParameters_remove_attribute(self, *args)
1787 def has_attribute(self, *args):
1789 has_attribute(ProjectionParameters self, FloatKey a0) -> bool
1790 has_attribute(ProjectionParameters self, IntKey a0) -> bool
1791 has_attribute(ProjectionParameters self, StringKey a0) -> bool
1792 has_attribute(ProjectionParameters self, ParticleIndexKey a0) -> bool
1793 has_attribute(ProjectionParameters self, ObjectKey a0) -> bool
1795 return _IMP_em2d.ProjectionParameters_has_attribute(self, *args)
1797 def get_derivative(self, *args):
1798 """get_derivative(ProjectionParameters self, FloatKey a0) -> double"""
1799 return _IMP_em2d.ProjectionParameters_get_derivative(self, *args)
1802 """get_name(ProjectionParameters self) -> std::string"""
1803 return _IMP_em2d.ProjectionParameters_get_name(self)
1805 def clear_caches(self):
1806 """clear_caches(ProjectionParameters self)"""
1807 return _IMP_em2d.ProjectionParameters_clear_caches(self)
1809 def set_name(self, *args):
1810 """set_name(ProjectionParameters self, std::string a0)"""
1811 return _IMP_em2d.ProjectionParameters_set_name(self, *args)
1814 """set_check_level(ProjectionParameters self, IMP::base::CheckLevel a0)"""
1815 return _IMP_em2d.ProjectionParameters_set_check_level(self, *args)
1817 def add_to_derivative(self, *args):
1818 """add_to_derivative(ProjectionParameters self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1819 return _IMP_em2d.ProjectionParameters_add_to_derivative(self, *args)
1821 def set_is_optimized(self, *args):
1822 """set_is_optimized(ProjectionParameters self, FloatKey a0, bool a1)"""
1823 return _IMP_em2d.ProjectionParameters_set_is_optimized(self, *args)
1825 def get_is_optimized(self, *args):
1826 """get_is_optimized(ProjectionParameters self, FloatKey a0) -> bool"""
1827 return _IMP_em2d.ProjectionParameters_get_is_optimized(self, *args)
1830 """get_check_level(ProjectionParameters self) -> IMP::base::CheckLevel"""
1831 return _IMP_em2d.ProjectionParameters_get_check_level(self)
1833 def __eq__(self, *args):
1835 __eq__(ProjectionParameters self, ProjectionParameters o) -> bool
1836 __eq__(ProjectionParameters self, Particle d) -> bool
1838 return _IMP_em2d.ProjectionParameters___eq__(self, *args)
1840 def __ne__(self, *args):
1842 __ne__(ProjectionParameters self, ProjectionParameters o) -> bool
1843 __ne__(ProjectionParameters self, Particle d) -> bool
1845 return _IMP_em2d.ProjectionParameters___ne__(self, *args)
1847 def __le__(self, *args):
1849 __le__(ProjectionParameters self, ProjectionParameters o) -> bool
1850 __le__(ProjectionParameters self, Particle d) -> bool
1852 return _IMP_em2d.ProjectionParameters___le__(self, *args)
1854 def __lt__(self, *args):
1856 __lt__(ProjectionParameters self, ProjectionParameters o) -> bool
1857 __lt__(ProjectionParameters self, Particle d) -> bool
1859 return _IMP_em2d.ProjectionParameters___lt__(self, *args)
1861 def __ge__(self, *args):
1863 __ge__(ProjectionParameters self, ProjectionParameters o) -> bool
1864 __ge__(ProjectionParameters self, Particle d) -> bool
1866 return _IMP_em2d.ProjectionParameters___ge__(self, *args)
1868 def __gt__(self, *args):
1870 __gt__(ProjectionParameters self, ProjectionParameters o) -> bool
1871 __gt__(ProjectionParameters self, Particle d) -> bool
1873 return _IMP_em2d.ProjectionParameters___gt__(self, *args)
1876 """__str__(ProjectionParameters self) -> std::string"""
1877 return _IMP_em2d.ProjectionParameters___str__(self)
1880 """__repr__(ProjectionParameters self) -> std::string"""
1881 return _IMP_em2d.ProjectionParameters___repr__(self)
1883 ProjectionParameters_swigregister = _IMP_em2d.ProjectionParameters_swigregister
1884 ProjectionParameters_swigregister(ProjectionParameters)
1886 def ProjectionParameters_decorate_particle(*args):
1887 """ProjectionParameters_decorate_particle(Particle p) -> ProjectionParameters"""
1888 return _IMP_em2d.ProjectionParameters_decorate_particle(*args)
1890 def ProjectionParameters_particle_is_instance(*args):
1892 particle_is_instance(Particle p) -> bool
1893 ProjectionParameters_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
1895 return _IMP_em2d.ProjectionParameters_particle_is_instance(*args)
1897 def ProjectionParameters_setup_particle(*args):
1899 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> ProjectionParameters
1900 ProjectionParameters_setup_particle(_ParticleAdaptor decorator) -> ProjectionParameters
1902 return _IMP_em2d.ProjectionParameters_setup_particle(*args)
1904 def ProjectionParameters_get_keys():
1905 """ProjectionParameters_get_keys() -> IMP::kernel::FloatKeys const &"""
1906 return _IMP_em2d.ProjectionParameters_get_keys()
1908 def ProjectionParameters_get_is_setup(*args):
1910 get_is_setup(_ParticleAdaptor p) -> bool
1911 ProjectionParameters_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1913 return _IMP_em2d.ProjectionParameters_get_is_setup(*args)
1916 def __lshift__(*args):
1917 """__lshift__(_ostream out, ProjectionParameters n) -> _ostream"""
1918 return _IMP_em2d.__lshift__(*args)
1920 """Proxy of C++ IMP::em2d::ProjectionParametersScoreState class"""
1921 __swig_setmethods__ = {}
1923 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectionParametersScoreState, name, value)
1924 __swig_getmethods__ = {}
1926 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectionParametersScoreState, name)
1927 def __init__(self, *args):
1928 """__init__(IMP::em2d::ProjectionParametersScoreState self, Particle p) -> ProjectionParametersScoreState"""
1929 this = _IMP_em2d.new_ProjectionParametersScoreState(*args)
1930 try: self.this.append(this)
1931 except: self.this = this
1932 def do_before_evaluate(self):
1933 """do_before_evaluate(ProjectionParametersScoreState self)"""
1934 return _IMP_em2d.ProjectionParametersScoreState_do_before_evaluate(self)
1936 def do_after_evaluate(self, *args):
1937 """do_after_evaluate(ProjectionParametersScoreState self, DerivativeAccumulator da)"""
1938 return _IMP_em2d.ProjectionParametersScoreState_do_after_evaluate(self, *args)
1940 def do_get_inputs(self):
1941 """do_get_inputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1942 return _IMP_em2d.ProjectionParametersScoreState_do_get_inputs(self)
1944 def do_get_outputs(self):
1945 """do_get_outputs(ProjectionParametersScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1946 return _IMP_em2d.ProjectionParametersScoreState_do_get_outputs(self)
1948 def get_version_info(self):
1949 """get_version_info(ProjectionParametersScoreState self) -> VersionInfo"""
1950 return _IMP_em2d.ProjectionParametersScoreState_get_version_info(self)
1952 __swig_destroy__ = _IMP_em2d.delete_ProjectionParametersScoreState
1953 __del__ =
lambda self :
None;
1955 """__str__(ProjectionParametersScoreState self) -> std::string"""
1956 return _IMP_em2d.ProjectionParametersScoreState___str__(self)
1959 """__repr__(ProjectionParametersScoreState self) -> std::string"""
1960 return _IMP_em2d.ProjectionParametersScoreState___repr__(self)
1963 return _object_cast_to_ProjectionParametersScoreState(o)
1964 get_from = staticmethod(get_from)
1966 ProjectionParametersScoreState_swigregister = _IMP_em2d.ProjectionParametersScoreState_swigregister
1967 ProjectionParametersScoreState_swigregister(ProjectionParametersScoreState)
1969 class ProjectionMask(_object):
1970 """Proxy of C++ IMP::em2d::ProjectionMask class"""
1971 __swig_setmethods__ = {}
1972 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectionMask, name, value)
1973 __swig_getmethods__ = {}
1974 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectionMask, name)
1975 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
1976 def apply(self, *args):
1977 """apply(ProjectionMask self, cv::Mat & m, Vector2D v)"""
1978 return _IMP_em2d.ProjectionMask_apply(self, *args)
1980 def show(self, *args):
1982 show(ProjectionMask self, _ostream out=std::cout)
1983 show(ProjectionMask self)
1985 return _IMP_em2d.ProjectionMask_show(self, *args)
1987 __swig_destroy__ = _IMP_em2d.delete_ProjectionMask
1988 __del__ =
lambda self :
None;
1990 """__str__(ProjectionMask self) -> std::string"""
1991 return _IMP_em2d.ProjectionMask___str__(self)
1994 """__repr__(ProjectionMask self) -> std::string"""
1995 return _IMP_em2d.ProjectionMask___repr__(self)
1997 ProjectionMask_swigregister = _IMP_em2d.ProjectionMask_swigregister
1998 ProjectionMask_swigregister(ProjectionMask)
2002 """do_place(cv::Mat & mask, cv::Mat & m, Vector2D v)"""
2003 return _IMP_em2d.do_place(*args)
2004 class MasksManager(_object):
2005 """Proxy of C++ IMP::em2d::MasksManager class"""
2006 __swig_setmethods__ = {}
2007 __setattr__ =
lambda self, name, value: _swig_setattr(self, MasksManager, name, value)
2008 __swig_getmethods__ = {}
2009 __getattr__ =
lambda self, name: _swig_getattr(self, MasksManager, name)
2010 def __init__(self, *args):
2012 __init__(IMP::em2d::MasksManager self) -> MasksManager
2013 __init__(IMP::em2d::MasksManager self, double resolution, double pixelsize) -> MasksManager
2015 this = _IMP_em2d.new_MasksManager(*args)
2016 try: self.this.append(this)
2017 except: self.this = this
2018 def setup_kernel(self, *args):
2019 """setup_kernel(MasksManager self, double resolution, double pixelsize)"""
2020 return _IMP_em2d.MasksManager_setup_kernel(self, *args)
2022 def create_masks(self, *args):
2023 """create_masks(MasksManager self, IMP::kernel::ParticlesTemp const & ps)"""
2024 return _IMP_em2d.MasksManager_create_masks(self, *args)
2026 def create_mask(self, *args):
2027 """create_mask(MasksManager self, double radius, double mass)"""
2028 return _IMP_em2d.MasksManager_create_mask(self, *args)
2030 def find_mask(self, *args):
2031 """find_mask(MasksManager self, double radius) -> IMP::em2d::ProjectionMaskPtr"""
2032 return _IMP_em2d.MasksManager_find_mask(self, *args)
2034 def show(self, *args):
2036 show(MasksManager self, _ostream out=std::cout)
2037 show(MasksManager self)
2039 return _IMP_em2d.MasksManager_show(self, *args)
2041 def get_number_of_masks(self):
2042 """get_number_of_masks(MasksManager self) -> unsigned int"""
2043 return _IMP_em2d.MasksManager_get_number_of_masks(self)
2045 __swig_destroy__ = _IMP_em2d.delete_MasksManager
2046 __del__ =
lambda self :
None;
2048 """__str__(MasksManager self) -> std::string"""
2049 return _IMP_em2d.MasksManager___str__(self)
2052 """__repr__(MasksManager self) -> std::string"""
2053 return _IMP_em2d.MasksManager___repr__(self)
2055 MasksManager_swigregister = _IMP_em2d.MasksManager_swigregister
2056 MasksManager_swigregister(MasksManager)
2058 class ProjectingParameters(_object):
2059 """Proxy of C++ IMP::em2d::ProjectingParameters class"""
2060 __swig_setmethods__ = {}
2061 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectingParameters, name, value)
2062 __swig_getmethods__ = {}
2063 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectingParameters, name)
2064 __swig_setmethods__[
"pixel_size"] = _IMP_em2d.ProjectingParameters_pixel_size_set
2065 __swig_getmethods__[
"pixel_size"] = _IMP_em2d.ProjectingParameters_pixel_size_get
2066 if _newclass:pixel_size = _swig_property(_IMP_em2d.ProjectingParameters_pixel_size_get, _IMP_em2d.ProjectingParameters_pixel_size_set)
2067 __swig_setmethods__[
"resolution"] = _IMP_em2d.ProjectingParameters_resolution_set
2068 __swig_getmethods__[
"resolution"] = _IMP_em2d.ProjectingParameters_resolution_get
2069 if _newclass:resolution = _swig_property(_IMP_em2d.ProjectingParameters_resolution_get, _IMP_em2d.ProjectingParameters_resolution_set)
2070 def __init__(self, *args):
2072 __init__(IMP::em2d::ProjectingParameters self) -> ProjectingParameters
2073 __init__(IMP::em2d::ProjectingParameters self, double ps, double res) -> ProjectingParameters
2075 this = _IMP_em2d.new_ProjectingParameters(*args)
2076 try: self.this.append(this)
2077 except: self.this = this
2078 def show(self, *args):
2080 show(ProjectingParameters self, _ostream out=std::cout)
2081 show(ProjectingParameters self)
2083 return _IMP_em2d.ProjectingParameters_show(self, *args)
2086 """__str__(ProjectingParameters self) -> std::string"""
2087 return _IMP_em2d.ProjectingParameters___str__(self)
2090 """__repr__(ProjectingParameters self) -> std::string"""
2091 return _IMP_em2d.ProjectingParameters___repr__(self)
2093 __swig_destroy__ = _IMP_em2d.delete_ProjectingParameters
2094 __del__ =
lambda self :
None;
2095 ProjectingParameters_swigregister = _IMP_em2d.ProjectingParameters_swigregister
2096 ProjectingParameters_swigregister(ProjectingParameters)
2098 class ProjectingOptions(ProjectingParameters):
2099 """Proxy of C++ IMP::em2d::ProjectingOptions class"""
2100 __swig_setmethods__ = {}
2101 for _s
in [ProjectingParameters]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2102 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectingOptions, name, value)
2103 __swig_getmethods__ = {}
2104 for _s
in [ProjectingParameters]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2105 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectingOptions, name)
2106 __swig_setmethods__[
"save_images"] = _IMP_em2d.ProjectingOptions_save_images_set
2107 __swig_getmethods__[
"save_images"] = _IMP_em2d.ProjectingOptions_save_images_get
2108 if _newclass:save_images = _swig_property(_IMP_em2d.ProjectingOptions_save_images_get, _IMP_em2d.ProjectingOptions_save_images_set)
2109 __swig_setmethods__[
"normalize"] = _IMP_em2d.ProjectingOptions_normalize_set
2110 __swig_getmethods__[
"normalize"] = _IMP_em2d.ProjectingOptions_normalize_get
2111 if _newclass:normalize = _swig_property(_IMP_em2d.ProjectingOptions_normalize_get, _IMP_em2d.ProjectingOptions_normalize_set)
2112 __swig_setmethods__[
"clear_matrix_before_projecting"] = _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set
2113 __swig_getmethods__[
"clear_matrix_before_projecting"] = _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get
2114 if _newclass:clear_matrix_before_projecting = _swig_property(_IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_get, _IMP_em2d.ProjectingOptions_clear_matrix_before_projecting_set)
2115 def __init__(self, *args):
2117 __init__(IMP::em2d::ProjectingOptions self) -> ProjectingOptions
2118 __init__(IMP::em2d::ProjectingOptions self, double ps, double res) -> ProjectingOptions
2119 __init__(IMP::em2d::ProjectingOptions self, double ps, double res, ImageReaderWriter irw) -> ProjectingOptions
2121 this = _IMP_em2d.new_ProjectingOptions(*args)
2122 try: self.this.append(this)
2123 except: self.this = this
2124 def show(self, *args):
2126 show(ProjectingOptions self, _ostream out=std::cout)
2127 show(ProjectingOptions self)
2129 return _IMP_em2d.ProjectingOptions_show(self, *args)
2132 """__str__(ProjectingOptions self) -> std::string"""
2133 return _IMP_em2d.ProjectingOptions___str__(self)
2136 """__repr__(ProjectingOptions self) -> std::string"""
2137 return _IMP_em2d.ProjectingOptions___repr__(self)
2139 __swig_destroy__ = _IMP_em2d.delete_ProjectingOptions
2140 __del__ =
lambda self :
None;
2141 ProjectingOptions_swigregister = _IMP_em2d.ProjectingOptions_swigregister
2142 ProjectingOptions_swigregister(ProjectingOptions)
2147 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
2148 int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
2149 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::algebra::SphericalVector3Ds const & vs,
2150 int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2151 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
2152 int rows, int cols, ProjectingOptions options, IMP::Strings names=IMP::Strings()) -> IMP::em2d::Images
2153 get_projections(IMP::kernel::ParticlesTemp const & ps, IMP::em2d::RegistrationResults const & registration_values,
2154 int rows, int cols, ProjectingOptions options) -> IMP::em2d::Images
2156 return _IMP_em2d.get_projections(*args)
2160 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
2161 IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr(),
2162 IMP::String name="")
2163 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options,
2164 IMP::em2d::MasksManagerPtr masks=IMP::em2d::MasksManagerPtr())
2165 get_projection(Image img, IMP::kernel::ParticlesTemp const & ps, RegistrationResult reg, ProjectingOptions options)
2167 return _IMP_em2d.get_projection(*args)
2171 do_project_particles(IMP::kernel::ParticlesTemp const & ps, cv::Mat & m2, Rotation3D R, Vector3D translation,
2172 ProjectingOptions options, IMP::em2d::MasksManagerPtr masks)
2174 return _IMP_em2d.do_project_particles(*args)
2177 """create_evenly_distributed_projections(IMP::kernel::ParticlesTemp const & ps, unsigned int n, ProjectingOptions options) -> IMP::em2d::Images"""
2178 return _IMP_em2d.create_evenly_distributed_projections(*args)
2182 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation) -> IMP::algebra::Vector2Ds
2183 do_project_vectors(IMP::algebra::Vector3Ds const & ps, Rotation3D R, Vector3D translation, Vector3D center) -> IMP::algebra::Vector2Ds
2185 return _IMP_em2d.do_project_vectors(*args)
2188 """get_enclosing_image_size(IMP::kernel::ParticlesTemp const & ps, double pixel_size, unsigned int slack) -> unsigned int"""
2189 return _IMP_em2d.get_enclosing_image_size(*args)
2193 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2194 get_complete_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2196 return _IMP_em2d.get_complete_alignment(*args)
2200 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2201 get_rotational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2203 return _IMP_em2d.get_rotational_alignment(*args)
2207 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align, bool apply=False) -> ResultAlign2D
2208 get_translational_alignment(cv::Mat const & input, cv::Mat & m_to_align) -> ResultAlign2D
2210 return _IMP_em2d.get_translational_alignment(*args)
2214 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2215 cv::Mat const & POLAR2, bool apply=False) -> ResultAlign2D
2216 get_complete_alignment_no_preprocessing(cv::Mat const & input, cv::Mat const & INPUT, cv::Mat const & POLAR1, cv::Mat & m_to_align,
2217 cv::Mat const & POLAR2) -> ResultAlign2D
2219 return _IMP_em2d.get_complete_alignment_no_preprocessing(*args)
2222 """get_rotational_alignment_no_preprocessing(cv::Mat const & POLAR1, cv::Mat const & POLAR2) -> ResultAlign2D"""
2223 return _IMP_em2d.get_rotational_alignment_no_preprocessing(*args)
2226 """get_translational_alignment_no_preprocessing(cv::Mat const & M1, cv::Mat const & M2) -> ResultAlign2D"""
2227 return _IMP_em2d.get_translational_alignment_no_preprocessing(*args)
2230 """get_complete_alignment_with_centers_no_preprocessing(Vector2D center1, Vector2D center2, cv::Mat const & AUTOC_POLAR1, cv::Mat const & AUTOC_POLAR2) -> ResultAlign2D"""
2231 return _IMP_em2d.get_complete_alignment_with_centers_no_preprocessing(*args)
2235 write_vectors_as_pdb(IMP::algebra::Vector2Ds const vs, IMP::String const filename)
2236 write_vectors_as_pdb(IMP::algebra::Vector3Ds const vs, IMP::String const filename)
2238 return _IMP_em2d.write_vectors_as_pdb(*args)
2239 class Em2DRestraintParameters(ProjectingParameters):
2240 """Proxy of C++ IMP::em2d::Em2DRestraintParameters class"""
2241 __swig_setmethods__ = {}
2242 for _s
in [ProjectingParameters]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2243 __setattr__ =
lambda self, name, value: _swig_setattr(self, Em2DRestraintParameters, name, value)
2244 __swig_getmethods__ = {}
2245 for _s
in [ProjectingParameters]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2246 __getattr__ =
lambda self, name: _swig_getattr(self, Em2DRestraintParameters, name)
2247 __swig_setmethods__[
"n_projections"] = _IMP_em2d.Em2DRestraintParameters_n_projections_set
2248 __swig_getmethods__[
"n_projections"] = _IMP_em2d.Em2DRestraintParameters_n_projections_get
2249 if _newclass:n_projections = _swig_property(_IMP_em2d.Em2DRestraintParameters_n_projections_get, _IMP_em2d.Em2DRestraintParameters_n_projections_set)
2250 __swig_setmethods__[
"coarse_registration_method"] = _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set
2251 __swig_getmethods__[
"coarse_registration_method"] = _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get
2252 if _newclass:coarse_registration_method = _swig_property(_IMP_em2d.Em2DRestraintParameters_coarse_registration_method_get, _IMP_em2d.Em2DRestraintParameters_coarse_registration_method_set)
2253 __swig_setmethods__[
"save_match_images"] = _IMP_em2d.Em2DRestraintParameters_save_match_images_set
2254 __swig_getmethods__[
"save_match_images"] = _IMP_em2d.Em2DRestraintParameters_save_match_images_get
2255 if _newclass:save_match_images = _swig_property(_IMP_em2d.Em2DRestraintParameters_save_match_images_get, _IMP_em2d.Em2DRestraintParameters_save_match_images_set)
2256 __swig_setmethods__[
"optimization_steps"] = _IMP_em2d.Em2DRestraintParameters_optimization_steps_set
2257 __swig_getmethods__[
"optimization_steps"] = _IMP_em2d.Em2DRestraintParameters_optimization_steps_get
2258 if _newclass:optimization_steps = _swig_property(_IMP_em2d.Em2DRestraintParameters_optimization_steps_get, _IMP_em2d.Em2DRestraintParameters_optimization_steps_set)
2259 __swig_setmethods__[
"simplex_initial_length"] = _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set
2260 __swig_getmethods__[
"simplex_initial_length"] = _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get
2261 if _newclass:simplex_initial_length = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_initial_length_get, _IMP_em2d.Em2DRestraintParameters_simplex_initial_length_set)
2262 __swig_setmethods__[
"simplex_minimum_size"] = _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set
2263 __swig_getmethods__[
"simplex_minimum_size"] = _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get
2264 if _newclass:simplex_minimum_size = _swig_property(_IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_get, _IMP_em2d.Em2DRestraintParameters_simplex_minimum_size_set)
2265 def __init__(self, *args):
2267 __init__(IMP::em2d::Em2DRestraintParameters self) -> Em2DRestraintParameters
2268 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res, unsigned int n_proj=20) -> Em2DRestraintParameters
2269 __init__(IMP::em2d::Em2DRestraintParameters self, double ps, double res) -> Em2DRestraintParameters
2271 this = _IMP_em2d.new_Em2DRestraintParameters(*args)
2272 try: self.this.append(this)
2273 except: self.this = this
2274 def show(self, *args):
2276 show(Em2DRestraintParameters self, _ostream out=std::cout)
2277 show(Em2DRestraintParameters self)
2279 return _IMP_em2d.Em2DRestraintParameters_show(self, *args)
2282 """__str__(Em2DRestraintParameters self) -> std::string"""
2283 return _IMP_em2d.Em2DRestraintParameters___str__(self)
2286 """__repr__(Em2DRestraintParameters self) -> std::string"""
2287 return _IMP_em2d.Em2DRestraintParameters___repr__(self)
2289 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraintParameters
2290 __del__ =
lambda self :
None;
2291 Em2DRestraintParameters_swigregister = _IMP_em2d.Em2DRestraintParameters_swigregister
2292 Em2DRestraintParameters_swigregister(Em2DRestraintParameters)
2293 cvar = _IMP_em2d.cvar
2294 ALIGN2D_NO_PREPROCESSING = cvar.ALIGN2D_NO_PREPROCESSING
2295 ALIGN2D_PREPROCESSING = cvar.ALIGN2D_PREPROCESSING
2296 ALIGN2D_WITH_CENTERS = cvar.ALIGN2D_WITH_CENTERS
2299 """Proxy of C++ IMP::em2d::ProjectionFinder class"""
2300 __swig_setmethods__ = {}
2301 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2302 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectionFinder, name, value)
2303 __swig_getmethods__ = {}
2304 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2305 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectionFinder, name)
2307 """__init__(IMP::em2d::ProjectionFinder self) -> ProjectionFinder"""
2308 this = _IMP_em2d.new_ProjectionFinder()
2309 try: self.this.append(this)
2310 except: self.this = this
2311 def setup(self, *args):
2312 """setup(ProjectionFinder self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2313 return _IMP_em2d.ProjectionFinder_setup(self, *args)
2315 def set_subjects(self, *args):
2316 """set_subjects(ProjectionFinder self, IMP::em2d::Images const & subjects)"""
2317 return _IMP_em2d.ProjectionFinder_set_subjects(self, *args)
2319 def set_projections(self, *args):
2320 """set_projections(ProjectionFinder self, IMP::em2d::Images const & projections)"""
2321 return _IMP_em2d.ProjectionFinder_set_projections(self, *args)
2323 def set_variance_images(self, *args):
2324 """set_variance_images(ProjectionFinder self, IMP::em2d::Images const & variances)"""
2325 return _IMP_em2d.ProjectionFinder_set_variance_images(self, *args)
2327 def set_model_particles(self, *args):
2328 """set_model_particles(ProjectionFinder self, IMP::kernel::ParticlesTemp const & ps)"""
2329 return _IMP_em2d.ProjectionFinder_set_model_particles(self, *args)
2331 def set_save_match_images(self, *args):
2332 """set_save_match_images(ProjectionFinder self, bool x)"""
2333 return _IMP_em2d.ProjectionFinder_set_save_match_images(self, *args)
2335 def get_save_match_images(self):
2336 """get_save_match_images(ProjectionFinder self) -> bool"""
2337 return _IMP_em2d.ProjectionFinder_get_save_match_images(self)
2339 def set_fast_mode(self, *args):
2340 """set_fast_mode(ProjectionFinder self, unsigned int n)"""
2341 return _IMP_em2d.ProjectionFinder_set_fast_mode(self, *args)
2343 def get_registration_results(self):
2344 """get_registration_results(ProjectionFinder self) -> IMP::em2d::RegistrationResults"""
2345 return _IMP_em2d.ProjectionFinder_get_registration_results(self)
2347 def get_coarse_registration(self):
2348 """get_coarse_registration(ProjectionFinder self)"""
2349 return _IMP_em2d.ProjectionFinder_get_coarse_registration(self)
2351 def get_complete_registration(self):
2352 """get_complete_registration(ProjectionFinder self)"""
2353 return _IMP_em2d.ProjectionFinder_get_complete_registration(self)
2356 """get_global_score(ProjectionFinder self) -> double"""
2357 return _IMP_em2d.ProjectionFinder_get_global_score(self)
2359 def show(self, *args):
2360 """show(ProjectionFinder self, _ostream out)"""
2361 return _IMP_em2d.ProjectionFinder_show(self, *args)
2363 def get_preprocessing_time(self):
2364 """get_preprocessing_time(ProjectionFinder self) -> double"""
2365 return _IMP_em2d.ProjectionFinder_get_preprocessing_time(self)
2367 def get_coarse_registration_time(self):
2368 """get_coarse_registration_time(ProjectionFinder self) -> double"""
2369 return _IMP_em2d.ProjectionFinder_get_coarse_registration_time(self)
2371 def get_fine_registration_time(self):
2372 """get_fine_registration_time(ProjectionFinder self) -> double"""
2373 return _IMP_em2d.ProjectionFinder_get_fine_registration_time(self)
2375 def get_number_of_subjects(self):
2376 """get_number_of_subjects(ProjectionFinder self) -> unsigned int"""
2377 return _IMP_em2d.ProjectionFinder_get_number_of_subjects(self)
2379 def set_number_of_class_averages_members(self, *args):
2380 """set_number_of_class_averages_members(ProjectionFinder self, IMP::Ints n_members)"""
2381 return _IMP_em2d.ProjectionFinder_set_number_of_class_averages_members(self, *args)
2383 def get_number_of_projections(self):
2384 """get_number_of_projections(ProjectionFinder self) -> unsigned int"""
2385 return _IMP_em2d.ProjectionFinder_get_number_of_projections(self)
2387 def get_version_info(self):
2388 """get_version_info(ProjectionFinder self) -> VersionInfo"""
2389 return _IMP_em2d.ProjectionFinder_get_version_info(self)
2391 __swig_destroy__ = _IMP_em2d.delete_ProjectionFinder
2392 __del__ =
lambda self :
None;
2394 """__str__(ProjectionFinder self) -> std::string"""
2395 return _IMP_em2d.ProjectionFinder___str__(self)
2398 """__repr__(ProjectionFinder self) -> std::string"""
2399 return _IMP_em2d.ProjectionFinder___repr__(self)
2402 return _object_cast_to_ProjectionFinder(o)
2403 get_from = staticmethod(get_from)
2405 ProjectionFinder_swigregister = _IMP_em2d.ProjectionFinder_swigregister
2406 ProjectionFinder_swigregister(ProjectionFinder)
2409 """Proxy of C++ IMP::em2d::Em2DRestraint class"""
2410 __swig_setmethods__ = {}
2411 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2412 __setattr__ =
lambda self, name, value: _swig_setattr(self, Em2DRestraint, name, value)
2413 __swig_getmethods__ = {}
2414 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2415 __getattr__ =
lambda self, name: _swig_getattr(self, Em2DRestraint, name)
2417 """__init__(IMP::em2d::Em2DRestraint self) -> Em2DRestraint"""
2418 this = _IMP_em2d.new_Em2DRestraint()
2419 try: self.this.append(this)
2420 except: self.this = this
2421 def setup(self, *args):
2422 """setup(Em2DRestraint self, ScoreFunction score_function, Em2DRestraintParameters params)"""
2423 return _IMP_em2d.Em2DRestraint_setup(self, *args)
2425 def set_particles(self, *args):
2426 """set_particles(Em2DRestraint self, SingletonContainer particles_container)"""
2427 return _IMP_em2d.Em2DRestraint_set_particles(self, *args)
2429 def set_images(self, *args):
2430 """set_images(Em2DRestraint self, IMP::em2d::Images const em_images)"""
2431 return _IMP_em2d.Em2DRestraint_set_images(self, *args)
2433 def set_variance_images(self, *args):
2434 """set_variance_images(Em2DRestraint self, IMP::em2d::Images const variance_images)"""
2435 return _IMP_em2d.Em2DRestraint_set_variance_images(self, *args)
2437 def set_fast_mode(self, *args):
2438 """set_fast_mode(Em2DRestraint self, unsigned int n)"""
2439 return _IMP_em2d.Em2DRestraint_set_fast_mode(self, *args)
2441 def set_coarse_registration_mode(self, *args):
2442 """set_coarse_registration_mode(Em2DRestraint self, bool opt)"""
2443 return _IMP_em2d.Em2DRestraint_set_coarse_registration_mode(self, *args)
2445 def get_registration_results(self):
2446 """get_registration_results(Em2DRestraint self) -> IMP::em2d::RegistrationResults"""
2447 return _IMP_em2d.Em2DRestraint_get_registration_results(self)
2449 def do_get_inputs(self):
2450 """do_get_inputs(Em2DRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2451 return _IMP_em2d.Em2DRestraint_do_get_inputs(self)
2453 def get_version_info(self):
2454 """get_version_info(Em2DRestraint self) -> VersionInfo"""
2455 return _IMP_em2d.Em2DRestraint_get_version_info(self)
2457 __swig_destroy__ = _IMP_em2d.delete_Em2DRestraint
2458 __del__ =
lambda self :
None;
2460 """__str__(Em2DRestraint self) -> std::string"""
2461 return _IMP_em2d.Em2DRestraint___str__(self)
2464 """__repr__(Em2DRestraint self) -> std::string"""
2465 return _IMP_em2d.Em2DRestraint___repr__(self)
2468 return _object_cast_to_Em2DRestraint(o)
2469 get_from = staticmethod(get_from)
2471 Em2DRestraint_swigregister = _IMP_em2d.Em2DRestraint_swigregister
2472 Em2DRestraint_swigregister(Em2DRestraint)
2474 class ClusterSet(_object):
2475 """Proxy of C++ IMP::em2d::ClusterSet class"""
2476 __swig_setmethods__ = {}
2477 __setattr__ =
lambda self, name, value: _swig_setattr(self, ClusterSet, name, value)
2478 __swig_getmethods__ = {}
2479 __getattr__ =
lambda self, name: _swig_getattr(self, ClusterSet, name)
2480 def __init__(self, *args):
2481 """__init__(IMP::em2d::ClusterSet self, unsigned int N) -> ClusterSet"""
2482 this = _IMP_em2d.new_ClusterSet(*args)
2483 try: self.this.append(this)
2484 except: self.this = this
2485 def do_join_clusters(self, *args):
2486 """do_join_clusters(ClusterSet self, unsigned int cluster_id1, unsigned int cluster_id2, double distance_between_clusters)"""
2487 return _IMP_em2d.ClusterSet_do_join_clusters(self, *args)
2489 def get_cluster_elements(self, *args):
2490 """get_cluster_elements(ClusterSet self, unsigned int id) -> IMP::Ints"""
2491 return _IMP_em2d.ClusterSet_get_cluster_elements(self, *args)
2493 def get_clusters_below_cutoff(self, *args):
2494 """get_clusters_below_cutoff(ClusterSet self, double cutoff) -> IMP::Ints"""
2495 return _IMP_em2d.ClusterSet_get_clusters_below_cutoff(self, *args)
2497 def get_cluster_formed_at_step(self, *args):
2498 """get_cluster_formed_at_step(ClusterSet self, unsigned int step) -> IMP::Ints"""
2499 return _IMP_em2d.ClusterSet_get_cluster_formed_at_step(self, *args)
2501 def get_distance_at_step(self, *args):
2502 """get_distance_at_step(ClusterSet self, unsigned int step) -> double"""
2503 return _IMP_em2d.ClusterSet_get_distance_at_step(self, *args)
2505 def get_id_for_cluster_at_step(self, *args):
2506 """get_id_for_cluster_at_step(ClusterSet self, unsigned int step) -> unsigned int"""
2507 return _IMP_em2d.ClusterSet_get_id_for_cluster_at_step(self, *args)
2509 def get_linkage_matrix(self):
2510 """get_linkage_matrix(ClusterSet self) -> IMP::FloatsList"""
2511 return _IMP_em2d.ClusterSet_get_linkage_matrix(self)
2513 def get_linkage_matrix_in_matlab_format(self):
2514 """get_linkage_matrix_in_matlab_format(ClusterSet self) -> IMP::FloatsList"""
2515 return _IMP_em2d.ClusterSet_get_linkage_matrix_in_matlab_format(self)
2517 def get_number_of_steps(self):
2518 """get_number_of_steps(ClusterSet self) -> unsigned int"""
2519 return _IMP_em2d.ClusterSet_get_number_of_steps(self)
2521 def show(self, *args):
2522 """show(ClusterSet self, _ostream out)"""
2523 return _IMP_em2d.ClusterSet_show(self, *args)
2526 """__str__(ClusterSet self) -> std::string"""
2527 return _IMP_em2d.ClusterSet___str__(self)
2530 """__repr__(ClusterSet self) -> std::string"""
2531 return _IMP_em2d.ClusterSet___repr__(self)
2533 __swig_destroy__ = _IMP_em2d.delete_ClusterSet
2534 __del__ =
lambda self :
None;
2535 ClusterSet_swigregister = _IMP_em2d.ClusterSet_swigregister
2536 ClusterSet_swigregister(ClusterSet)
2538 class SingleLinkage(_object):
2539 """Proxy of C++ IMP::em2d::SingleLinkage class"""
2540 __swig_setmethods__ = {}
2541 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingleLinkage, name, value)
2542 __swig_getmethods__ = {}
2543 __getattr__ =
lambda self, name: _swig_getattr(self, SingleLinkage, name)
2545 """__init__(IMP::em2d::SingleLinkage self) -> SingleLinkage"""
2546 this = _IMP_em2d.new_SingleLinkage()
2547 try: self.this.append(this)
2548 except: self.this = this
2549 def __call__(self, *args):
2550 """__call__(SingleLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2551 return _IMP_em2d.SingleLinkage___call__(self, *args)
2553 def show(self, *args):
2554 """show(SingleLinkage self, _ostream out)"""
2555 return _IMP_em2d.SingleLinkage_show(self, *args)
2558 """__str__(SingleLinkage self) -> std::string"""
2559 return _IMP_em2d.SingleLinkage___str__(self)
2562 """__repr__(SingleLinkage self) -> std::string"""
2563 return _IMP_em2d.SingleLinkage___repr__(self)
2565 __swig_destroy__ = _IMP_em2d.delete_SingleLinkage
2566 __del__ =
lambda self :
None;
2567 SingleLinkage_swigregister = _IMP_em2d.SingleLinkage_swigregister
2568 SingleLinkage_swigregister(SingleLinkage)
2570 class CompleteLinkage(_object):
2571 """Proxy of C++ IMP::em2d::CompleteLinkage class"""
2572 __swig_setmethods__ = {}
2573 __setattr__ =
lambda self, name, value: _swig_setattr(self, CompleteLinkage, name, value)
2574 __swig_getmethods__ = {}
2575 __getattr__ =
lambda self, name: _swig_getattr(self, CompleteLinkage, name)
2577 """__init__(IMP::em2d::CompleteLinkage self) -> CompleteLinkage"""
2578 this = _IMP_em2d.new_CompleteLinkage()
2579 try: self.this.append(this)
2580 except: self.this = this
2581 def __call__(self, *args):
2582 """__call__(CompleteLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2583 return _IMP_em2d.CompleteLinkage___call__(self, *args)
2585 def show(self, *args):
2586 """show(CompleteLinkage self, _ostream out)"""
2587 return _IMP_em2d.CompleteLinkage_show(self, *args)
2590 """__str__(CompleteLinkage self) -> std::string"""
2591 return _IMP_em2d.CompleteLinkage___str__(self)
2594 """__repr__(CompleteLinkage self) -> std::string"""
2595 return _IMP_em2d.CompleteLinkage___repr__(self)
2597 __swig_destroy__ = _IMP_em2d.delete_CompleteLinkage
2598 __del__ =
lambda self :
None;
2599 CompleteLinkage_swigregister = _IMP_em2d.CompleteLinkage_swigregister
2600 CompleteLinkage_swigregister(CompleteLinkage)
2602 class AverageDistanceLinkage(_object):
2603 """Proxy of C++ IMP::em2d::AverageDistanceLinkage class"""
2604 __swig_setmethods__ = {}
2605 __setattr__ =
lambda self, name, value: _swig_setattr(self, AverageDistanceLinkage, name, value)
2606 __swig_getmethods__ = {}
2607 __getattr__ =
lambda self, name: _swig_getattr(self, AverageDistanceLinkage, name)
2609 """__init__(IMP::em2d::AverageDistanceLinkage self) -> AverageDistanceLinkage"""
2610 this = _IMP_em2d.new_AverageDistanceLinkage()
2611 try: self.this.append(this)
2612 except: self.this = this
2613 def __call__(self, *args):
2614 """__call__(AverageDistanceLinkage self, unsigned int id1, unsigned int id2, ClusterSet cluster_set, IMP::FloatsList const & distances) -> double"""
2615 return _IMP_em2d.AverageDistanceLinkage___call__(self, *args)
2617 def show(self, *args):
2618 """show(AverageDistanceLinkage self, _ostream out)"""
2619 return _IMP_em2d.AverageDistanceLinkage_show(self, *args)
2622 """__str__(AverageDistanceLinkage self) -> std::string"""
2623 return _IMP_em2d.AverageDistanceLinkage___str__(self)
2626 """__repr__(AverageDistanceLinkage self) -> std::string"""
2627 return _IMP_em2d.AverageDistanceLinkage___repr__(self)
2629 __swig_destroy__ = _IMP_em2d.delete_AverageDistanceLinkage
2630 __del__ =
lambda self :
None;
2631 AverageDistanceLinkage_swigregister = _IMP_em2d.AverageDistanceLinkage_swigregister
2632 AverageDistanceLinkage_swigregister(AverageDistanceLinkage)
2635 """Proxy of C++ IMP::em2d::CollisionCrossSection class"""
2636 __swig_setmethods__ = {}
2637 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2638 __setattr__ =
lambda self, name, value: _swig_setattr(self, CollisionCrossSection, name, value)
2639 __swig_getmethods__ = {}
2640 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2641 __getattr__ =
lambda self, name: _swig_getattr(self, CollisionCrossSection, name)
2642 def __init__(self, *args):
2643 """__init__(IMP::em2d::CollisionCrossSection self, unsigned int n_projections, double resolution, double pixel_size, double projection_image_size) -> CollisionCrossSection"""
2644 this = _IMP_em2d.new_CollisionCrossSection(*args)
2645 try: self.this.append(this)
2646 except: self.this = this
2647 def set_model_particles(self, *args):
2648 """set_model_particles(CollisionCrossSection self, IMP::kernel::ParticlesTemp const & ps)"""
2649 return _IMP_em2d.CollisionCrossSection_set_model_particles(self, *args)
2652 """get_ccs(CollisionCrossSection self) -> double"""
2653 return _IMP_em2d.CollisionCrossSection_get_ccs(self)
2655 def show(self, *args):
2656 """show(CollisionCrossSection self, _ostream out)"""
2657 return _IMP_em2d.CollisionCrossSection_show(self, *args)
2659 def get_version_info(self):
2660 """get_version_info(CollisionCrossSection self) -> VersionInfo"""
2661 return _IMP_em2d.CollisionCrossSection_get_version_info(self)
2663 __swig_destroy__ = _IMP_em2d.delete_CollisionCrossSection
2664 __del__ =
lambda self :
None;
2666 """__str__(CollisionCrossSection self) -> std::string"""
2667 return _IMP_em2d.CollisionCrossSection___str__(self)
2670 """__repr__(CollisionCrossSection self) -> std::string"""
2671 return _IMP_em2d.CollisionCrossSection___repr__(self)
2674 return _object_cast_to_CollisionCrossSection(o)
2675 get_from = staticmethod(get_from)
2677 CollisionCrossSection_swigregister = _IMP_em2d.CollisionCrossSection_swigregister
2678 CollisionCrossSection_swigregister(CollisionCrossSection)
2681 """Proxy of C++ IMP::em2d::GridStates class"""
2682 __swig_setmethods__ = {}
2684 __setattr__ =
lambda self, name, value: _swig_setattr(self, GridStates, name, value)
2685 __swig_getmethods__ = {}
2687 __getattr__ =
lambda self, name: _swig_getattr(self, GridStates, name)
2688 def __init__(self, *args):
2690 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2691 IMP::String const & name="GridStates") -> GridStates
2692 __init__(IMP::em2d::GridStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations) -> GridStates
2694 this = _IMP_em2d.new_GridStates(*args)
2695 try: self.this.append(this)
2696 except: self.this = this
2697 def get_position(self, *args):
2698 """get_position(GridStates self, unsigned int i) -> Vector3D"""
2699 return _IMP_em2d.GridStates_get_position(self, *args)
2701 def get_orientation(self, *args):
2702 """get_orientation(GridStates self, unsigned int i) -> Rotation3D"""
2703 return _IMP_em2d.GridStates_get_orientation(self, *args)
2705 def get_version_info(self):
2706 """get_version_info(GridStates self) -> VersionInfo"""
2707 return _IMP_em2d.GridStates_get_version_info(self)
2709 def do_show(self, *args):
2710 """do_show(GridStates self, _ostream out)"""
2711 return _IMP_em2d.GridStates_do_show(self, *args)
2713 __swig_destroy__ = _IMP_em2d.delete_GridStates
2714 __del__ =
lambda self :
None;
2716 """__str__(GridStates self) -> std::string"""
2717 return _IMP_em2d.GridStates___str__(self)
2720 """__repr__(GridStates self) -> std::string"""
2721 return _IMP_em2d.GridStates___repr__(self)
2724 return _object_cast_to_GridStates(o)
2725 get_from = staticmethod(get_from)
2727 GridStates_swigregister = _IMP_em2d.GridStates_swigregister
2728 GridStates_swigregister(GridStates)
2730 class ProjectionStates(GridStates):
2731 """Proxy of C++ IMP::em2d::ProjectionStates class"""
2732 __swig_setmethods__ = {}
2733 for _s
in [GridStates]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2734 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProjectionStates, name, value)
2735 __swig_getmethods__ = {}
2736 for _s
in [GridStates]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2737 __getattr__ =
lambda self, name: _swig_getattr(self, ProjectionStates, name)
2738 def __init__(self, *args):
2740 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2741 IMP::em2d::Images const & projections, IMP::String const & name="ProjectionStates") -> ProjectionStates
2742 __init__(IMP::em2d::ProjectionStates self, IMP::algebra::Vector3Ds const & positions, IMP::algebra::Rotation3Ds const & orientations,
2743 IMP::em2d::Images const & projections) -> ProjectionStates
2745 this = _IMP_em2d.new_ProjectionStates(*args)
2746 try: self.this.append(this)
2747 except: self.this = this
2749 """get_projection(ProjectionStates self, unsigned int i) -> Image"""
2750 return _IMP_em2d.ProjectionStates_get_projection(self, *args)
2752 def do_show(self, *args):
2753 """do_show(ProjectionStates self, _ostream out)"""
2754 return _IMP_em2d.ProjectionStates_do_show(self, *args)
2756 __swig_destroy__ = _IMP_em2d.delete_ProjectionStates
2757 __del__ =
lambda self :
None;
2759 """__str__(ProjectionStates self) -> std::string"""
2760 return _IMP_em2d.ProjectionStates___str__(self)
2763 """__repr__(ProjectionStates self) -> std::string"""
2764 return _IMP_em2d.ProjectionStates___repr__(self)
2767 return _object_cast_to_ProjectionStates(o)
2768 get_from = staticmethod(get_from)
2770 ProjectionStates_swigregister = _IMP_em2d.ProjectionStates_swigregister
2771 ProjectionStates_swigregister(ProjectionStates)
2774 """Proxy of C++ IMP::em2d::DistanceFilter class"""
2775 __swig_setmethods__ = {}
2777 __setattr__ =
lambda self, name, value: _swig_setattr(self, DistanceFilter, name, value)
2778 __swig_getmethods__ = {}
2780 __getattr__ =
lambda self, name: _swig_getattr(self, DistanceFilter, name)
2781 def __init__(self, *args):
2783 __init__(IMP::em2d::DistanceFilter self, Subset subset_to_act_on, Subset subset_to_restrain, ParticleStatesTable ps_table,
2784 double max_distance) -> DistanceFilter
2786 this = _IMP_em2d.new_DistanceFilter(*args)
2787 try: self.this.append(this)
2788 except: self.this = this
2789 def show(self, *args):
2791 show(DistanceFilter self, _ostream out=std::cout)
2792 show(DistanceFilter self)
2794 return _IMP_em2d.DistanceFilter_show(self, *args)
2796 def get_version_info(self):
2797 """get_version_info(DistanceFilter self) -> VersionInfo"""
2798 return _IMP_em2d.DistanceFilter_get_version_info(self)
2800 def do_show(self, *args):
2801 """do_show(DistanceFilter self, _ostream out)"""
2802 return _IMP_em2d.DistanceFilter_do_show(self, *args)
2804 __swig_destroy__ = _IMP_em2d.delete_DistanceFilter
2805 __del__ =
lambda self :
None;
2807 """__str__(DistanceFilter self) -> std::string"""
2808 return _IMP_em2d.DistanceFilter___str__(self)
2811 """__repr__(DistanceFilter self) -> std::string"""
2812 return _IMP_em2d.DistanceFilter___repr__(self)
2815 return _object_cast_to_DistanceFilter(o)
2816 get_from = staticmethod(get_from)
2818 DistanceFilter_swigregister = _IMP_em2d.DistanceFilter_swigregister
2819 DistanceFilter_swigregister(DistanceFilter)
2822 """Proxy of C++ IMP::em2d::DistanceFilterTable class"""
2823 __swig_setmethods__ = {}
2825 __setattr__ =
lambda self, name, value: _swig_setattr(self, DistanceFilterTable, name, value)
2826 __swig_getmethods__ = {}
2828 __getattr__ =
lambda self, name: _swig_getattr(self, DistanceFilterTable, name)
2829 def __init__(self, *args):
2830 """__init__(IMP::em2d::DistanceFilterTable self, Subset subset_to_act_on, ParticleStatesTable ps_table, double max_distance) -> DistanceFilterTable"""
2831 this = _IMP_em2d.new_DistanceFilterTable(*args)
2832 try: self.this.append(this)
2833 except: self.this = this
2834 def show(self, *args):
2836 show(DistanceFilterTable self, _ostream out=std::cout)
2837 show(DistanceFilterTable self)
2839 return _IMP_em2d.DistanceFilterTable_show(self, *args)
2841 def get_version_info(self):
2842 """get_version_info(DistanceFilterTable self) -> VersionInfo"""
2843 return _IMP_em2d.DistanceFilterTable_get_version_info(self)
2845 def do_show(self, *args):
2846 """do_show(DistanceFilterTable self, _ostream out)"""
2847 return _IMP_em2d.DistanceFilterTable_do_show(self, *args)
2849 __swig_destroy__ = _IMP_em2d.delete_DistanceFilterTable
2850 __del__ =
lambda self :
None;
2852 """__str__(DistanceFilterTable self) -> std::string"""
2853 return _IMP_em2d.DistanceFilterTable___str__(self)
2856 """__repr__(DistanceFilterTable self) -> std::string"""
2857 return _IMP_em2d.DistanceFilterTable___repr__(self)
2860 return _object_cast_to_DistanceFilterTable(o)
2861 get_from = staticmethod(get_from)
2863 DistanceFilterTable_swigregister = _IMP_em2d.DistanceFilterTable_swigregister
2864 DistanceFilterTable_swigregister(DistanceFilterTable)
2866 class IntsOrder(_object):
2867 """Proxy of C++ IMP::em2d::IntsOrder class"""
2868 __swig_setmethods__ = {}
2869 __setattr__ =
lambda self, name, value: _swig_setattr(self, IntsOrder, name, value)
2870 __swig_getmethods__ = {}
2871 __getattr__ =
lambda self, name: _swig_getattr(self, IntsOrder, name)
2872 __repr__ = _swig_repr
2873 def __call__(self, *args):
2874 """__call__(IntsOrder self, IMP::Ints const & a, IMP::Ints const & b) -> bool"""
2875 return _IMP_em2d.IntsOrder___call__(self, *args)
2878 """__init__(IMP::em2d::IntsOrder self) -> IntsOrder"""
2879 this = _IMP_em2d.new_IntsOrder()
2880 try: self.this.append(this)
2881 except: self.this = this
2882 __swig_destroy__ = _IMP_em2d.delete_IntsOrder
2883 __del__ =
lambda self :
None;
2884 IntsOrder_swigregister = _IMP_em2d.IntsOrder_swigregister
2885 IntsOrder_swigregister(IntsOrder)
2888 """Proxy of C++ IMP::em2d::RigidBodiesImageFitRestraint class"""
2889 __swig_setmethods__ = {}
2890 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2891 __setattr__ =
lambda self, name, value: _swig_setattr(self, RigidBodiesImageFitRestraint, name, value)
2892 __swig_getmethods__ = {}
2893 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2894 __getattr__ =
lambda self, name: _swig_getattr(self, RigidBodiesImageFitRestraint, name)
2895 def get_version_info(self):
2896 """get_version_info(RigidBodiesImageFitRestraint self) -> VersionInfo"""
2897 return _IMP_em2d.RigidBodiesImageFitRestraint_get_version_info(self)
2899 __swig_destroy__ = _IMP_em2d.delete_RigidBodiesImageFitRestraint
2900 __del__ =
lambda self :
None;
2901 def __init__(self, *args):
2902 """__init__(IMP::em2d::RigidBodiesImageFitRestraint self, ScoreFunction scf, IMP::core::RigidBodies const & rbs, Image img) -> RigidBodiesImageFitRestraint"""
2903 this = _IMP_em2d.new_RigidBodiesImageFitRestraint(*args)
2904 try: self.this.append(this)
2905 except: self.this = this
2906 def set_projecting_parameters(self, *args):
2907 """set_projecting_parameters(RigidBodiesImageFitRestraint self, ProjectingParameters p)"""
2908 return _IMP_em2d.RigidBodiesImageFitRestraint_set_projecting_parameters(self, *args)
2910 def set_orientations(self, *args):
2911 """set_orientations(RigidBodiesImageFitRestraint self, RigidBody rb, IMP::algebra::Rotation3Ds const & rots)"""
2912 return _IMP_em2d.RigidBodiesImageFitRestraint_set_orientations(self, *args)
2914 def get_number_of_masks(self, *args):
2915 """get_number_of_masks(RigidBodiesImageFitRestraint self, RigidBody rb) -> unsigned int"""
2916 return _IMP_em2d.RigidBodiesImageFitRestraint_get_number_of_masks(self, *args)
2919 """__str__(RigidBodiesImageFitRestraint self) -> std::string"""
2920 return _IMP_em2d.RigidBodiesImageFitRestraint___str__(self)
2923 """__repr__(RigidBodiesImageFitRestraint self) -> std::string"""
2924 return _IMP_em2d.RigidBodiesImageFitRestraint___repr__(self)
2927 return _object_cast_to_RigidBodiesImageFitRestraint(o)
2928 get_from = staticmethod(get_from)
2930 RigidBodiesImageFitRestraint_swigregister = _IMP_em2d.RigidBodiesImageFitRestraint_swigregister
2931 RigidBodiesImageFitRestraint_swigregister(RigidBodiesImageFitRestraint)
2934 def get_unique_index(*args):
2935 """get_unique_index(Rotation3D rot) -> IMP::Ints"""
2936 return _IMP_em2d.get_unique_index(*args)
2938 """Proxy of C++ IMP::em2d::RelativePositionMover class"""
2939 __swig_setmethods__ = {}
2941 __setattr__ =
lambda self, name, value: _swig_setattr(self, RelativePositionMover, name, value)
2942 __swig_getmethods__ = {}
2944 __getattr__ =
lambda self, name: _swig_getattr(self, RelativePositionMover, name)
2945 def __init__(self, *args):
2946 """__init__(IMP::em2d::RelativePositionMover self, RigidBody d, IMP::Float max_translation, IMP::Float max_rotation) -> RelativePositionMover"""
2947 this = _IMP_em2d.new_RelativePositionMover(*args)
2948 try: self.this.append(this)
2949 except: self.this = this
2950 def add_internal_transformations(self, *args):
2951 """add_internal_transformations(RelativePositionMover self, RigidBody d, IMP::algebra::Transformation3Ds transforms)"""
2952 return _IMP_em2d.RelativePositionMover_add_internal_transformations(self, *args)
2954 def set_random_move_probability(self, *args):
2955 """set_random_move_probability(RelativePositionMover self, IMP::Float p)"""
2956 return _IMP_em2d.RelativePositionMover_set_random_move_probability(self, *args)
2958 __swig_destroy__ = _IMP_em2d.delete_RelativePositionMover
2959 __del__ =
lambda self :
None;
2961 """__str__(RelativePositionMover self) -> std::string"""
2962 return _IMP_em2d.RelativePositionMover___str__(self)
2965 """__repr__(RelativePositionMover self) -> std::string"""
2966 return _IMP_em2d.RelativePositionMover___repr__(self)
2969 return _object_cast_to_RelativePositionMover(o)
2970 get_from = staticmethod(get_from)
2972 RelativePositionMover_swigregister = _IMP_em2d.RelativePositionMover_swigregister
2973 RelativePositionMover_swigregister(RelativePositionMover)
2976 """Proxy of C++ IMP::em2d::DummyRestraint class"""
2977 __swig_setmethods__ = {}
2978 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2979 __setattr__ =
lambda self, name, value: _swig_setattr(self, DummyRestraint, name, value)
2980 __swig_getmethods__ = {}
2981 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2982 __getattr__ =
lambda self, name: _swig_getattr(self, DummyRestraint, name)
2983 def __init__(self, *args):
2984 """__init__(IMP::em2d::DummyRestraint self, Particle p, Particle q) -> DummyRestraint"""
2985 this = _IMP_em2d.new_DummyRestraint(*args)
2986 try: self.this.append(this)
2987 except: self.this = this
2988 def show(self, *args):
2990 show(DummyRestraint self, _ostream out=std::cout)
2991 show(DummyRestraint self)
2993 return _IMP_em2d.DummyRestraint_show(self, *args)
2995 def do_get_inputs(self):
2996 """do_get_inputs(DummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2997 return _IMP_em2d.DummyRestraint_do_get_inputs(self)
2999 def get_version_info(self):
3000 """get_version_info(DummyRestraint self) -> VersionInfo"""
3001 return _IMP_em2d.DummyRestraint_get_version_info(self)
3003 __swig_destroy__ = _IMP_em2d.delete_DummyRestraint
3004 __del__ =
lambda self :
None;
3006 """__str__(DummyRestraint self) -> std::string"""
3007 return _IMP_em2d.DummyRestraint___str__(self)
3010 """__repr__(DummyRestraint self) -> std::string"""
3011 return _IMP_em2d.DummyRestraint___repr__(self)
3014 return _object_cast_to_DummyRestraint(o)
3015 get_from = staticmethod(get_from)
3017 DummyRestraint_swigregister = _IMP_em2d.DummyRestraint_swigregister
3018 DummyRestraint_swigregister(DummyRestraint)
3021 """Proxy of C++ IMP::em2d::ParticlesDummyRestraint class"""
3022 __swig_setmethods__ = {}
3023 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3024 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticlesDummyRestraint, name, value)
3025 __swig_getmethods__ = {}
3026 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3027 __getattr__ =
lambda self, name: _swig_getattr(self, ParticlesDummyRestraint, name)
3028 def __init__(self, *args):
3029 """__init__(IMP::em2d::ParticlesDummyRestraint self, SingletonContainer sc) -> ParticlesDummyRestraint"""
3030 this = _IMP_em2d.new_ParticlesDummyRestraint(*args)
3031 try: self.this.append(this)
3032 except: self.this = this
3033 def show(self, *args):
3035 show(ParticlesDummyRestraint self, _ostream out=std::cout)
3036 show(ParticlesDummyRestraint self)
3038 return _IMP_em2d.ParticlesDummyRestraint_show(self, *args)
3040 def do_get_inputs(self):
3041 """do_get_inputs(ParticlesDummyRestraint self) -> IMP::kernel::ModelObjectsTemp"""
3042 return _IMP_em2d.ParticlesDummyRestraint_do_get_inputs(self)
3044 def get_version_info(self):
3045 """get_version_info(ParticlesDummyRestraint self) -> VersionInfo"""
3046 return _IMP_em2d.ParticlesDummyRestraint_get_version_info(self)
3048 __swig_destroy__ = _IMP_em2d.delete_ParticlesDummyRestraint
3049 __del__ =
lambda self :
None;
3051 """__str__(ParticlesDummyRestraint self) -> std::string"""
3052 return _IMP_em2d.ParticlesDummyRestraint___str__(self)
3055 """__repr__(ParticlesDummyRestraint self) -> std::string"""
3056 return _IMP_em2d.ParticlesDummyRestraint___repr__(self)
3059 return _object_cast_to_ParticlesDummyRestraint(o)
3060 get_from = staticmethod(get_from)
3062 ParticlesDummyRestraint_swigregister = _IMP_em2d.ParticlesDummyRestraint_swigregister
3063 ParticlesDummyRestraint_swigregister(ParticlesDummyRestraint)
3066 """Proxy of C++ std::pair<(IMP::algebra::Transformation2D,double)> class"""
3067 __swig_setmethods__ = {}
3068 __setattr__ =
lambda self, name, value: _swig_setattr(self, ResultAlign2D, name, value)
3069 __swig_getmethods__ = {}
3070 __getattr__ =
lambda self, name: _swig_getattr(self, ResultAlign2D, name)
3071 __repr__ = _swig_repr
3072 def __init__(self, *args):
3074 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self) -> ResultAlign2D
3075 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, Transformation2D first, double second) -> ResultAlign2D
3076 __init__(std::pair<(IMP::algebra::Transformation2D,double)> self, ResultAlign2D p) -> ResultAlign2D
3078 this = _IMP_em2d.new_ResultAlign2D(*args)
3079 try: self.this.append(this)
3080 except: self.this = this
3081 __swig_setmethods__[
"first"] = _IMP_em2d.ResultAlign2D_first_set
3082 __swig_getmethods__[
"first"] = _IMP_em2d.ResultAlign2D_first_get
3083 if _newclass:first = _swig_property(_IMP_em2d.ResultAlign2D_first_get, _IMP_em2d.ResultAlign2D_first_set)
3084 __swig_setmethods__[
"second"] = _IMP_em2d.ResultAlign2D_second_set
3085 __swig_getmethods__[
"second"] = _IMP_em2d.ResultAlign2D_second_get
3086 if _newclass:second = _swig_property(_IMP_em2d.ResultAlign2D_second_get, _IMP_em2d.ResultAlign2D_second_set)
3087 def __len__(self):
return 2
3088 def __repr__(self):
return str((self.first, self.second))
3089 def __getitem__(self, index):
3094 def __setitem__(self, index, val):
3099 __swig_destroy__ = _IMP_em2d.delete_ResultAlign2D
3100 __del__ =
lambda self :
None;
3101 ResultAlign2D_swigregister = _IMP_em2d.ResultAlign2D_swigregister
3102 ResultAlign2D_swigregister(ResultAlign2D)
3105 def _do_hierarchical_clustering_single_linkage(*args):
3106 """_do_hierarchical_clustering_single_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3107 return _IMP_em2d._do_hierarchical_clustering_single_linkage(*args)
3109 def _do_hierarchical_clustering_complete_linkage(*args):
3110 """_do_hierarchical_clustering_complete_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3111 return _IMP_em2d._do_hierarchical_clustering_complete_linkage(*args)
3113 def _do_hierarchical_clustering_average_distance_linkage(*args):
3114 """_do_hierarchical_clustering_average_distance_linkage(IMP::FloatsList const & distances) -> ClusterSet"""
3115 return _IMP_em2d._do_hierarchical_clustering_average_distance_linkage(*args)
3116 do_hierarchical_clustering_single_linkage = _do_hierarchical_clustering_single_linkage
3117 do_hierarchical_clustering_complete_linkage = _do_hierarchical_clustering_complete_linkage
3118 do_hierarchical_clustering_average_distance_linkage = _do_hierarchical_clustering_average_distance_linkage
3121 def get_module_version():
3122 """get_module_version() -> std::string const"""
3123 return _IMP_em2d.get_module_version()
3126 """get_example_path(std::string fname) -> std::string"""
3127 return _IMP_em2d.get_example_path(*args)
3130 """get_data_path(std::string fname) -> std::string"""
3131 return _IMP_em2d.get_data_path(*args)
3132 import _version_check
3133 _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)
std::pair< algebra::Transformation2D, double > ResultAlign2D
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)
See IMP.container for more information.
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)
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.
See IMP.cgal for more information.
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.
See IMP.base for more information.
void get_autocorrelation2d(const cv::Mat &m, cv::Mat &corr)
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)
See IMP.gsl for more information.
double get_rotation_error(const RegistrationResult &rr1, const RegistrationResult &rr2)
ScoreStates maintian invariants in the Model.
See IMP.score_functor for more information.
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)
See IMP.statistics for more information.
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)
See IMP.kernel for more information.
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.
See IMP.em for more information.
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)
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)
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
void do_dilate_and_shrink_warp(cv::Mat &m, const cv::Mat &greyscale, cv::Mat &kernel)
(U. Adiga, 2005)
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)
See IMP.core for more information.
See IMP.algebra for more information.
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)
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)
See IMP.display for more information.
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
See IMP.rmf for more information.
See IMP.domino for more information.
void get_spectrum(const cv::Mat &m, cv::Mat &real, cv::Mat &imag)