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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:50:58+00:00 2026-06-04T02:50:58+00:00

How can I calculate the histogram of an image using parallel Computing? Histogram of

  • 0

How can I calculate the histogram of an image using parallel Computing? Histogram of an image in serial is easy, but I don’t have any idea about calculating it in Parallel.

Any idea, algorithm, source code or a helpful link would be appreciated.

I am using MPI.

  • 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-04T02:51:00+00:00Added an answer on June 4, 2026 at 2:51 am

    Here is the idea:

    First you scatter the image rowwise (if you program in C) or columnwise (if you program in Fortran) using MPI_Scatter() or MPI_Scatterv() (with scatterv you can distribute the image to a number of processes that is not an integer divisor of the number of rows/columns).

    Then every process computes the histogram of its part of the image. Let the histogram be stored in an integer array local_histogram of 256 elements (I assume the images are grayscale).

    At the last step a global reduction with summation is performed with MPI_Reduce():

    MPI_Reduce(local_histogram, histogram, 256, MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD);
    

    Afterwards the full global histogram would be in the histogram array at process with rank 0.

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

Sidebar

Related Questions

How I can calculate packet loss from Flex . Any Idea? Thanks in advance.
Is there any PHP/GD function that can calculate this: Input: image width, image height
How can I calculate the maximum histogram value when making a plot? I want
I can calculate an address Segment:Offset as Segment * 0x10 + Offset . But
I know that I can calculate the display area for a given font using
Does someone have example in Perl of how I can calculate the broadcast IP
i have two lines: AB and BC I can calculate normals of the lines
I have 2 coordinates, the source, and the destination. I can calculate the distance
This is supposed to calculate the histogram of an 8-bit grayscale image. With a
How can you calculate large factorials using C#? Windows calculator in Win 7 overflows

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.