Last change
on this file since 2884 was 2613, checked in by Takeshi Nakazato, 12 years ago |
New Development: Yes
JIRA Issue: Yes CAS-2825
Ready for Test: No
Interface Changes: Yes
What Interface Changed: added new python module sd.edgemarker
Test Programs: not available
Put in Release Notes: Yes
Module(s): Module Names change impacts.
Description: Describe your changes here...
New python module edgemarker is available. The edgemarker is a tool to
detect edge of observed area and mark data near edge as OFF. It can be
used to calibrate OTF data without explicit OFF scan.
|
File size:
967 bytes
|
Rev | Line | |
---|
[2613] | 1 | //#---------------------------------------------------------------------------
|
---|
| 2 | //# python_EdgeMarker.cc: python exposure of c++ EdgeMarkerWrapper class
|
---|
| 3 | //#---------------------------------------------------------------------------
|
---|
| 4 | #include <boost/python.hpp>
|
---|
| 5 | #include <boost/python/args.hpp>
|
---|
| 6 |
|
---|
| 7 | #include <string>
|
---|
| 8 | #include <vector>
|
---|
| 9 |
|
---|
| 10 | #include "EdgeMarkerWrapper.h"
|
---|
| 11 | #include "ScantableWrapper.h"
|
---|
| 12 |
|
---|
| 13 | using namespace boost::python;
|
---|
| 14 |
|
---|
| 15 | namespace asap {
|
---|
| 16 | namespace python {
|
---|
| 17 |
|
---|
| 18 | void python_EdgeMarker() {
|
---|
| 19 | class_<EdgeMarkerWrapper>("_edgemarker")
|
---|
| 20 | .def( init <> () )
|
---|
| 21 | .def( init < const bool > () )
|
---|
| 22 | .def("_setdata", &EdgeMarkerWrapper::setdata)
|
---|
| 23 | .def("_setoption", &EdgeMarkerWrapper::setoption)
|
---|
| 24 | .def("_get", &EdgeMarkerWrapper::get)
|
---|
| 25 | .def("_examine", &EdgeMarkerWrapper::examine)
|
---|
| 26 | .def("_detect", &EdgeMarkerWrapper::detect)
|
---|
| 27 | // .def("_reset", &EdgeMarkerWrapper::reset)
|
---|
| 28 | .def("_mark", &EdgeMarkerWrapper::mark)
|
---|
| 29 | ;
|
---|
| 30 |
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | } // python
|
---|
| 34 | } // asap
|
---|
Note:
See
TracBrowser
for help on using the repository browser.