Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8810015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:01:14+00:00 2026-06-14T03:01:14+00:00

All my OpenCV functions are working perfectly fine. But cvResize() is not found by

  • 0

All my OpenCV functions are working perfectly fine. But cvResize() is not found by the compiler. I guess this function is not installed during installation.
The following program tells me the error that cvResize identifier is undefined

Is it possible to download this function separately and use it? How?

#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <ctype.h>
#include <iostream>

using namespace std;

int main( int argc, char** argv )
{

    // Create an IplImage object *image 
    IplImage *source = cvLoadImage( argv[1]);
    // Here we retrieve a percentage value to a integer
    int percent = atoi(argv[3]);

    // declare a destination IplImage object with correct size, depth and channels
      IplImage *destination = cvCreateImage
    ( cvSize((int)((source->width*percent)/100) , (int)((source->height*percent)/100) ), source->depth, source->nChannels );

    //use cvResize to resize source to a destination image
    cvResize(source, destination);

    // save image with a name supplied with a second argument
      cvSaveImage( argv[2], destination );

    return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:01:15+00:00Added an answer on June 14, 2026 at 3:01 am

    You are missing an include:

    #include "opencv2/imgproc/imgproc_c.h"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in OpenCV but I don't think there is a function for this.
I want to calculate phase correlation of function in OpenCV. I've found http://nashruddin.com/phase-correlation-function-in-opencv.html but
NOTE: I do believe that this is not an openCV related problem but since
all. We're trying to get some intersect collisions working, but the problem experience is
I got Ubuntu 12.04 32bit running in VMware. I installed OpenCV 2.4.2 after this
I'm on OS X 10.7 Lion and have all the dev tools installed, but
When I use CMake with FIND_PACKAGE( OpenCV REQUIRED ) , all components of OpenCV
I am trying to make a movie with openCV. I can put all the
All my files can be found on GitHub: https://github.com/Integralist/Passage (just in case you need
All, Apologies in advance - this question might be too open-ended for SO. Anyway...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.