久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='Nhp4T'><tr id='Nhp4T'><dt id='Nhp4T'><q id='Nhp4T'><span id='Nhp4T'><b id='Nhp4T'><form id='Nhp4T'><ins id='Nhp4T'></ins><ul id='Nhp4T'></ul><sub id='Nhp4T'></sub></form><legend id='Nhp4T'></legend><bdo id='Nhp4T'><pre id='Nhp4T'><center id='Nhp4T'></center></pre></bdo></b><th id='Nhp4T'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Nhp4T'><tfoot id='Nhp4T'></tfoot><dl id='Nhp4T'><fieldset id='Nhp4T'></fieldset></dl></div>

      <legend id='Nhp4T'><style id='Nhp4T'><dir id='Nhp4T'><q id='Nhp4T'></q></dir></style></legend>
        <bdo id='Nhp4T'></bdo><ul id='Nhp4T'></ul>

      1. <small id='Nhp4T'></small><noframes id='Nhp4T'>

        <tfoot id='Nhp4T'></tfoot>

        如何從ios 5中的源圖像中檢測(cè)面部的膚色?

        How to detect the skin color of face from the source image in ios 5?(如何從ios 5中的源圖像中檢測(cè)面部的膚色?)
          <bdo id='5oQ5o'></bdo><ul id='5oQ5o'></ul>

          • <small id='5oQ5o'></small><noframes id='5oQ5o'>

              <tbody id='5oQ5o'></tbody>
            <legend id='5oQ5o'><style id='5oQ5o'><dir id='5oQ5o'><q id='5oQ5o'></q></dir></style></legend>

                  <tfoot id='5oQ5o'></tfoot>
                • <i id='5oQ5o'><tr id='5oQ5o'><dt id='5oQ5o'><q id='5oQ5o'><span id='5oQ5o'><b id='5oQ5o'><form id='5oQ5o'><ins id='5oQ5o'></ins><ul id='5oQ5o'></ul><sub id='5oQ5o'></sub></form><legend id='5oQ5o'></legend><bdo id='5oQ5o'><pre id='5oQ5o'><center id='5oQ5o'></center></pre></bdo></b><th id='5oQ5o'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5oQ5o'><tfoot id='5oQ5o'></tfoot><dl id='5oQ5o'><fieldset id='5oQ5o'></fieldset></dl></div>

                  本文介紹了如何從ios 5中的源圖像中檢測(cè)面部的膚色?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我需要給臉部的皮膚上色...我如何找到膚色?

                  I need to color the skin of the face... How do i find the skin color?

                  現(xiàn)在我通過(guò) RGB 像素值獲取膚色...仍然我面臨的問(wèn)題是我正在匹配顏色坐標(biāo)以匹配特定顏色范圍的皮膚......但臉部的某些區(qū)域仍然不在我的顏色范圍內(nèi),那么它不是那個(gè)區(qū)域的顏色..

                  now i get the skin color by RGB pixel value ... Still i am facing the problem i was matching the color coordinates to match the skin by certain color range... but still some area of the face not fall in my range of colors then it is not color that area..

                  除了面部區(qū)域可能落在那個(gè)區(qū)域之外,那個(gè)區(qū)域也有顏色......

                  other than the face area may fall that region, that area also colored...

                  關(guān)于我的問(wèn)題的任何想法...

                  Any idea about my issue...

                  提前謝謝....

                  我的代碼:

                      -(void)colorImageBySliderValue:(float)value WithImage:(UIImage*)needToModified
                  {
                  
                      CGContextRef ctx;
                  
                      CGImageRef imageRef = needToModified.CGImage;
                      NSUInteger width = CGImageGetWidth(imageRef);
                      NSUInteger height = CGImageGetHeight(imageRef);
                      CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
                      unsigned char *rawData = malloc(self.sourceImage.image.size.height * self.sourceImage.image.size.width * 10);
                      NSUInteger bytesPerPixel = 4;
                      NSUInteger bytesPerRow = bytesPerPixel * self.sourceImage.image.size.width;
                      NSUInteger bitsPerComponent = 8;
                      CGContextRef context1 = CGBitmapContextCreate(rawData, self.sourceImage.image.size.width, self.sourceImage.image.size.height,
                                                                    bitsPerComponent, bytesPerRow, colorSpace,
                                                                    kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big);
                      CGColorSpaceRelease(colorSpace);
                  
                      CGContextDrawImage(context1, CGRectMake(0, 0, self.sourceImage.image.size.width, self.sourceImage.image.size.height), imageRef);
                  
                      NSLog(@"%d::%d",width,height);
                  
                  
                      for(int ii = 0 ; ii < 768 * 1024 ; ii+=4)
                      {
                  
                          int  R = rawData[ii];
                          int G = rawData[ii+1];
                          int B = rawData[ii+2];
                  
                          //        NSLog(@"%d   %d   %d", R, G, B);
                               if( ( (R>60)&&(R<237) ) || ((G>10)&&(G<120))||((B>4) && (B<120)))
                  //        if( ( (R>100)&&(R<186) ) || ((G>56)&&(G<130))||((B>30) && (B<120)))
                  //        if( ( (R>188)&&(R<228) ) || ((G>123)&&(G<163))||((B>85) && (B<125)))
                              //        if( ( (R>95)&&(R<220) ) || ((G>40)&&(G<210))||((B>20) && (B<170)))
                          {
                  
                  
                              rawData[ii+1]=R;//13; 
                              rawData[ii+2]=G;//43; 
                              rawData[ii+3]=value;//63
                              //            NSLog(@"entered");
                          }
                      }
                  
                  
                      ctx = CGBitmapContextCreate(rawData,
                                                  CGImageGetWidth( imageRef ),
                                                  CGImageGetHeight( imageRef ),
                                                  8,
                                                  CGImageGetBytesPerRow( imageRef ),
                                                  CGImageGetColorSpace( imageRef ),
                                                  kCGImageAlphaPremultipliedLast ); 
                  
                      imageRef = CGBitmapContextCreateImage(ctx);
                      UIImage* rawImage = [UIImage imageWithCGImage:imageRef]; 
                      UIImageView *ty=[[UIImageView alloc]initWithFrame:CGRectMake(100, 200, 400, 400)];
                      ty.image=rawImage;
                      [self.view addSubview:ty];
                      CGContextRelease(context1);
                      CGContextRelease(ctx);  
                      free(rawData);   
                  }
                  

                  問(wèn)候,

                  間諜網(wǎng)

                  推薦答案

                  您可以創(chuàng)建兩個(gè)圖像,一個(gè)是原始圖像,另一個(gè)是單獨(dú)修改的圖像像素,然后修復(fù)...并通過(guò)首先添加原始圖像并將修改后的像素單獨(dú)添加到原始圖像來(lái)覆蓋圖像....

                  you can create the two images one is the original image and other one is the modified image pixels alone and fix that... and and overlay the images by adding the original image first and the modified pixel alone over the original....

                    for (int index=0; index<length; index+=4) 
                          {
                              if (data2[index]==data1[index])
                              {
                                  data1[index]=data2[index];
                                  data1[index+1]=data2[index+1];//aRed+value;//aRed;//13; 
                                  data1[index+2]=data2[index+2];//aGreen;//aGreen;//43; 
                                  data1[index+3]=data2[index+3];
                              }
                  

                  這篇關(guān)于如何從ios 5中的源圖像中檢測(cè)面部的膚色?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過(guò)點(diǎn)擊動(dòng)畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(iOS 5 屬性))

                    1. <i id='GVeMG'><tr id='GVeMG'><dt id='GVeMG'><q id='GVeMG'><span id='GVeMG'><b id='GVeMG'><form id='GVeMG'><ins id='GVeMG'></ins><ul id='GVeMG'></ul><sub id='GVeMG'></sub></form><legend id='GVeMG'></legend><bdo id='GVeMG'><pre id='GVeMG'><center id='GVeMG'></center></pre></bdo></b><th id='GVeMG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GVeMG'><tfoot id='GVeMG'></tfoot><dl id='GVeMG'><fieldset id='GVeMG'></fieldset></dl></div>

                      <small id='GVeMG'></small><noframes id='GVeMG'>

                        1. <legend id='GVeMG'><style id='GVeMG'><dir id='GVeMG'><q id='GVeMG'></q></dir></style></legend>

                          • <bdo id='GVeMG'></bdo><ul id='GVeMG'></ul>
                            <tfoot id='GVeMG'></tfoot>
                              <tbody id='GVeMG'></tbody>
                            主站蜘蛛池模板: 久久久久9999| 国产精品久久久久久久久久久免费看 | 国产女人与拘做受视频 | 亚洲精品中文字幕在线 | 精精国产xxxx视频在线 | 一级毛片视频免费观看 | 视频1区 | 91久久久久 | 久久久久久久久国产成人免费 | 欧美精品 在线观看 | 亚洲欧美国产精品一区二区 | 久久性 | 亚洲精品高清视频在线观看 | 日本欧美大片 | www国产亚洲精品 | 人人99| 一级毛毛片| 欧美一区二区黄 | 婷婷99 | 欧美成人综合 | 国产一二三区电影 | 中文一区二区 | 黄频免费 | 三级av网址 | 午夜视频在线免费观看 | 黄色网址免费看 | 国产一区二区三区四区在线观看 | 久久成人免费视频 | 日韩三级| 九九热在线视频 | 色综合视频在线 | 在线观看黄色电影 | 日韩精品视频在线 | 天天做日日做 | 久久久久av| 免费影视在线观看 | 国产成人精品999在线观看 | 一本色道精品久久一区二区三区 | 一区二区三区成人 | 黄色免费网站在线看 | 午夜精品一区二区三区免费视频 |