iplimage is one of the basic data structures used in OpenCV to store information about the images.
Questions tagged [iplimage]
160 questions
4
votes
2 answers
Mat and setMouseCallback function
I have a my_mouse_callback example function that works with IplImage*:
void my_mouse_callback(int event, int x, int y, int flags, void* param)
{
IplImage* image = (IplImage*) param;
switch( event )
{
case CV_EVENT_LBUTTONDOWN:
…

notphunny
- 55
- 2
- 5
4
votes
2 answers
Opencv copy 3 channel IplImage to 4 channel IplImage
When I try to use cvCopy a IplImage consisting of 3 channels to a IplImage with 4 channels (I need the extra channel later) all I get is an error message.
Is there another way to increase the channel count of an IplImage without loosing the data…

Sharpie
- 1,575
- 2
- 16
- 22
4
votes
3 answers
Opencv... getting at the data in an IPLImage or CvMat
I am doing some simple programs with opencv in python. I want to write a few algorithms myself, so need to get at the 'raw' image data inside an image. I can't just do image[i,j] for example, how can I get at the numbers?
Thanks

Ferguzz
- 5,777
- 7
- 34
- 41
4
votes
3 answers
Iphone Converting IplImage to UIImage and back causes rotation
I am using some code to convert between iplimage and uiimage. I take a photo taken from the camera (a UIImage) and convert it to an iplimage and back using the code posted below. Unfortunately this causes the image to be rotated and stretched by 90…

user491880
- 4,709
- 4
- 28
- 49
4
votes
3 answers
IplImage vs CvMat
I know many people are interested in the technical difference between IplImage and CvMat. (Yes, NOT cv::Mat(*), but CvMat.) So, let's clear the differences with a practical focus.
Is CvMat the refcounted version of IplImage? Is CvMat only a wrapper…

Barney Szabolcs
- 11,846
- 12
- 66
- 91
3
votes
3 answers
OpenCV IplImage data to float
Is there a way to convert IplImage pointer to float pointer? Basically converting the imagedata to float.
Appreciate any help on this.

brendon
- 31
- 1
- 2
3
votes
1 answer
OpenCV: Why *p_img1=*p_img2 is not correct
p_img1 and p_img2 being IplImage* previously cvLoad'ed, I would like p_img1 to become a copy of p_img2.
Writing *p_img1 = *p_img2; seems to work fine (I can check it in debug mode, as well as by displaying images), except that after that line, using…

user8487873
- 190
- 7
3
votes
2 answers
Android JavaCV + Camera2
trying to record video from camera by using javaCV,
// recoder settings:
private int imageWidth = 320;
private int imageHeight = 240;
private int frameRate = 30;
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth,…

Siarhei
- 2,358
- 3
- 27
- 63
3
votes
2 answers
Python/OpenCV: Converting images taken from capture
I'm trying to convert images taken from a capture (webcam) and do some processing on them with OpenCV, but I'm having a difficult time..
When trying to convert the image to grayscale, the program crashes. (Python.exe has stopped working)
Here is the…

Dom M.
- 3,762
- 8
- 32
- 40
3
votes
3 answers
cvResize function with JavaCV
Says I'm using the wrong types here. Both img and image are iplImages, what type should I be using and how do I use it? Thanks
IplImage image = IplImage.create(120, 120, IPL_DEPTH_8U, 4);
…

user1088595
- 151
- 2
- 16
3
votes
2 answers
Convert RGB IplImage to 3 arrays
I need some C++/pointer help. When I create an RGB IplImage and I want to access i,j I use the following C++ class taken from: http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html
template class Image
{
private:
…

rem7
- 387
- 1
- 4
- 11
2
votes
1 answer
DirectX and OpenCV
So i have a program written already that captures the image from a webcam, into a vector called pBuffer.
I can easily acess the RGB pixel information of each pixel, simply by
pBuffer[i]=R;pBuffer[i+1]=G;Buffer[i+2]=B.
No problem in here.
The next…
João Freire
2
votes
2 answers
Convert IplImage to CvMat
Here is the gpu surf code:
#include
#include
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include…

Sameer Bagga
- 155
- 2
- 3
- 11
2
votes
1 answer
Can't convert Bitmap to IplImage
I'm trying to make an image cropping tool.
I am following this https://www.codeproject.com/Articles/703519/Cropping-Particular-Region-In-Image-Using-Csharp
But since it's a bit old and the plugin/DLL's it uses have changed I have been trying to…

André Marques
- 180
- 1
- 15
2
votes
0 answers
Use IplImage (and C APIs) in opencv 4
In the opencv github wiki it reads 'IplImage ... are mostly excluded from API and will be completely excluded in further OpenCV 4.x updates'. But in the 4.0.1 version there is still a include\opencv2\core\type_c.h file which contains the structure…

GrandmaPeng
- 21
- 1
- 2