MCPcopy Create free account
hub / github.com/creatale/node-dv / kernelGetParameters

Function kernelGetParameters

deps/leptonica/src/kernel.c:269–289  ·  view source on GitHub ↗

! * \brief kernelGetParameters() * * \param[in] kel kernel * \param[out] psy, psx, pcy, pcx [optional] each can be null * \return 0 if OK, 1 on error */

Source from the content-addressed store, hash-verified

267 * \return 0 if OK, 1 on error
268 */
269l_int32
270kernelGetParameters(L_KERNEL *kel,
271 l_int32 *psy,
272 l_int32 *psx,
273 l_int32 *pcy,
274 l_int32 *pcx)
275{
276 PROCNAME("kernelGetParameters");
277
278 if (psy) *psy = 0;
279 if (psx) *psx = 0;
280 if (pcy) *pcy = 0;
281 if (pcx) *pcx = 0;
282 if (!kel)
283 return ERROR_INT("kernel not defined", procName, 1);
284 if (psy) *psy = kel->sy;
285 if (psx) *psx = kel->sx;
286 if (pcy) *pcy = kel->cy;
287 if (pcx) *pcx = kel->cx;
288 return 0;
289}
290
291
292/*!

Callers 11

pixMultMatrixColorFunction · 0.85
pixConvolveFunction · 0.85
fpixConvolveFunction · 0.85
kernelCopyFunction · 0.85
kernelGetSumFunction · 0.85
kernelGetMinMaxFunction · 0.85
kernelNormalizeFunction · 0.85
kernelInvertFunction · 0.85
kernelWriteStreamFunction · 0.85
kernelDisplayInPixFunction · 0.85
pixBilateralGrayExactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected