######################################################################################## ### ### ### Various Advanced Motion Estimation Research Development Package ### ### ### ### Date : 18 August 2000 ### ### Last Updated: 24-12-2003 ### ### ### ### You are allowed to use this package ONLY for research and academic purposes. ### ### ### ### No program without errors and there is no program cannot be improved Please ### ### send comments to: eelmpo@cityu.edu.hk ### ### ### ### By: Dr. L.M. Po ### ### Mr. C.K. Cheung ### ### Dr. C.H. Cheung ### ### Mr. C.W. Lam ### ### ### ######################################################################################## The description of Motion Estimation Methods in this package: method 1: Full search (FS) method 2: new full search (NFS) method 3: Three step search (3SS) method 4: Four step search (4SS) method 5: new 3 step search (N3SS) method 6: bbgd (BBGD) method 7: Hierarchical Search Algorithm (HSA) method 8: coherent search (CS) method 9: Partial distortion full search (PDFS) method 10: liu full search (LFS) method 11: ucbd search (UCBD) method 12: Cross Diamond search (CD) method 13: Small-Cross-Diamond search (SCD) method 14: New Cross Diamond search (NCD) method 15: Kite-Cross-Diamond search (KCD) Implemation ----------- Frame search implementation: Method 1 to 15. Field search implementation: Method 1 to 7. There are some parameter needed to be set/known before compiled --------------------------------------------------------------- IMAGE_PATH : String of absolute path containing the pictures to be motion estimated. e.g. "/home/username/images" RESULT_PATH: String of absolute path for storing a reconstructed picture and data for plotting chart. e.g. "/home/username/result15" CAPTURE_NO : Reconstructed frame that you want to captured NO_CAPTURE : Capture function disabled. CIF : =0, input pictures are not CIF format. =1, input pictures are CIF format. FIELD : =0, input pictures are not FIELD. : =1, input pictures are FIELD. HALF : =1, Motion estimation will use half-pixel at the final step. : =0, Motion estimation will not use half-pixel at the final step. START_NO : =1, Start frame number. END_NO : =39, End frame number. CAPTURE_NO : =30, Frame number to be captured. NO_CAPTURE : If defined, capture function is disable. OPC : If defined, operation-counts (add and multiply) will be recorded. BLOCK_WIDTH : 16, Block width of each motion block (motion vector). BLOCK_HEIGHT: 16, Block height of each motion block (motion vector). MAX_INT : 255*BLOCK_WIDTH*BLOCK_HEIGHT+1, Max. integer that is allowed in the program, i.e. 65281 in this case. MAX_DISP : 7, Search window size, +/-7. ODD : 0, index for odd field. EVEN : 1, index for even field. In order to mimize the input parameters when entering the argument to run with, there is a tradeoff to set the width and height of the input image sequences. You can re-write it for more portable. There should be FIELD, CIF(mostly) or non-CIF(we use CCIR601) format. (ONLY one of them.) The sequences used in FIELD are: tt.NNN - table tennis (720x486) football.NNN - football (720x486) fg.NNN - fg (720x486) The sequences used in CIF are: tennis.NNN - table tennis (360x240) football.NNN - football (360x240) saleman.NNN - salesman (360x288) missa.NNN - Miss America (256x256) garden.NNN - Garden (352x240) claire.NNN - claire (310x280) The sequences used in CCIR601 or non-CIF are: tennis.NNN - table tennis (720x486) football.NNN - football (720x486) garden.NNN - Garden (720x486) NNN is the frame number, e.g. tennis.001 to tennis.040 Compilation and run ------------------- Default is use "gcc" with optimization level 3 in Sun UltraSparc workstation: CC=gcc OPTIONS=-O3 -msupersparc Just type "make" at your command prompt. Type "search " for selecting the picture sequence and method. e.g. search football 7