Leptonica 1.54
Файл src/arithlow.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "allheaders.h"

Функции

void addConstantGrayLow (l_uint32 *data, l_int32 w, l_int32 h, l_int32 d, l_int32 wpl, l_int32 val)
void multConstantGrayLow (l_uint32 *data, l_int32 w, l_int32 h, l_int32 d, l_int32 wpl, l_float32 val)
void addGrayLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls)
void subtractGrayLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls)
void thresholdToValueLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_int32 threshval, l_int32 setval)
void finalAccumulateLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 offset)
void finalAccumulateThreshLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 offset, l_uint32 threshold)
void accumulateLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 d, l_int32 wpls, l_int32 op)
void multConstAccumulateLow (l_uint32 *data, l_int32 w, l_int32 h, l_int32 wpl, l_float32 factor, l_uint32 offset)
void absDifferenceLow (l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas1, l_uint32 *datas2, l_int32 d, l_int32 wpls)

Функции

void absDifferenceLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  wpld,
l_uint32 datas1,
l_uint32 datas2,
l_int32  d,
l_int32  wpls 
)

absDifferenceLow()

Finds the absolute value of the difference of each pixel, for 8 and 16 bpp gray and for 32 bpp rgb. For 32 bpp, the differences are found for each of the RGB components separately, and the LSB component is ignored. The results are written into datad.

void accumulateLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  wpld,
l_uint32 datas,
l_int32  d,
l_int32  wpls,
l_int32  op 
)
void addConstantGrayLow ( l_uint32 data,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpl,
l_int32  val 
)
void addGrayLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpld,
l_uint32 datas,
l_int32  wpls 
)
void finalAccumulateLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpld,
l_uint32 datas,
l_int32  wpls,
l_uint32  offset 
)
void finalAccumulateThreshLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  wpld,
l_uint32 datas,
l_int32  wpls,
l_uint32  offset,
l_uint32  threshold 
)
void multConstAccumulateLow ( l_uint32 data,
l_int32  w,
l_int32  h,
l_int32  wpl,
l_float32  factor,
l_uint32  offset 
)
void multConstantGrayLow ( l_uint32 data,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpl,
l_float32  val 
)
void subtractGrayLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpld,
l_uint32 datas,
l_int32  wpls 
)
void thresholdToValueLow ( l_uint32 datad,
l_int32  w,
l_int32  h,
l_int32  d,
l_int32  wpld,
l_int32  threshval,
l_int32  setval 
)