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

  • Home
  • SEARCH
  • 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 8017351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:49:11+00:00 2026-06-04T20:49:11+00:00

I need to save image, which is already displayed in cvNamedWindow. The problem is

  • 0

I need to save image, which is already displayed in cvNamedWindow. The problem is that the source image may already be changed, so I need to fetch it somehow from the window.
As an alternative solution, currently displayed frame can be saved in IplImage object, but maybe someone knows how to get IplImage directly from cvNamedWindow?
Thanks in advance.
PS. Using opencv in c++ project.

  • 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-04T20:49:12+00:00Added an answer on June 4, 2026 at 8:49 pm

    If you need to do that, you got it all wrong.

    Let’s assume you are working with a multithread application that captures the frame in the 1st thread, and displays them with cvNamedWindow() in the 2nd thread. In this case, you need to to prevent the frame from being accessed by those 2 threads simultaneously: investigate mutexes.

    In case your application has only one thread, all you need to do is execute cvWriteFrame() right before the cvNamedWindow() call to save the frame to the disk, or copy the frame to another IplImage using:

    IplImage* copy_img = cvCreateImage(cvGetSize(orig_img), orig_img->depth, orig_img->nChannels);
    
    cvCopy(orig_image, copy_img, NULL); 
    

    Just don’t forget to release the image after you’ve done with it to free allocated resources.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to save an camera image from my application to the desktop so
I need a logic by which mediwiki generate the image folder and save the
(sorry for my english) I need save an image in the application path and
I need to take an uploaded image, resize it, and save it to the
My purpose is to process one image from image library, and save this image
I am trying to extract the palette from a 5-6-5 (16bit) bitmap image that
I am working on an application in which i need to save table data
I want to save an image which has two options (.Png or .Jpeg),so i
Is there any example Qt code which displays the image from an unsigned char
I am using an Applet to save image from clipboard. The image is saved

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.