freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

圖像增強(qiáng)直方圖均衡化處理c語言實(shí)現(xiàn)-文庫吧資料

2024-09-04 16:16本頁面
  

【正文】 eturn1;}for(i=0;i 256;i++){pal[i].rgbBlue=i;pal[i].rgbGreen=i;pal[i].rgbRed=i;pal[i].rgbReserved=0;}return 0;}int ReadPixelData(BYTE*imgData){BYTE*data;FILE*dataFile;DWORD dwLineBytes;dwLineBytes=GetLineBytes(,);data=(BYTE*)malloc(dwLineBytes**sizeof(BYTE));dataFile=fopen(,rb);fseek(dataFile,SEEK_SET);if(fread(data,dwLineBytes**sizeof(BYTE),1,dataFile)!=1){printf(Can not read the pixel data.\n);free(data);fclose(dataFile);return1;}memcpy(imgData,data,dwLineBytes**sizeof(BYTE));free(data);fclose(dataFile);return 0;}LONG GetLineBytes(int imgWidth,int bitCount){return(imgWidth*bitCount+31)/32*4;}int SaveAsImage(char*filepath){FILE*dataFile;RGBQUAD pal[256];int i;DWORD dwLineBytes;dwLineBytes=GetLineBytes(,);dataFile=fopen(filepath,wb);if(!dataFile){printf(Error:Can not open the file:%s\n,filepath);return1;}for(i=0;i 256;i++){pal[i].rgbReserved=0;pal[i].rgbBlue=i;pal[i].rgbGreen=i;pal[i].rgbRed=i;}if(fwrite(amp。bmihbiYPelsPerMeter,sizeof(LONG),1,dataFile)!=1){printf(Can not read biYPelsPerMeter in the info header.\n);fclose(dataFile);return1;}if(fread(amp。bmihbiSizeImage,sizeof(DWORD),1,dataFile)!=1){printf(Can not read biSizeImage in the info header.\n);fclose(dataFile);return1;}if(fread(amp。bmihbiBitCount,sizeof(WORD),1,dataFile)!=1){printf(Can not read biBitCount in the info header.\n);fclose(dataFile);return1;}if(fread(amp。bmihbiHeight,sizeof(LONG),1,dataFile)!=1){printf(Can not read biHeight in the info header.\n);fclose(dataFile);return1;}if(fread(amp。bmihbiSize,sizeof(DWORD),1,dataFile)!=1){printf(Can not read biSize in the info header.\n);fclose(dataFile);return1;}if(fread(amp。bmfhbfReserved2,si
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1