Forums - fcvChannelExtractu8

3 posts / 0 new
Last post
fcvChannelExtractu8
jing.chen
Join Date: 10 May 20
Posts: 9
Posted: Mon, 2020-10-12 03:50
I call the fuction fcvChannelExtractu8 to extract  a RGB image to three R,G,B single channel images, code as follows:
 
printf("before fcvChannelExtractu8\n");
 
int ret1 = fcvChannelExtractu8(maskSrc,IW,IH,0,0,0,0,0,FASTCV_CHANNEL_R,FASTCV_RGB,maskR,0);
 
printf("after fcvChannelExtractu8, ret1=%d\n");
 
But the code will quit when call the fuction, the print log "before fcvChannelExtractu8" can be displayed, but the "after before fcvChannelExtractu8" can not be displayed.
  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Tue, 2021-01-19 01:30

Hi,

The API usage is correct. Please make sure maskR is allocated memory size equal to IW*IH*1

thanks

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Tue, 2021-01-19 08:43
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.