Thats how an image size is calculated and it is stored. Then putting these values in the formula, we getīut since its not a standard answer that we recognize, so will convert it into our format.Ĭonverting it into bytes = 8388608 / 8 = 1048576 bytes.Ĭonverting into kilo bytes = 1048576 / 1024 = 1024kb.Ĭonverting into Mega bytes = 1024 / 1024 = 1 Mb. And since it is a gray scale image, it has 256 different shades of gray or it has bits per pixel. It means that if you have an image, lets say this one:Īssuming it has 1024 rows and it has 1024 columns. The formula for calculating the size is given below. The size of an image depends upon three things. Image storage requirementsĪfter the discussion of bits per pixel, now we have every thing that we need to calculate a size of an image. In case of 8bpp, the pixel value that denotes gray color is 127 or 128bpp (if you count from 1, not from 0). Gray color is actually the mid point of black and white. When you calculate the black and white color value, then you can calculate the pixel value of gray color. In case 8 bpp, 0 denotes black, and 255 denotes white. In case of 1 bpp, 0 denotes black, and 1 denotes white. The value that denotes white color can be calculated as : But there is no fixed value that denotes white color. Remember, 0 pixel value always denotes black color. We have previously seen in the tutorial of concept of pixel, that 0 pixel value denotes black color. We will see more about other color formats and image types in the tutorial of image types. The famous gray scale image is of 8 bpp, means it has 256 different colors in it or 256 shades.Ĭolor images are usually of the 24 bpp format, or 16 bpp. You can easily notice the pattern of the exponentional growth.
![bit resolution calculator bit resolution calculator](http://2.bp.blogspot.com/-HKI1tYLD3W4/UBrqMi-eLTI/AAAAAAAABVM/RnH64LvBK2g/s1600/NetApp+Usable+Space+Calculator.jpg)
This table shows different bits per pixel and the amount of color they contain. The table for some of the bits and their color is given below. Now as we said it in the beginning, that the number of different colors depend on the number of bits per pixel. Put 1 in the formula you get 2, put 2 in the formula, you get 4. If we devise a formula for the calculation of total number of combinations that can be made from bit, it would be like this.
![bit resolution calculator bit resolution calculator](http://a2.mzstatic.com/us/r30/Purple71/v4/85/c6/59/85c659ba-4e83-4b0c-f8ab-30d7e20d53dc/sc1024x768.jpeg)
How many two bits combinations can be made. How many numbers can be represented by one bit. The number of different colors in an image is depends on the depth of color or bits per pixel. dBm to Watt converter Stripline Impedance calculator Microstrip line impedance Antenna G/T Noise temp.Bpp or bits per pixel denotes the number of bits per pixel. Using the ADC formula, this number is being converted to binary value.įollowing ADC conversion formula or equation is used for this 8 bit Analog to digital converter calculator.ĭAC converter and ADC converter Related LinksĨ bit and 10 bit DAC calculator n bit DAC resolution calculator ADC basics and ADC types DAC basics and DAC types What is Dynamic Range of ADC Useful converters and calculatorsįollowing is the list of useful converters and calculators. The calculator above first calculates numerical digital output and then uses ADC conversion formula. The figure-1 above depicts simple pin diagram of n-bit ADC converter. OUTPUT: 250 numeric (decimal), 1111 1010 (binary) n-bit ADC calculator formula | ADC conversion formula
![bit resolution calculator bit resolution calculator](https://sc01.alicdn.com/kf/HTB1vnmqahTI8KJjSspiq6zM4FXaY/222300686/HTB1vnmqahTI8KJjSspiq6zM4FXaY.jpg)
OUTPUT: 5 numeric (decimal), 101 (binary)Īnalog to digital converter calculator EXAMPLE#2: INPUTS: n = 3, Analog input (V_in) = 5.5V, Ref_voltage (V_ref) = 8 V The Analog to digital converter calculator mentions ADC conversion formula used. This n-bit ADC calculator takes analog input and provides a digital output. ADC calculator - Analog to digital converter calculator, ADC conversion formula