iplimage is one of the basic data structures used in OpenCV to store information about the images.
Questions tagged [iplimage]
160 questions
25
votes
5 answers
Conversion from IplImage* to cv::MAT
I searched to convert an IplImage* to Mat, but all answers were about the conversion to cvMat.
How, can I do it? and what is the difference between Mat and cvMat?
Thanks in advance
user1807367
18
votes
4 answers
OpenCV - IplImage
What is IplImage in OpenCV? Can you just explain what is meant by it as a type? When should we use it?
Thanks.

Simplicity
- 47,404
- 98
- 256
- 385
17
votes
1 answer
Explanation of IplImage* img
I just started learning OpenCV with "Learning OpenCV Computer Vision with the OpenCV Library".
In the first example which demonstrates how to display a picture, it has a line
IplImage* img = cvLoadImage("name.type")
Although the book explains…

n0bod1
- 255
- 1
- 2
- 13
13
votes
4 answers
How to convert a Mat variable type in an IplImage variable type in OpenCV 2.0?
I am trying to rotate an image in OpenCV.
I've used this code that I found here on Stack Overflow:
Mat source(img);
Point2f src_center(source.cols/2.0, source.rows/2.0);
Mat rot_mat = getRotationMatrix2D(src_center, 40.0, 1.0);
Mat…

Spredzy
- 4,982
- 13
- 53
- 69
12
votes
6 answers
How to convert an 8-bit OpenCV IplImage* to a 32-bit IplImage*?
I need to convert an 8-bit IplImage to a 32-bits IplImage. Using documentation from all over the web I've tried the following things:
// general code
img2 = cvCreateImage(cvSize(img->width, img->height), 32, 3);
int height = img->height;
int…

sgielen
- 349
- 1
- 5
- 15
11
votes
4 answers
openCv crop image
I running into problems with my openCv IplImage cropping. Assuming both tmp and img are IplImage* . Using the code:
printf("Orig dimensions: %dx%d\n", img->width, img->height);
cvSetImageROI(img, cvRect(0, 0,500,500));
tmp =…

Johann
- 273
- 1
- 6
- 11
6
votes
3 answers
writing to IplImage imageData
I want to write data directly into the imageData array of an IplImage, but I can't find a lot of information on how it's formatted. One thing that's particularly troubling me is that, despite creating an image with three channels, there are four…

wyatt
- 3,188
- 10
- 36
- 48
6
votes
2 answers
How to convert an OpenCV IplImage to an SDL_Surface?
I'm trying to write a program which takes an SDL_Surface, converts it to an IplImage, uses the cvBlobsLib to find blobs, paints the blobs as spots back over the image, then converts the output IplImage back to an SDL_Surface.
I'm almost done: only…

sgielen
- 349
- 1
- 5
- 15
6
votes
1 answer
JavaCV - Why IplImage.createFrom(image) doesn't exist anymore?
I'm working with JavaCV at the moment, to try some simple blob detection. I'm using maven and got JavaCV 0.11 (more specific org.bytedeco.javacv) from their repositories. Everything compiles without errors and works fine, but the method to create an…

user3262883
- 119
- 7
6
votes
2 answers
From IPLImage to Mat
I am well acquainted with the IPL-image format used in OpenCV 1.1. However i am using the latest 2.4 version and want to switch to the C++ interface of OpenCV. Here is the method by which i access the pixels in an image:
int step =…

Soumyajit
- 435
- 1
- 9
- 19
6
votes
2 answers
IplImage Pixel Access JavaCV
I'm trying to access Pixel by Pixel of an IplImage. Im using Java and Processing, and sometimes I need to access pixel by pixel. I've done this so far, but I don't know what's wrong:
public IplImage PImageToIplImage(PImage imageSrc)
{
…

Ricardo Alves
- 1,071
- 18
- 36
5
votes
2 answers
Convert Mat to IplImage* in OpenCV and C/C++
in my application I have a Mat file which i'd like to show in a window with cvShowImage which is defined as:
void cvShowImage( const char* name, const CvArr* image )
Now, the problem is that if i pass directly the Mat image, it gives me an error…

Marcus Barnet
- 2,083
- 6
- 28
- 36
5
votes
4 answers
Saving as Flash in C++
How to save an IPLImage of OpenCV as a Flash file? Maybe there is a library that does that?

lital maatuk
- 5,921
- 20
- 57
- 79
5
votes
1 answer
ValueError: Fileobj must implement read
I am converting gif images into jpgs using PIL library and uploading them to s3. I get this error:
ValueError: Fileobj must implement read
here is part of code that reads the image and convert to jpgs:
im = Image.open(url)
i = 0
mypalette =…

Qazal
- 51
- 1
- 2
5
votes
1 answer
Image Filtering/Manipulation Using JavaCv(Java wrapper for OpenCV) in Android
I aim to apply filters(Gray-scale, Vintage, Contrast, Sharpen, Blur, Smooth etc) to iplImage of the JavaCv. In doing so, I have come across these functions/Classes : iplImage, CvMat, cvInRangeS,cvCvtColor,cvSmooth. I wish to seek some clarification…

Parth Kapoor
- 1,494
- 12
- 23