#include <HxImageSeqTiedSvt.h>
Inheritance diagram for HxImageSeqTiedSvt::
Public Types | |
typedef POA_HxCorba::ImageSeq_tie< HxImageSeqTiedSvt > | TieT |
typedef HxImageSeq | HxT |
typedef HxCorba::ImageSeq | CorbaT |
Public Methods | |
HxImageSeqTiedSvt (const HxImageSeq &obj) | |
~HxImageSeqTiedSvt () | |
void | destroy () |
virtual HxCorba::Sizes | frameSizes () |
virtual HxCorba::ImageRep_ptr | getFrame (CORBA::Long frameNr) |
virtual HxCorba::RgbSeq * | getRgb2d (CORBA::Long frameNr, const char *displayMode) |
virtual void | fillRgb2d (CORBA::Long frameNr, HxCorba::RgbBuffer_ptr buf, const char *displayMode) |
virtual HxCorba::ImageSeqDisplayer_ptr | getDisplayer () |
virtual HxCorba::VxSegmentation_ptr | findCuts (HxCorba::TagList_ptr tags) |
|
|
|
|
|
|
|
00027 : HxImageSeq(obj) 00028 { 00029 } |
|
00032 { 00033 //std::cout << "~HxImageSeqTiedSvt" << std::endl; 00034 } |
|
00038 { 00039 PortableServer::ObjectId_var myOid = 00040 HxServer::instance()->getCurrentObjectId(); 00041 00042 HxServer::instance()->unregisterServant(myOid); 00043 } |
|
00047 { 00048 HxCorba::Sizes result = { frameWidth(), frameHeight(), frameDepth() }; 00049 return result; 00050 } |
|
00055 { 00056 HxImageRep resImg = HxImageSeq::getFrame(n); 00057 //std::cout << "GetFrame(" << n << ")..." << std::endl; 00058 return HxRegisterTiedServant<HxImageRepTiedSvt>(resImg); 00059 } |
|
00063 { 00064 HxRgbBuffer tmpBuf(frameWidth() * frameHeight()); 00065 HxImageSeq::getRgb2d(frameNr, tmpBuf.getBuffer(), displayMode); 00066 return tmpBuf.makeRgbSeq(); 00067 } |
|
00072 { 00073 HxRgbBuffer tmpBuf(buf, frameWidth() * frameHeight()); 00074 HxImageSeq::getRgb2d(frameNr, tmpBuf.getBuffer(), displayMode); 00075 } |
|
00079 { 00080 PortableServer::Servant servant = new HxImageSeqDisplayer(*this); 00081 CORBA::Object_ptr obj = HxServer::instance()->registerServant(servant); 00082 00083 servant->_remove_ref(); 00084 return HxCorba::ImageSeqDisplayer::_narrow(obj); 00085 } |
|
00090 { 00091 VideoSeg vs(*this); 00092 00093 HxTagList empty_tl; 00094 HxTagList& tl = HxGetTiedObject<HxTagListTiedSvt>(tags, empty_tl); 00095 00096 int lengthSlidWind = HxGetTag<int>(tl, "lengthSlidWind", 3); 00097 double proportion = HxGetTag<double>(tl, "proportion", 1.73); 00098 double threshold = HxGetTag<double>(tl, "threshold", 0.32); 00099 00100 vs.FindCut(lengthSlidWind, proportion, threshold); 00101 00102 VxSegmentList segList = vs.ToVxSegmentList(); 00103 segList.pushComment(" Shot and Effect detection Version 0.0 "); 00104 00105 return HxRegisterTiedServant<VxSegmentationTiedSvt>(segList); 00106 } |