iplimage is one of the basic data structures used in OpenCV to store information about the images.
Questions tagged [iplimage]
160 questions
0
votes
0 answers
Using cvReshape after convertion from IplImage to CvMat by cvGetImage
I need to get 1D vectors from input grayscale images in order to calculate covariance matrix. So I'm trying to convert IplImage to CvMat and then reshape it.
At the first time I used the following code:
CvMat *image_matrix =…

Ilja
- 9
- 2
0
votes
1 answer
How do you marshal Python cv2.cv.LoadImage tostring data into C IplImage->imageData struct
The root of this question is: What is the bit-by-bit format of the OpenCV IplImage->imageData property?
Background: I'm using Python's ctypes to allow pythonic access to a low-level C library that uses OpenCV. I've been able to get almost all the…

Nikolai
- 56
- 8
0
votes
0 answers
opencv IplImage sign
I created IPL Image class instance like a following thing.
temp[0] = cvCreateImage(cvSize(640, 480), IPL_DEPTH_8U, 1);
and I use it like this.
temp[0]->imageData[y*temp[0]->widthStep + x] = nHistValue;
So it should be type of unsigned char.. but…
0
votes
3 answers
openCV grayscale / color addressing pixel
I have written a block matching algorithm in c++ using opencv for my thesis .
It is working on grayscale pictures and addresses the IPLImage by his absolute pixeladress.
I have to devide the IPLImage in blocks of the same size (8x8 pxls). In order…
user3379319
0
votes
2 answers
Weird OpenCV Code
This is weird. I have this following code:
int white = 0;
int black = 0;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
int total = 0;
for (int x = i - 1; x <= i + 1; x++) {
for (int y = j -…

joanne_
- 117
- 1
- 10
0
votes
1 answer
Segmentation fault with cvCopy inside of an IplImage* table (IplImage**)
I have to keep in memory a predefined number of images.
I'have created an array like this :
int nb_frame_decalage=10;
IplImage** accumulateur_image;
CvCapture* capture;
IplImage* Image_B_Brut;
capture=cvCreateFileCapture("./Data/video2.avi");
if…

FrsECM
- 245
- 2
- 16
0
votes
3 answers
How to make OpenCV IplImage for 16 bit gray-data?
This code is for 8 bit data to make gray-scale IplImage.
IplImage* img_gray_resize = NULL;
img_gray_resize = cvCreateImage(cvSize(320, 256), IPL_DEPTH_8U, 1);
DWORD dwCount;
LVDS_SetDataMode(0); // o for 8 bit mode and 1 for 16 bit…

IRFAN
- 21
- 4
0
votes
1 answer
OpenCV's IplImage* as function parametr error
I am using OpenCV library and I want to clone picture in separate function, but I cannot send address to the function
IplImage* image = cvLoadImage( path, CV_LOAD_IMAGE_GRAYSCALE ); // loading is ok
showFoundPoints(image); // -> here it shows…

Naomak
- 409
- 1
- 4
- 9
0
votes
1 answer
HoughLinesP with IplImage
I'm trying to apply the probabilistic Hough transformation on an image, but I get this compiler error:
invalid initialization of reference of type ‘cv::InputArray {aka const cv::_InputArray&}’ from expression of type ‘IplImage* {aka…

Elod
- 499
- 9
- 25
0
votes
1 answer
declaring too many global arrays (or IplImages) causing problems?
I have a general kind of question regarding globally declared arrays. I came across this issue. I cannot run my application several times at the same time anymore, I get a message (in German):
die Auslagerungsdatei ist zu klein, um diesen Vorgang…

user1331044
- 83
- 1
- 11
0
votes
1 answer
OpenCV IPLImage Not getting recycled
Im trying to use cvBlob to do some processing but I noticed its using all of the RAM and i noticd this
IplImage* image2=cvCloneImage(&(IplImage)thresh);
IplImage *labelImg=cvCreateImage(cvGetSize(image2), IPL_DEPTH_LABEL, 1);
cvb::CvBlobs…

Arhowk
- 901
- 4
- 11
- 22
0
votes
1 answer
About memory management in OpenCV
I'm sorry if this may seem like a silly question...
I've a doubt about cvLoadImage in OpenCV:
IplImage *frame;
for (unsigned int i = 0; i < LENGTH; i++)
{
frame = cvLoadImage(filename.c_str());
// do something...
}
For each call of…

vdenotaris
- 13,297
- 26
- 81
- 132
0
votes
0 answers
OpenCV incompatible types in assignment
my code is giving me this error and I don't understand what is the problem.
Can someone explain to me what is the problem? Thank you!
This is the error code:
circleDetection.c:133: error: incompatible types in assignment of ‘IplImage*’ to…

Moirae
- 139
- 3
- 14
0
votes
2 answers
Dynamic array of IplImage - no match for ‘operator=’ error
I'm using dynamic array of IplImage type for storing some images (I would like to do the same thing with cvHistogram but get the same error) from which I need to extract histogram data. Unfortunately I'm getting the error and have no knowledge how…

Moirae
- 139
- 3
- 14
0
votes
2 answers
converting Mat to iplimage* in opencv
I am new in opencv and c++. what is the difference between iplimage and iplimage*?
I used cvHaarDetectObjects that need iplimage* in arg[1]. I have a frame in the format of Mat. how could I convert Mt to iplimage*? (I found a way to convert mat…

es rashedi
- 1
- 1
- 1
- 1