#include <HxHistogramTiedSvt.h>
Inheritance diagram for HxHistogramTiedSvt::

Public Types | |
| typedef POA_HxCorba::Histogram_tie< HxHistogramTiedSvt > | TieT |
| typedef HxHistogram | HxT |
| typedef HxCorba::Histogram | CorbaT |
| typedef HxCorba::HistogramList | SeqT |
Public Methods | |
| HxHistogramTiedSvt (const HxHistogram &obj) | |
| virtual | ~HxHistogramTiedSvt () |
| void | destroy () |
| CORBA::Double | get1 (CORBA::Long bin1) |
| CORBA::Double | get2 (CORBA::Long bin1, CORBA::Long bin2) |
| CORBA::Double | get3 (CORBA::Long bin1, CORBA::Long bin2, CORBA::Long bin3) |
| CORBA::Double | maxValIndex (CORBA::Long_out index) |
| HxCorba::BinDataSequence * | getDataDouble () |
| void | render3d (HxCorba::RgbBuffer_ptr buf, CORBA::Long dataWidth, CORBA::Long dataHeight, CORBA::Double elevation, CORBA::Double alpha, CORBA::Double threshold) |
| HxCorba::Histogram_ptr | smooth (CORBA::Double sigma) |
| HxCorba::HistogramModeSeq * | modes () |
| HxCorba::Histogram_ptr | normalize (CORBA::Double weight) |
| CORBA::Double | intersection (HxCorba::Histogram_ptr h) |
| CORBA::Double | chiSquare (HxCorba::Histogram_ptr h) |
| CORBA::Double | chiSquareNorm (HxCorba::Histogram_ptr h) |
| HxCorba::Histogram_ptr | threshold (CORBA::Double valThreshold) |
| HxCorba::Histogram_ptr | reduceRange (CORBA::Long binMin1, CORBA::Long binMax1, CORBA::Long binMin2, CORBA::Long binMax2, CORBA::Long binMin3, CORBA::Long binMax3) |
| HxCorba::Histogram_ptr | reduceRangeVal (CORBA::Double binValMin1, CORBA::Double binValMax1, CORBA::Double binValMin2, CORBA::Double binValMax2, CORBA::Double binValMin3, CORBA::Double binValMax3) |
| HxCorba::Histogram_ptr | to1D (CORBA::Long dim) |
| void | put () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00017 : HxHistogram(obj) 00018 { 00019 } |
|
|
00022 {
00023 //std::cout << "~HxHistogramTiedSvt" << std::endl;
00024 }
|
|
|
00028 {
00029 PortableServer::ObjectId_var myOid =
00030 HxServer::instance()->getCurrentObjectId();
00031
00032 HxServer::instance()->unregisterServant(myOid);
00033
00034 // Who deletes the servant?
00035 // We can not delete the servant here, because this request
00036 // is still in progress. The servant has to be deleted after all its
00037 // request have been processed and after if has been removed from the POA.
00038 // If we want the ORB to delete the servant (the best option), the
00039 // servant must inherit from PortableServer::RefCountServantBase
00040 // (and the servant for HxHistogram does).
00041 }
|
|
|
00045 {
00046 return HxHistogram::get(bin1);
00047 }
|
|
||||||||||||
|
00051 {
00052 return HxHistogram::get(bin1, bin2);
00053 }
|
|
||||||||||||||||
|
00059 {
00060 return HxHistogram::get(bin1, bin2, bin3);
00061 }
|
|
|
00065 {
00066 int i;
00067 double v = HxHistogram::maxVal(&i);
00068 index = i;
00069 return v;
00070 }
|
|
|
Reimplemented from HxHistogram.
00074 {
00075 int nBins = 1;
00076 for(int i=1; i<=HxHistogram::dimensionality(); i++)
00077 nBins *= HxHistogram::dimensionSize(i);
00078
00079 CORBA::Double* data = new CORBA::Double[nBins];
00080 HxHistogram::getDataDouble((double*)data);
00081
00082 HxCorba::BinDataSequence* seq =
00083 new HxCorba::BinDataSequence(nBins, nBins, data, true);
00084
00085 return seq;
00086 }
|
|
||||||||||||||||||||||||||||
|
00093 {
00094 HxRgbBuffer tmpBuf(buf, dataWidth * dataHeight);
00095 HxHistogram::render3d(tmpBuf.getBuffer(), dataWidth, dataHeight,
00096 elevation, alpha, threshold);
00097 }
|
|
|
00126 {
00127 HxHistogram hist = HxHistogram::smooth(sigma);
00128 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00129 }
|
|
|
Reimplemented from HxHistogram.
00140 {
00141 std::list<HxVec2Double> lst = HxHistogram::modes();
00142
00143 HxCorba::HistogramModeSeq* seq = new HxCorba::HistogramModeSeq();
00144 seq->length(lst.size());
00145
00146 std::list<HxVec2Double>::const_iterator it = lst.begin();
00147 for(int i=0; it != lst.end(); i++, it++) {
00148 (*seq)[i].x = it->x();
00149 (*seq)[i].y = it->y();
00150 }
00151
00152 return seq;
00153 }
|
|
|
00133 {
00134 HxHistogram hist = HxHistogram::normalize(weight);
00135 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00136 }
|
|
|
00102 {
00103 HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00104
00105 return HxHistogram::intersection(argHist);
00106 }
|
|
|
00110 {
00111 HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00112
00113 return HxHistogram::chiSquare(argHist);
00114 }
|
|
|
00118 {
00119 HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00120
00121 return HxHistogram::chiSquareNorm(argHist);
00122 }
|
|
|
00157 {
00158 HxHistogram hist = HxHistogram::threshold(valThreshold);
00159 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00160 }
|
|
||||||||||||||||||||||||||||
|
00166 {
00167 HxHistogram hist = HxHistogram::reduceRange(
00168 bMin1,bMax1,bMin2,bMax2,bMin3,bMax3);
00169 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00170 }
|
|
||||||||||||||||||||||||||||
|
00176 {
00177 HxHistogram hist = HxHistogram::reduceRangeVal(
00178 vMin1,vMax1,vMin2,vMax2,vMin3,vMax3);
00179 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00180 }
|
|
|
00184 {
00185 HxHistogram hist = HxHistogram::to1D(dim);
00186 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00187 }
|
|
|
Reimplemented from HxHistogram.
00191 {
00192 HxHistogram::put(STD_COUT);
00193 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001