1 ubyte[] img_data = 2 [ 3 1,2,5,8, 4 4,3,1,1 5 ]; 6 7 ubyte[] hi_x_data = [ 16, 9 ]; 8 ubyte[] hi_y_data = [ 5, 5, 6, 9 ]; 9 10 auto img = Image( ivec2(4,2), ElemInfo( 1, DataType.UBYTE ), img_data ); 11 auto hi_x = Image( ivec!1(2), ElemInfo( 1, DataType.UBYTE ), hi_x_data ); 12 auto hi_y = Image( ivec!1(4), ElemInfo( 1, DataType.UBYTE ), hi_y_data ); 13 14 assert( imHistoConv(img,0) == hi_x ); 15 assert( imHistoConv(img,1) == hi_y );
get histogram convolution