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 7009389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:51:21+00:00 2026-05-27T21:51:21+00:00

I want to feed my extracted character bitmaps (.bmp files) into some kind of

  • 0

I want to feed my extracted character bitmaps (.bmp files) into some kind of matrices that can be processed in C++ and then fed into the artificial neural network e.g. the network will take 72 inputs – each one as a pixel of the binarized picture of dimensions 6 x 12.

For instance: I have a binarized bitmap of size let’s say 40 x 80. I want to make out of it a structure that will have dimensions 6 x 12 and it would consist of my scaled bitmap. So I need a bitmap library that would allow me to scale the bmps and then fed them into the ANN. (As some of you stated already, they will be stored already as a matrix of so kind so no transformations will be necessary)

What can I use in here ?

  • 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-05-27T21:51:22+00:00Added an answer on May 27, 2026 at 9:51 pm

    It seems that any image processing library could suit your needs. So, my advice would be to use a library that is as simple as possible to integrate in your build process.
    In this context, the CImg library is extremely easy to us, as it is composed of a simple .h file.

    Concerning your need, a possible implementation would be

    #include "CImg.h"
    using namespace cimg_library;
    
    int main(int argc,char **argv) 
    {
      CImg<unsigned char> image("img/logo.bmp");
    
      //Simple resize with nearest neighbour interpolation
      //image = image.resize(64, 64); 
    
      //If you want to specify the interpolation type
      image = image.resize(64, 64, -100, -100, 4);//The last param specifies the interpolation type 
      //\param interpolation_type Method of interpolation :
      //   -1 = no interpolation : raw memory resizing.
      //  - 0 = no interpolation : additional space is filled according to \p border_condition.
      //  - 1 = nearest-neighbor interpolation.
      //  - 2 = moving average interpolation.
      //  - 3 = linear interpolation.
      //  - 4 = grid interpolation.
      //  - 5 = bicubic interpolation.
      //  - 6 = lanczos interpolation.
    
      CImgDisplay main_disp(image,"Image resized");
    
      //This last part of code is not usfeul for you, it is only used to display the resized image
      while (!main_disp.is_closed() ) 
        main_disp.wait();
      return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We want to implement a News feed where a user can see messages broadcasted
I have an RSS feed and I want to integrate each item into it
I need the list of files that were compiled during this run. I want
I want feed when some one tagged user in photo currently i am only
I have been developing an application that can publish content like some sort of
I have a method search that I want to feed an input stream and
I have a bunch of png images that I want to feed through ffmpeg
I want add new Feed item on entity persist and update. I write this
I want to display data feed from an external database in a sidebar in
I want to use Goolge AJAX Feed API in my C# console application to

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.