Home
last modified time | relevance | path

Searched refs:lut (Results 1 – 25 of 65) sorted by relevance

123

/external/opencv/cxcore/src/
Dcxlut.cpp51 type t0 = lut[src[i]]; \
52 type t1 = lut[src[i+1]]; \
56 t0 = lut[src[i+2]]; \
57 t1 = lut[src[i+3]]; \
64 type t0 = lut[src[i]]; \
72 type t0 = lut[src[i]*2]; \
73 type t1 = lut[src[i+1]*2 + 1]; \
81 type t0 = lut[src[i]*3]; \
82 type t1 = lut[src[i+1]*3 + 1]; \
83 type t2 = lut[src[i+2]*3 + 2]; \
[all …]
D_cxcore.h304 int dststep, CvSize size, const uchar* lut );
306 int dststep, CvSize size, const ushort* lut );
308 int dststep, CvSize size, const int* lut );
310 int dststep, CvSize size, const double* lut );
313 int dststep, CvSize size, const uchar* lut );
315 int dststep, CvSize size, const uchar* lut );
317 int dststep, CvSize size, const uchar* lut );
320 int dststep, CvSize size, const void* lut );
324 int dststep, CvSize size, const schar* lut ) in icvLUT_Transform8u_8s_C1R() argument
327 dststep, size, (const uchar*)lut ); in icvLUT_Transform8u_8s_C1R()
[all …]
/external/opencv3/3rdparty/libjasper/
Djas_cm.c81 static jas_cmreal_t jas_cmshapmatlut_lookup(jas_cmshapmatlut_t *lut, jas_cmreal_t x);
134 static void jas_cmshapmatlut_init(jas_cmshapmatlut_t *lut);
135 static int jas_cmshapmatlut_set(jas_cmshapmatlut_t *lut, jas_icccurv_t *curv);
280 lut(prof->iccprof, 0, PER, &pxformseq); in jas_cmprof_createfromiccprof()
282 lut(prof->iccprof, 1, PER, &pxformseq); in jas_cmprof_createfromiccprof()
284 lut(prof->iccprof, 0, CLR, &pxformseq); in jas_cmprof_createfromiccprof()
286 lut(prof->iccprof, 1, CLR, &pxformseq); in jas_cmprof_createfromiccprof()
288 lut(prof->iccprof, 0, SAT, &pxformseq); in jas_cmprof_createfromiccprof()
290 lut(prof->iccprof, 1, SAT, &pxformseq); in jas_cmprof_createfromiccprof()
860 static void jas_cmshapmatlut_init(jas_cmshapmatlut_t *lut) in jas_cmshapmatlut_init() argument
[all …]
/external/pdfium/third_party/lcms2-2.6/src/
Dcmslut.c1260 void BlessLUT(cmsPipeline* lut) in BlessLUT() argument
1263 if (lut ->Elements != NULL) { in BlessLUT()
1267 First = cmsPipelineGetPtrToFirstStage(lut); in BlessLUT()
1268 Last = cmsPipelineGetPtrToLastStage(lut); in BlessLUT()
1270 if (First != NULL)lut ->InputChannels = First ->InputChannels; in BlessLUT()
1271 if (Last != NULL) lut ->OutputChannels = Last ->OutputChannels; in BlessLUT()
1280 cmsPipeline* lut = (cmsPipeline*) D; in _LUTeval16() local
1285 From16ToFloat(In, &Storage[Phase][0], lut ->InputChannels); in _LUTeval16()
1287 for (mpe = lut ->Elements; in _LUTeval16()
1297 FromFloatTo16(&Storage[Phase][0], Out, lut ->OutputChannels); in _LUTeval16()
[all …]
Dcmsps2.c1051 cmsPipeline* lut = NULL; in GenerateCSA() local
1076 lut = _cmsReadInputLUT(hProfile, Intent); in GenerateCSA()
1077 if (lut == NULL) goto Error; in GenerateCSA()
1081 …if (cmsPipelineCheckAndRetreiveStages(lut, 2, cmsSigCurveSetElemType, cmsSigMatrixElemType, &Shape… in GenerateCSA()
1097 if (lut != NULL) cmsPipelineFree(lut); in GenerateCSA()
1103 if (lut != NULL) cmsPipelineFree(lut); in GenerateCSA()
/external/opencv3/modules/cudaimgproc/src/cuda/
Dclahe.cu57 __global__ void calcLutKernel(const PtrStepb src, PtrStepb lut, in calcLutKernel() argument
121 lut(ty * tilesX + tx, tid) = saturate_cast<uchar>(__float2int_rn(lutScale * lutVal)); in calcLutKernel()
124 …void calcLut(PtrStepSzb src, PtrStepb lut, int tilesX, int tilesY, int2 tileSize, int clipLimit, f… in calcLut() argument
129 calcLutKernel<<<grid, block, 0, stream>>>(src, lut, tileSize, tilesX, clipLimit, lutScale); in calcLut()
137 …__global__ void tranformKernel(const PtrStepSzb src, PtrStepb dst, const PtrStepb lut, const int2 … in tranformKernel() argument
163 res += lut(ty1 * tilesX + tx1, srcVal) * ((1.0f - xa) * (1.0f - ya)); in tranformKernel()
164 res += lut(ty1 * tilesX + tx2, srcVal) * ((xa) * (1.0f - ya)); in tranformKernel()
165 res += lut(ty2 * tilesX + tx1, srcVal) * ((1.0f - xa) * (ya)); in tranformKernel()
166 res += lut(ty2 * tilesX + tx2, srcVal) * ((xa) * (ya)); in tranformKernel()
171 …void transform(PtrStepSzb src, PtrStepSzb dst, PtrStepb lut, int tilesX, int tilesY, int2 tileSize… in transform() argument
[all …]
Dhist.cu204 const int lut = c_lut[val]; in operator ()() local
205 return __float2int_rn(scale * lut); in operator ()()
220 void equalizeHist(PtrStepSzb src, PtrStepSzb dst, const int* lut, cudaStream_t stream) in equalizeHist() argument
223 … cudaSafeCall( cudaMemcpyToSymbol(c_lut, lut, 256 * sizeof(int), 0, cudaMemcpyDeviceToDevice) ); in equalizeHist()
225 …cudaSafeCall( cudaMemcpyToSymbolAsync(c_lut, lut, 256 * sizeof(int), 0, cudaMemcpyDeviceToDevice, … in equalizeHist()
/external/opencv3/modules/imgproc/src/opencl/
Dcalc_back_project.cl48 __global int * lut, float scale, __constant float * ranges)
54 lut[x] = OUT_OF_RANGE;
62 lut[x] = OUT_OF_RANGE;
68 lut[x] = (int)convert_uchar_sat_rte(hist[0] * scale);
74 __constant int * lut,
85 int value = lut[src[src_index]];
92 __kernel void calcLUT(int hist_bins, __global int * lut, int lut_offset,
99 lut += lut_offset;
102 lut[x] = OUT_OF_RANGE;
109 lut[x] = bin >= hist_bins ? OUT_OF_RANGE : bin;
[all …]
Dclahe.cl143 const int src_offset, __global uchar * lut,
210 lut[(ty * tilesX + tx) * dstStep + tid + dst_offset] =
216 __global uchar * lut, const int lutStep, int lut_offset,
245 … res += lut[mad24(ty1 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (1.0f - ya));
246 res += lut[mad24(ty1 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (1.0f - ya));
247 res += lut[mad24(ty2 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (ya));
248 res += lut[mad24(ty2 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (ya));
/external/opencv3/3rdparty/openexr/IlmImf/
DImfPizCompressor.cpp109 unsigned short lut[USHORT_RANGE]) in forwardLutFromBitmap()
116 lut[i] = k++; in forwardLutFromBitmap()
118 lut[i] = 0; in forwardLutFromBitmap()
127 unsigned short lut[USHORT_RANGE]) in reverseLutFromBitmap()
134 lut[k++] = i; in reverseLutFromBitmap()
140 lut[k++] = 0; in reverseLutFromBitmap()
147 applyLut (const unsigned short lut[USHORT_RANGE], in applyLut()
152 data[i] = lut[data[i]]; in applyLut()
432 AutoArray <unsigned short, USHORT_RANGE> lut; in compress() local
433 unsigned short maxValue = forwardLutFromBitmap (bitmap, lut); in compress()
[all …]
/external/skia/bench/
DColorCubeBench.cpp80 uint8_t* lut = lutMemory.get(); in makeCubeData() local
85 lut[i] = ((maxIndex - i) * 255) / maxIndex; in makeCubeData()
91 SkColorSetARGB(0xFF, lut[r], lut[g], lut[b]); in makeCubeData()
/external/opencv3/modules/videostab/include/opencv2/videostab/
Dfast_marching_inl.hpp60 static const int lut[4][2] = {{-1,0}, {0,-1}, {1,0}, {0,1}}; in run() local
83 int xn = x + lut[i][0]; in run()
84 int yn = y + lut[i][1]; in run()
126 int xn = x + lut[n][0]; in run()
127 int yn = y + lut[n][1]; in run()
/external/opencv3/modules/cudaarithm/perf/
Dperf_core.cpp222 cv::Mat lut(1, 256, CV_8UC1); in PERF_TEST_P() local
223 declare.in(lut, WARMUP_RNG); in PERF_TEST_P()
227 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in PERF_TEST_P()
240 TEST_CYCLE() cv::LUT(src, lut, dst); in PERF_TEST_P()
259 cv::Mat lut(1, 256, CV_MAKE_TYPE(CV_8U, src.channels())); in PERF_TEST_P() local
260 declare.in(lut, WARMUP_RNG); in PERF_TEST_P()
264 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in PERF_TEST_P()
277 TEST_CYCLE() cv::LUT(src, lut, dst); in PERF_TEST_P()
/external/dng_sdk/source/
Ddng_linearization_info.cpp316 uint16 *lut = NULL; in dng_linearize_plane() local
323 lut = info.fLinearizationTable->Buffer_uint16 (); in dng_linearize_plane()
346 if (lut) in dng_linearize_plane()
351 x = lut [x]; in dng_linearize_plane()
403 if (lut) in dng_linearize_plane()
408 x = lut [x]; in dng_linearize_plane()
574 const uint16 *lut = fScale_buffer->Buffer_uint16 (); in Process() local
586 *dstPtr = lut [*srcPtr]; in Process()
603 *dstPtr = lut [*srcPtr]; in Process()
617 const real32 *lut = fScale_buffer->Buffer_real32 (); in Process() local
[all …]
/external/skia/gm/
Dcolorcube.cpp78 uint8_t* lut = lutMemory.get(); in make_3Dlut() local
82 lut[i] = (i * 255) / maxIndex; in make_3Dlut()
90 invR ? invLut[r] : lut[r], in make_3Dlut()
91 invG ? invLut[g] : lut[g], in make_3Dlut()
92 invB ? invLut[b] : lut[b])); in make_3Dlut()
/external/opencv3/modules/objdetect/src/
Dhog.cpp243 const float* const lut = &_lut(0,0); in computeGradient() local
325 dbuf[x] = (float)(lut[imgPtr[xmap[x+1]]] - lut[imgPtr[xmap[x-1]]]); in computeGradient()
326 dbuf[width + x] = (float)(lut[nextPtr[x1]] - lut[prevPtr[x1]]); in computeGradient()
342 … __m128 _dx0 = _mm_sub_ps(_mm_set_ps(lut[p32[0]], lut[p22[0]], lut[p12[0]], lut[p02[0]]), in computeGradient()
343 … _mm_set_ps(lut[p30[0]], lut[p20[0]], lut[p10[0]], lut[p00[0]])); in computeGradient()
344 … __m128 _dx1 = _mm_sub_ps(_mm_set_ps(lut[p32[1]], lut[p22[1]], lut[p12[1]], lut[p02[1]]), in computeGradient()
345 … _mm_set_ps(lut[p30[1]], lut[p20[1]], lut[p10[1]], lut[p00[1]])); in computeGradient()
346 … __m128 _dx2 = _mm_sub_ps(_mm_set_ps(lut[p32[2]], lut[p22[2]], lut[p12[2]], lut[p02[2]]), in computeGradient()
347 … _mm_set_ps(lut[p30[2]], lut[p20[2]], lut[p10[2]], lut[p00[2]])); in computeGradient()
349 …__m128 _dy0 = _mm_sub_ps(_mm_set_ps(lut[nextPtr[x3]], lut[nextPtr[x2]], lut[nextPtr[x1]], lut[next… in computeGradient()
[all …]
/external/opencv3/modules/cudaarithm/test/
Dtest_core.cpp324 cv::Mat lut = randomMat(cv::Size(256, 1), CV_8UC1); in CUDA_TEST_P() local
326 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in CUDA_TEST_P()
328 cv::cuda::GpuMat dst = createMat(size, CV_MAKE_TYPE(lut.depth(), src.channels())); in CUDA_TEST_P()
332 cv::LUT(src, lut, dst_gold); in CUDA_TEST_P()
340 cv::Mat lut = randomMat(cv::Size(256, 1), CV_MAKE_TYPE(CV_8U, src.channels())); in CUDA_TEST_P() local
342 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in CUDA_TEST_P()
344 cv::cuda::GpuMat dst = createMat(size, CV_MAKE_TYPE(lut.depth(), src.channels()), useRoi); in CUDA_TEST_P()
348 cv::LUT(src, lut, dst_gold); in CUDA_TEST_P()
/external/opencv3/modules/cudaarithm/src/cuda/
Dlut.cu66 LookUpTableImpl(InputArray lut);
205 Ptr<LookUpTable> cv::cuda::createLookUpTable(InputArray lut) in createLookUpTable() argument
207 return makePtr<LookUpTableImpl>(lut); in createLookUpTable()
/external/opencv3/modules/core/src/
Dopencl_kernels_core.cpp1628 const struct ProgramEntry lut={"lut", variable
1740 ProgramSource lut_oclsrc(lut.programStr);
/external/webp/src/utils/
Dquant_levels_dec.c158 static void InitCorrectionLUT(int16_t* const lut, int min_dist) { in InitCorrectionLUT() argument
175 lut[+i] = +c; in InitCorrectionLUT()
176 lut[-i] = -c; in InitCorrectionLUT()
178 lut[0] = 0; in InitCorrectionLUT()
/external/llvm/test/Analysis/ScalarEvolution/
D2008-07-12-UnneededSelect1.ll7 @lut = common global [256 x i8] zeroinitializer, align 32 ; <[256 x i8]*> [#uses=1]
22 getelementptr [256 x i8], [256 x i8]* @lut, i32 0, i32 %2 ; <i8*>:4 [#uses=1]
/external/opencv3/modules/objdetect/test/
Dtest_cascadeandhog.cpp1202 const float* lut = &_lut(0,0); in computeGradient() local
1248 dbuf[x] = (float)(lut[imgPtr[xmap[x+1]]] - lut[imgPtr[xmap[x-1]]]); in computeGradient()
1249 dbuf[width + x] = (float)(lut[nextPtr[x1]] - lut[prevPtr[x1]]); in computeGradient()
1261 dx0 = lut[p2[2]] - lut[p0[2]]; in computeGradient()
1262 dy0 = lut[nextPtr[x1+2]] - lut[prevPtr[x1+2]]; in computeGradient()
1265 dx = lut[p2[1]] - lut[p0[1]]; in computeGradient()
1266 dy = lut[nextPtr[x1+1]] - lut[prevPtr[x1+1]]; in computeGradient()
1276 dx = lut[p2[0]] - lut[p0[0]]; in computeGradient()
1277 dy = lut[nextPtr[x1]] - lut[prevPtr[x1]]; in computeGradient()
/external/opencv3/modules/imgproc/src/
Dclahe.cpp107 cv::UMat lut = _lut.getUMat(); in transform() local
115 idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(lut)); in transform()
134 …CLAHE_CalcLut_Body(const cv::Mat& src, const cv::Mat& lut, const cv::Size& tileSize, const int& ti… in CLAHE_CalcLut_Body() argument
135 …src_(src), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), clipLimit_(clipLimit), lutScale_(lutSc… in CLAHE_CalcLut_Body()
234 …CLAHE_Interpolation_Body(const cv::Mat& src, const cv::Mat& dst, const cv::Mat& lut, const cv::Siz… in CLAHE_Interpolation_Body() argument
235 src_(src), dst_(dst), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), tilesY_(tilesY) in CLAHE_Interpolation_Body()
Ddistransform.cpp609 uchar lut[256]; in distanceATS_L1_8u() local
622 lut[x] = cv::saturate_cast<uchar>(x+1); in distanceATS_L1_8u()
629 dbase[x] = (uchar)(sbase[x] == 0 ? 0 : lut[dbase[x-1]]); in distanceATS_L1_8u()
637 a = sbase[0] == 0 ? 0 : lut[dbase[-dststep]]; in distanceATS_L1_8u()
642 a = sbase[x] == 0 ? 0 : lut[MIN(a, dbase[x - dststep])]; in distanceATS_L1_8u()
654 a = lut[a]; in distanceATS_L1_8u()
664 a = lut[dbase[width-1+dststep]]; in distanceATS_L1_8u()
670 a = lut[MIN(a, b)]; in distanceATS_L1_8u()
/external/opencv/cv/src/
Dcvdistransform.cpp629 uchar lut[256]; in icvDistanceATS_L1_8u() local
642 lut[x] = CV_CAST_8U(x+1); in icvDistanceATS_L1_8u()
649 dbase[x] = (uchar)(sbase[x] == 0 ? 0 : lut[dbase[x-1]]); in icvDistanceATS_L1_8u()
657 a = sbase[0] == 0 ? 0 : lut[dbase[-dststep]]; in icvDistanceATS_L1_8u()
662 a = sbase[x] == 0 ? 0 : lut[MIN(a, dbase[x - dststep])]; in icvDistanceATS_L1_8u()
674 a = lut[a]; in icvDistanceATS_L1_8u()
684 a = lut[dbase[width-1+dststep]]; in icvDistanceATS_L1_8u()
690 a = lut[MIN(a, b)]; in icvDistanceATS_L1_8u()

123