What Am I Doing Wrong with My Picture Combinations Calculation?

  • Context: Graduate 
  • Thread starter Thread starter john.phillip
  • Start date Start date
  • Tags Tags
    Combinations Picture
Click For Summary
SUMMARY

The discussion centers on calculating the total number of unique images that can be generated from a 45x45 pixel resolution with an 8-bit color depth, resulting in 256 colors. The initial calculation of 2^8^2025 yields approximately 4.8521x10^4876 combinations. However, considering the broader palette of 2^24 colors and the combinatorial aspect of choosing 256 colors from this palette, the total number of possible images is approximately 1.9 × 10^6219. This figure, while immense, is relatively small compared to other combinatorial scenarios, such as the vast number of ways to choose friends.

PREREQUISITES
  • Understanding of pixel resolution and color depth in digital imaging
  • Familiarity with combinatorial mathematics and exponential notation
  • Knowledge of color palettes and indexed color formats
  • Basic concepts of image rendering and variations due to camera movement
NEXT STEPS
  • Explore combinatorial mathematics to deepen understanding of image generation possibilities
  • Research advanced color theory and its application in digital imaging
  • Learn about different image formats and their impact on color representation
  • Investigate the effects of camera movement on image variation and quality
USEFUL FOR

Digital artists, graphic designers, computer vision researchers, and anyone interested in the mathematical aspects of image generation and color theory.

john.phillip
Messages
107
Reaction score
11
I would like do estimate the total number of different pictures I can represent by choosing a specific resolution and color depth, the number I'm getting seems somewhat low, so I'm wondering what am I doing wrong ?

Let the picture size be 45x45pixels with a color depth of 8 bits (2^8 = 256 different colors).
So 45x45=2025 total pixels. Each pixel can have 1 out of 256 colors assigned with repetition (for example, I can have a white image) and the order is important (for images which at least 1 pixel have a different assigned color) but reflected images could be discarded. I'm including an example to give size perception.

Therefore, the total number of combinations will be 2^8^2025 = 4.8521x104876

I was expecting a much larger number, one current processors could not calculate directly, any thoughts ?
 

Attachments

  • example_45x45x256.gif
    example_45x45x256.gif
    1.8 KB · Views: 516
Physics news on Phys.org
The image you give is an *indexed* gif: there are only 256 total colors, but there are 2^24 colors to choose from. So there are (2^24 choose 256) ≈ 3 × 10^1342 different palates, and each palate has 256^2025 possibilities, for roughly (2^24 choose 256) × 256^2025 ≈ 1.9 × 10^6219 total pictures. (It's not exact because some pictures with different palates are the same, but the difference is small since most pictures will use all the colors.)

Is that small? I don't know. For comparison, there are 10^20 to 10^30 specks of dust on the Earth and about 10^80 particles in the universe, so it's certainly large compared to anything physical. But there are 10^4279358 ways to play the "choose a million friends on Earth" game, so it's small compared to that.
 
Last edited:
You are right, 256 colors were choosen from a larger palette, so this should be considered.

I think I'm feeling it is a small number, because the subject in the attached example could be photographed under slightly different angles, magnifications and lighting conditions and that would create a very large combination, but probably small compared to the total pixel\pallete combinations you calculated.

So, considering that at this resolution each pixel is insensitive to the camera movement, when this movement is smaller than, let's say 2mm in anyone of the three directions, one could draw a sphere with the center on the subject focal plane and the radius towards the camera sensor. If the radius is known, it is possible to distribute a finite number of points on the imaginary sphere surface, where each point represents the sensor position. Given a maximum and minimum range for the sphere radius, one could calculate the total number of different pictures that could be taken. Now I have the sense that this number is really insignificant if compared with the total estimated combinations for this resolution.

With this in mind, I'm starting to feel what would be the probability of generating one specific variation of the picture by rendering a random sequence of pixel colors.

I'm satisfied, thanks for your time.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 16 ·
Replies
16
Views
10K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
12K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K