I200441VisualCRGBCMYKHSVCADIIISubject:COLORPROCESSINGINPACKAGINGDECORATIONSpecialty:PackagingEngineeringWriter:ShengLong(Signature:)Instructor:WangJiamin(Signature:)HeKezhi(Signature:)AbstractThecoloroftheproductsofPackaginghasbecomeveryimportantincommoditysalewhenthemarketismoreandmorecompetitive.Sothecolorprocessingofpackagingdecorationismoreandmoreconcerned.ButatpresentthesoftwaresystemofcolorprocessingisscareinthefieldofPackagingandPrintinginourcountry,anditisnotconvenientforpeopletodesignpackagingproduct.Basedonthecolorvisiontheoryandtheknowledgeofcolorspaceanditstransformation,thealgorithmtotransformthesecolorspaceisdesignedandtheinternetapplicationstoprocesscolorsisdevelopedwiththeprogramminglanguageVC++6.0.Twopartsareincludedinthesoftware:first,byadjustingtheparametersoftheRGB\CMKYandHSVcolorspacetochangecolors.Itisconvenientfordesignerstorectifythecolordeviationandoptimizecolorsmatching.Second,byadjustingtheparametersofonecolorspaceinturns,theimagecanshadeincolors,sothattheimageswithidealcoloreffectcanbecaught,whichcanhelpthedesigners’originality.AtlasttheprospectoftheindustryofPackagingandPrintingisdescribedandthedevicestoimprovethesoftwareisproposedinthispaper,sothattheCADsoftwaredesignerscanimproveitandmakeitmoreusefulinthedesignofpackagingdecoration.112080206040512123245678MarlboroKENT“KENT”CAMEL1.23*a*b*RGBCRTCMYKHSVRGBCMYKCMYKHSV5HSV622.189GB5698859801007080904102.211480560nm1111*a*b*,CIEL*u*v*YUV11c.//HSI,HSLHSV23-1143.2RGBRGB1RGBRGBRGBRGB2561670“”RGB24bit“”RGBRGBCIEXYZCIEL*a*b*CIEL*u*v*YCCCMYKRGBCMY3-112CMYKCMYKRGBRGBCMYKRGBRGB3-20,0,01,1,1,.(0,0,1)(0,1,1)(1,0,1)(1,1,1)(0,0,0)(0,1,0)(1,0,0)(1,1,0)RGB15a.b.c.RGB3-2RGB133.3CMYKCMYKCyanMagentaYellow16CMYCMYCMY0100CMYRGB1417CMYKCMYK16CMYKCMYKCMYKRGBCMYKCIEXYZCIEL*a*b*CIE3.41931CIEXYZCIE“”CIE181931CIE3-3153-3r1931CIE1931CIEXYZXYZXYZXYZ1931CIEXYZRGBCIEXYZ161931CIEXYZCIEXYZCIEXYZCIE1976CIEL*a*b*3.51976CIEL*a*b*XYZ1976CIEL*a*b*1976CIEL*a*b*CIEXYZL*a*b*a*b*X-YY-Za*a*b*b*L*L*a*b*RGBCMYKL*a*b*1976CIEL*a*b*3-41976CIEL*a*b*CIEL*a*b*CIEL*a*b*RGBCMYK1976CIEL*a*b*173-41976CIEL*a*b*1976CIEL*a*b*3.6HSVHSVA.R.Smith1978,193-5H03600120,24060180,300S0.01.0V0.01.0HSVV=1.0S=1.0S*a*b*320RGBCIEXYZ20⎪⎭⎪⎬⎫++=++=++=max,max,max,max,max,max,max,max,max,bgrbgrbgrRZGZRZZRYGYRYYRXGXRXX3-1XYZCRTXr,max3-5HSV19Xg,max……Zb,max⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡=⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡BGRZZZYYYXXXZYXbgrbgrbgrmax,max,max,max,max,max,max,max,max,3-2CIEXYZRGB⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡=⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡-ZYXZZZYYYXXXBGRbgrbgrbgr1max,max,max,max,max,max,max,max,max,3-33-120⎪⎪⎪⎭⎪⎪⎪⎬⎫Δ-+Δ-+Δ-=Δ-+Δ-+Δ-=Δ-+Δ-+Δ-=ZYYYXYZXZXXZYZYBZYYYXYZXZXXZYZYGZYYYXYZXZXXZYZYRrggrgrrgrggrbrrbrbbrbrrbgbbgbggbgbbgmax,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,max,3-4()max,max,max,max,max,gbbgrZYZYX-=Δ+()max,max,max,max,max,brrbgZYZYX-+()max,max,max,max,max,rggrbZYZYX-CIEL*a*b*CIEXYZ20()()()()()⎪⎪⎪⎭⎪⎪⎪⎬⎫⎥⎦⎤⎢⎣⎡-=⎥⎦⎤⎢⎣⎡-=-=***3103103103100310//200//50001.0/16/116ZZYYbYYXXaYYYYL3-5X0Y0Z0CIED65CA3-112º10ºD65CAD65CAX0Y0Z095.05100.00108.9097.07100.00118.22109.85100.0035.5894.81100.00107.3497.28100.00116.14111.14100.0035.20CMYKRGB3-6⎪⎪⎭⎪⎪⎬⎫--=--=--=---=KBYKGMKRCBGRK255255255))255(),255(),255min((3-6HSVRGBHSV3-7213-1CIEX0Y0Z021⎪⎭⎪⎬⎫+--=+-=+=VHSHSBVHSHSGVHSR57735.0)sin(40824.0)cos(7071.057735.0)sin(40824.0)cos(7071.057735.0)sin(816496.03-7224Windows4.1(BitMap)(Vector)[22]64048016216=65536307200(=640480)88116256jpeggif4-1[22]BITMAPFILEHEADER23BITMAPINFOHEADERRGBQUADRGBQUAD241684BITMAPINFOHEADER82561624ColorIndexWindowsPalette(ColorTable)4-1241248240255[23],40BITMAPINFOtypedefstructtagBITMAPINFO{BITMAPINFOHEADERbmiHeader;//RGBQUADbmiColors[1];//}BITMAPINFO;BITMAPINFOHEADERRGBQUADtypedefstructtagBITMAPINFOHEADER{DWORDbiSize;//LONGbiWidth;//LONGbiHeight;//WORDbiplanes;//1WORDbiBitCount;//DWORDbiCompression;//DWORDbiSizeImage;//LONGbiXPelsPerMeter;//25LONGbiYPelsPerMeter;//DWORDbiClrUsed;//DWORDbiClrImportant;//}BITMAPINFOHEADER;TypedefstructtagRGBQUAD{BYTErgbBlue;//0255BYTErgbGreen;//0255BYTErgbRed;//0255BYTErgbReserved;//0}RGBQUAD;RGBQUADbiBitCountbiBitCount8256256biBitCount8256256RGB2564.2CDib26DIB[24]DIBDIBMFCDIBDIBDIBWin32DIBsectionDIBCObjectMFCCObjectMFCCObjectCObjectCObjectCObjectCDib//DIBclassCDib:publicCObject{DECLARE_DYNAMIC(CDib)//protected:LPBYTEm_pBits;//LPBITMAPINFOm_pBMI;//CPalette*m_pPalette;//DWORDm_dwBMISize;//m_pBMIDWORDm_dwBitsSize;27//m_pBitsDWORDm_SLength;////public:CDib();//CDib(CDib&);//CDib(LPCSTR);//virtual~CDib();//DWORDWidth()const;//DWORDHeight()const;//WORDNumColors()const;//BOOLIsValid()const{return(m_pBits!=0);}//LPBITMAPINFOGetDIBInfo(){returnm_pBMI;}//LPBYTEGetBits(){returnm_pBits;}//DWORDGetBitSize(){returnm_dwBitsSize;}//DWORDGetInfoSize(){returnm_dwBMISize;}//DWORDGetScanlineLength(){returnm_