This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Help me, Noise filter with distortion...

Why KTNF with distortion:

- processor dm365;

- library version KTNF 5.1.0;

My parameters:

KTNFParams->videncParams.maxHeight = 1024;
KTNFParams->videncParams.maxWidth = 1280;

KTNFParams->EnableNSF = IKTNF_ONLY_KNF;
KTNFParams->subWindowHeight = 1024;
KTNFParams->subWindowWidth = 1280;
KTNFParams->q_num = 2;
KTNFParams->askIMCOPRes = 0;

....

KTNFDynamicParams->videncDynamicParams.inputHeight = 1024;
KTNFDynamicParams->videncDynamicParams.inputWidth = 1280;

KTNFDynamicParams->EnableNSF = IKTNF_ONLY_KNF;

... buffers for KTNF:

- in buffers 4

- out buffers 2

... my code:

nf_inBufDesc.numBufs = 4;
nf_inBufDesc.frameWidth = cdcWidth;
nf_inBufDesc.frameHeight = cdcHeight;
nf_inBufDesc.framePitch = nf_inBufDesc.frameWidth;

nf_inBufDesc.bufDesc[0].bufSize = nf_inBufDesc.frameWidth * nf_inBufDesc.frameHeight;
nf_inBufDesc.bufDesc[0].buf = (XDAS_Int8 *)in_buf->Ptr8();
nf_inBufDesc.bufDesc[1].bufSize = nf_inBufDesc.bufDesc[0].bufSize/2;
nf_inBufDesc.bufDesc[1].buf = (XDAS_Int8 *)in_buf->Ptr8() + nf_inBufDesc.bufDesc[0].bufSize;

nf_inBufDesc.bufDesc[2].bufSize = nf_inBufDesc.frameWidth * nf_inBufDesc.frameHeight;
nf_inBufDesc.bufDesc[2].buf = (XDAS_Int8 *)last.Ptr8();
nf_inBufDesc.bufDesc[3].bufSize = nf_inBufDesc.bufDesc[2].bufSize/2;
nf_inBufDesc.bufDesc[3].buf = (XDAS_Int8 *)last.Ptr8() + nf_inBufDesc.bufDesc[2].bufSize;



pOutBuf[0] = (XDAS_Int8 *)luma.Ptr8();
pOutBuf[1] = (XDAS_Int8 *)chroma.Ptr8();
OutBufSize[0] = luma.Size();
OutBufSize[1] = chroma.Size();

What's the trouble? Please help me in solving this problem! Thank you in advance,with respect, Vladimir.