⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qccvidmotionestimationfullsearch.3

📁 QccPack-0.54-1 released (2007-04-30) is being developed and tested on Fedora Core Linux. QccPack pro
💻 3
字号:
.TH QCCVIDMOTIONESTIMATIONFULLSEARCH 3 "QCCPACK" "".SH NAMEQccVIDMotionEstimationMAE,QccVIDMotionEstimationExtractBlock,QccVIDMotionEstimationInsertBlock,QccVIDMotionEstimationFullSearch,QccVIDMotionEstimationCalcReferenceFrameSize,QccVIDMotionEstimationCreateReferenceFrame,QccVIDMotionEstimationCreateCompensatedFrame \- routines forfull-search, block-based motion estimation and compensation.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "double QccVIDMotionEstimationMAE(QccMatrix " current_block ", QccMatrix " reference_block ", int " block_size );.br.sp.BI "int QccVIDMotionEstimationExtractBlock(const QccIMGImageComponent *" image ", double " row ", double " col ", QccMatrix " block ", int " block_size ", int " subpixel_accuracy );.br.sp.BI "int QccVIDMotionEstimationInsertBlock(QccIMGImageComponent *" image ", double " row ", double " col ", const QccMatrix " block ", int " block_size ", int " subpixel_accuracy );.br.sp.BI "int QccVIDMotionEstimationFullSearch(const QccIMGImageComponent *" current_frame ", const QccIMGImageComponent *" reference_frame ", QccIMGImageComponent *" motion_vectors_horizontal ", QccIMGImageComponent *" motion_vectors_vertical ", int " block_size ", int " window_size ", int " subpixel_accuracy );.br.sp.BI "int QccVIDMotionEstimationCalcReferenceFrameSize(int " num_rows ", int " num_cols ", int *" reference_num_rows ", int *" reference_num_cols ", int " subpixel_accuracy );.br.sp.BI "int QccVIDMotionEstimationCreateReferenceFrame(const QccIMGImageComponent *" current_frame ", QccIMGImageComponent *" reference_frame ", int " subpixel_accuracy ", const QccFilter *" filter1 ", const QccFilter *" filter2 ", const QccFilter *" filter3 );.br.sp.BI "int QccVIDMotionEstimationCreateCompensatedFrame(QccIMGImageComponent *" motion_compensated_frame ", const QccIMGImageComponent *" reference_frame ", const QccIMGImageComponent *" motion_vectors_horizontal ", const QccIMGImageComponent *" motion_vectors_vertical ", int " block_size ", int " subpixel_accuracy );.SH DESCRIPTION.BR QccVIDMotionEstimationMAE()calculates the mean absolute error (MAE) between.I current_blockand.I reference_blockwhere both blocks havea block size of.IR block_size by.IR block_size ..LP.BR QccVIDMotionEstimationExtractBlock()extracts a.I blockof size.I block_sizeby.I block_sizefrom.IR image .The block is extracted from location.RI ( row ", " col ),where this location is the upper-left corner of the block to extact..I subpixel_accuracyis one of.BR QCCVID_ME_FULLPIXEL ,.BR QCCVID_ME_HALFPIXEL ,.BR QCCVID_ME_QUARTERPIXEL ,or .BR QCCVID_ME_EIGHTHPIXEL ,indicating full-, half-, quarter-, or eighth-pixel accuracy.Unless the accuracy is full-pixel,.I imageis assumed to be interpolated to support motion-estimation atthe specified accuracy (using.BR QccVIDMotionEstimationCreateReferenceFrame()described below).Unless the accuracy is full-pixel,.I rowand.I colrefer to the location in the original image, not theinterpolated image..LP.BR QccVIDMotionEstimationInsertBlock()does the inverse of.BR QccVIDMotionEstimationExtractBlock() ;that is, it inserts.I blockinto the specified location in.IR image ..LP.BR QccVIDMotionEstimationFullSearch()does full-search, block-based motion estimation in.IR current_frameusing.IR reference_frameas the reference frame. That is,for each block in.IR current_frame ,every block in a window surrounding the current-block locationin.IR reference_frameis searched, and the best-matching block chosen.The motion vectors indicating the displacement from the blocksin.I current_frameto their matching blocks in.IR reference_frameare returned in.I motion_vectors_horizontaland.IR motion_vectors_vertical ,which are the horizontal and vertical componentsof the motion vectors, respectively..I block_sizegives the size of the blocks to match..I window_sizegives the size of the window to search in.IR reference_frame.RI ( window_sizeshould be positive, so that the search window is.I -window_sizeto.IR +window_size ) ..I subpixel_accuracyis one of.BR QCCVID_ME_FULLPIXEL ,.BR QCCVID_ME_HALFPIXEL ,.BR QCCVID_ME_QUARTERPIXEL ,or .BR QCCVID_ME_EIGHTHPIXEL ,indicating full-, half-, quarter-, or eighth-pixel motion-estimation accuracy.It is assumed that.IR reference_frameis already interpolated to support the specified accuracy using.BR QccVIDMotionEstimationCreateReferenceFrame() ..LP.BR QccVIDMotionEstimationCalcReferenceFrameSize()returns the size that a reference frame needs to be to supportmotion-estimation accuracy of the specified.IR subpixel_accuracy ..I num_rowsand.I num_colsgive the original size of the frame;the size of the interpolated reference frame is returned in.I reference_num_rowsand.IR reference_num_cols ..LP.BR QccVIDMotionEstimationCreateReferenceFrame()interpolates.I current_frameinto.IR reference_frame at the specified.IR subpixel_accuracy .If.IR subpixel_accuracyis.BR QCCVID_ME_FULLPIXEL ,.I current_frameis simply copied into.IR reference_frame .If.IR subpixel_accuracyis.BR QCCVID_ME_HALFPIXEL ,and.IR filter1is not.BR NULL ,then.IR current_frameis filtered into.IR reference_frameusing.BR QccIMGImageComponentInterpolateFilter (3).On the other hand, if.I filter1is.BR NULL ,then bilinear interpolation is performed via.BR QccIMGImageComponentInterpolateBilinear (3).Similarly, if.IR subpixel_accuracyis.BR QCCVID_ME_QUARTERPIXEL ,then.IR filter1and.IR filter2determine whether bilinear or filtered interpolation isused to go from full-pixel to half-pixel accuracy.RI ( filter1 ),and from half-pixel to quarter-pixel accuracy.RI ( filter2 ).Likewise,.IR filter3determines whether bilinear or filtered interpolationis used in going from quarter-pixel to eighth-pixel accuracy when.IR subpixel_accuracyis.BR QCCVID_ME_EIGHTHPIXEL ..LP.BR QccVIDMotionEstimationCreateCompensatedFrame()extracts blocks from.IR reference_frameto create.IR motion_compensated_frame ,where the blocks are extracted according to the specified motion field asgiven by.IR motion_vectors_horizontaland.IR motion_vectors_vertical ..I block_sizegives the size of the blocks, and.IR subpixel_accuracyindicates the subpixel accuracy of.IR reference_frame .It is assumed that.IR reference_frameis interpolated with.BR QccVIDMotionEstimationCreateReferenceFrame()to the specified.IR subpixel_accuracy ..SH "RETURN VALUE"These routines return 0 on success, and 1 on failure..SH "SEE ALSO".BR QccVIDMotionVectorsEncode (3),.BR QccVIDMotionVectorsDecode (3),.BR memc (1),.BR QccPackVID (3),.BR QccPackENT (3),.BR QccPack (3).SH AUTHORCopyright (C) 1997-2007  James E. Fowler.\"  The programs herein are free software; you can redistribute them an.or.\"  modify them under the terms of the GNU General Public License.\"  as published by the Free Software Foundation; either version 2.\"  of the License, or (at your option) any later version..\"  .\"  These programs are distributed in the hope that they will be useful,.\"  but WITHOUT ANY WARRANTY; without even the implied warranty of.\"  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the.\"  GNU General Public License for more details..\"  .\"  You should have received a copy of the GNU General Public License.\"  along with these programs; if not, write to the Free Software.\"  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -