Questions tagged [iplimage]

iplimage is one of the basic data structures used in OpenCV to store information about the images.

160 questions
2
votes
2 answers

Accessing IplImage element of type IPL_DEPTH_16S in OpenCV

I know that for a single channel byte image you do: ((uchar *)(img->imageData + i*img->widthStep))[j] and for a single channel float image, you do: ((float*)(img->imageData + i*img->widthStep))[j] But how about for 16 bit signed images…
Simon
  • 277
  • 1
  • 5
  • 13
2
votes
2 answers

Boost asio: Send OpenCV IplImage from Ubuntu-Server to Win7-Client

I try to transmit an OpenCV IplImage from a Server (Ubuntu x64) to a Client (Win7 x64) using the boost asio library. The following code works fine if both (Client and Server) are on the same operating system. But when the server is on Ubuntu and the…
Dave
  • 23
  • 2
  • 4
2
votes
1 answer

OpenCV: cvCloneImage and memory leak

I am very new to OpenCV. I noticed the following code has a memory leak: IplImage *img, *img_dest; img = cvLoadImage("..\\..\\Sunset.jpg", CV_LOAD_IMAGE_COLOR); while(1) // to make the mem leak obvious { img_dest = cvCreateImage(cvGetSize(img),…
user8487873
  • 190
  • 7
2
votes
2 answers

Issue with boost serialization of IplImage struct

I'm having trouble getting the boost serialization module to work with OpenCV's IplImage struct. Here is my code for serializing an IplImage (along with some JSON data in a custom struct) template void save(Archive & ar,…
Lancophone
  • 310
  • 2
  • 17
2
votes
1 answer

How get the color format in Opencv?

In C++, how can I get the color format (RGB or BGR for example), from an object cv::Mat or cv::IplImage?
valerio_sperati
  • 793
  • 2
  • 9
  • 23
2
votes
2 answers

Convert Bayer RGGB to CV iplimage (RGB)

currently I'm trying to convert the Bayer RGGB data to an iplimage. I thought cvtColor might work but it requires "mat" instead of iplimage. cvtColor(img->imageData, tmpimageData, CV_BayerBG2BGR, 0); Is there a workaround, maybe you can convert…
Guntram
  • 414
  • 2
  • 5
  • 18
2
votes
0 answers

OpenCV - IplImage/Mat with 1 bit depth for edge maps?

I'm currently using cvCreateImage with IplImages to store my edge maps in my code. These are generated with a Canny edge detection and the resulting map either has pixels on or off. From these I perform some Hough transformations whose thresholds…
golmschenk
  • 11,736
  • 20
  • 78
  • 137
2
votes
0 answers

Loss of quality when converting from IplImage to UIImage

I'm using the OpenCV library in my app and I want to the use the final result as a UIImage. I use this code to convert between IplImage to UIImage: CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); NSData * data = [[NSData alloc]…
YogevSitton
  • 10,068
  • 11
  • 62
  • 95
2
votes
2 answers

Can't use IplImage with OpenCV 2.4.4

I have just downloaded and installed the new opencv version. The fact that it natively supports java is quite exiting. However I am having some trouble porting my javacv code over. I can no longer seem to use IplImage as it can not be resolved, even…
user2041427
  • 81
  • 2
  • 11
2
votes
1 answer

How to import IplImage class in opencv android?

How to import and use IplImage class in opencv android? Or its only support for javacv ?? I try to declare new val by IplImage image = IplImage.create( bm.getWidth(), bm.getHeight(), IPL_DEPTH_8U, 4); eclipse show that IplImage cannot be resolve to…
Yeehoong Lim
  • 41
  • 1
  • 5
2
votes
1 answer

Converting Iplimage to a matrix or an array in Matlab

I am using OpenCV via Matlab to detect faces in a video and then do some processing using Matlab. At the moment I do face detection on the IplImage-structured frames (queried by cvQueryFrame) of the video. I save each of the queried frames as a jpg…
Kavo
  • 543
  • 1
  • 6
  • 16
2
votes
0 answers

converting cvmat to iplimage

How can I convert a cvMat matrix to IplImage that can be saved using cvSaveImage, in C using OpenCV? I learnt about a function cvGetImage(const CvArr* arr, IplImage* imageHeader). I understand that arr stands for the cvMat Array, but could not…
Koustav
  • 733
  • 1
  • 6
  • 21
1
vote
1 answer

OpenCV image in OpenGL: Strange behaviour

I'm using the following code to create and display a texture from an IplImage. It works about half the time but sometimes skews the image, I assume it has to do with the texture padding but I need help with a fix. int loadTexture_Ipl(IplImage…
Awalias
  • 2,027
  • 6
  • 31
  • 51
1
vote
3 answers

Storing/Extracting Objects to/from NSDictionary

I am getting errors using a NSDictionary when trying to assign it's contents to new variables/objects. Maybe this isn't posible? I thought it would be. I'm also not sure if I can use non-Objective C specific objects in the dictionary. Can…
Kevin_TA
  • 4,575
  • 13
  • 48
  • 77
1
vote
1 answer

How to convert IplImage(OpenCV) to ALLEGRO_BITMAP (A5) fast?

Is there a fastest way to convert a IplImage type from OpenCV to ALLEGRO_BITMAP type from Allegro 5.0.x than just putting every pixel from one to another? Like 2 for loops like this: void iplImageToBitmap(IplImage *source, ALLEGRO_BITMAP* dest) { …
Merovigiam
  • 33
  • 5
1 2
3
10 11