test_liop.c
Go to the documentation of this file.
00001 #include <vl/liop.h>
00002 #include <vl/generic.h>
00003 #include <stdio.h>
00004 #include <vl/mathop.h>
00005 #include <vl/imopv.h>
00006 #include <math.h>
00007 
00008 int main(){
00009   vl_int i ;
00010   VlLiopDesc * liop ;
00011   vl_size size = 11*11 ;
00012   float mat[] = {
00013     6,6,6,6,6,6,6,6,6,6,6,
00014     6,6,6,5,4,4,4,5,6,6,6,
00015     6,6,5,4,3,3,3,4,5,6,6,
00016     6,5,4,3,2,2,2,3,4,5,6,
00017     6,4,3,2,2,1,2,2,3,4,6,
00018     6,4,3,2,1,1,1,2,3,4,6,
00019     6,4,3,2,2,1,2,2,3,4,6,
00020     6,5,4,3,2,2,2,3,4,5,6,
00021     6,6,5,4,3,3,3,4,5,6,6,
00022     6,6,6,5,4,4,4,5,6,6,6,
00023     6,6,6,6,6,6,6,6,6,6,6};
00024   float * patch = vl_malloc(sizeof(float)*size);
00025 
00026   for(i = 0; i < (signed)size; i++){
00027     patch[i] = mat[i];
00028   }
00029 
00030   liop = vl_liopdesc_new(4,6,2,11);
00031 
00032   vl_liopdesc_delete(liop) ;
00033   vl_free(patch) ;
00034 }
00035 
00036 
00037 
00038 


libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:51