﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
144	psKernel - sample code in doc. is wrong	robert.desonia@…	Paul Price	"In section 4.9.1.1 (SDRS v6), there is the following sample code: 
 
kernelRows = psAlloc(myImage->nRows * sizeof(float)); 
 
but what you need is sizeof(float*) instead.  Actually, I think the text 
itself specifies the requirement without the code segment, so it could be 
removed from the document altogether.  The actual implementation will look 
something like this anyway:  
 
    result->p_kernelRows = psAlloc(sizeof(psF32*)*numRows); 
 
    psF32** kernelRows = result->p_kernelRows; 
    psF32** imageRows = result->p_data->data.F32; 
    for (int i = 0; i < numRows; i++) { 
        kernelRows[i] = imageRows[i] - xMin; 
    } 
    result->kernel = kernelRows - yMin;"	defect	closed	high		PSLib SDRS	unspecified	trivial	fixed		
