Skip to content

Commit

Permalink
fix memset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
donglaiw committed Aug 28, 2018
1 parent 0f2b5df commit bc81006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion em_pre/cpp_flow/ImageProcessing.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void ImageProcessing::ResizeImage(const T1 *pSrcImage, T2 *pDstImage, int SrcWid
{
double xRatio=(double)DstWidth/SrcWidth;
double yRatio=(double)DstHeight/SrcHeight;
memset(pDstImage,sizeof(T2)*DstWidth*DstHeight*nChannels,0);
memset(pDstImage,0,sizeof(T2)*DstWidth*DstHeight*nChannels);

double x,y;

Expand Down

0 comments on commit bc81006

Please sign in to comment.