¡@

Home 

2014/10/15 ¤U¤È 10:10:37

iphone Programming Glossary: iplimage

color replacement in image for iphone application

http://stackoverflow.com/questions/15082025/color-replacement-in-image-for-iphone-application

step wise with my understanding. 1 Convert the image from RGB to HSV using cvCvtColor we only want to change the hue . IplImage mainImage self CreateIplImageFromUIImage UIImage imageNamed @ original.jpg IplImage hsvImage cvCreateImage cvGetSize mainImage.. 1 Convert the image from RGB to HSV using cvCvtColor we only want to change the hue . IplImage mainImage self CreateIplImageFromUIImage UIImage imageNamed @ original.jpg IplImage hsvImage cvCreateImage cvGetSize mainImage IPL_DEPTH_8U 3 IplImage.. we only want to change the hue . IplImage mainImage self CreateIplImageFromUIImage UIImage imageNamed @ original.jpg IplImage hsvImage cvCreateImage cvGetSize mainImage IPL_DEPTH_8U 3 IplImage threshImage cvCreateImage cvGetSize mainImage IPL_DEPTH_8U..

How to erase part of an image as the user touches it

http://stackoverflow.com/questions/2978382/how-to-erase-part-of-an-image-as-the-user-touches-it

what you want to do with OpenCV is extremely easy. First you need a couple of functions to convert a UIImage to an IplImage wich is the type used in OpenCV to represent images of all kinds and the other way. IplImage CreateIplImageFromUIImage UIImage.. convert a UIImage to an IplImage wich is the type used in OpenCV to represent images of all kinds and the other way. IplImage CreateIplImageFromUIImage UIImage image CGImageRef imageRef image.CGImage This is the function you use to convert a UIImage.. to an IplImage wich is the type used in OpenCV to represent images of all kinds and the other way. IplImage CreateIplImageFromUIImage UIImage image CGImageRef imageRef image.CGImage This is the function you use to convert a UIImage IplImage CGColorSpaceRef..

DETECT the Edge of a Document in iPhoneSDK

http://stackoverflow.com/questions/8921256/detect-the-edge-of-a-document-in-iphonesdk

On page 10 6 there is a reference to the set of contour detection functions CvContourScanner cvStartFindContours IplImage img CvMemStorage storage int headerSize CvContourRetrievalMode mode CvChainApproxMethod method int cvFindContours.. CvMemStorage storage int headerSize CvContourRetrievalMode mode CvChainApproxMethod method int cvFindContours IplImage img CvMemStorage storage CvSeq firstContour int headerSize sizeof CvContour CvContourRetrievalMode mode CV_RETR_LIST..

How to erase part of an image as the user touches it

http://stackoverflow.com/questions/2978382/how-to-erase-part-of-an-image-as-the-user-touches-it

is the function you use to convert a UIImage IplImage CGColorSpaceRef colorSpace CGColorSpaceCreateDeviceRGB IplImage iplimage cvCreateImage cvSize image.size.width image.size.height IPL_DEPTH_8U 4 CGContextRef contextRef CGBitmapContextCreate iplimage.. cvCreateImage cvSize image.size.width image.size.height IPL_DEPTH_8U 4 CGContextRef contextRef CGBitmapContextCreate iplimage imageData iplimage width iplimage height iplimage depth iplimage widthStep colorSpace kCGImageAlphaPremultipliedLast.. image.size.width image.size.height IPL_DEPTH_8U 4 CGContextRef contextRef CGBitmapContextCreate iplimage imageData iplimage width iplimage height iplimage depth iplimage widthStep colorSpace kCGImageAlphaPremultipliedLast kCGBitmapByteOrderDefault..