Below are the different types of images of Albert Einstein (binary, gray scale, true color, and indexed). Also shown are the properties of each image which was derived using imfinfo of scilab: "imfinfo("imagefilname",'verbose') ".
Binary
FileSize: 3971
Format: JPEG
Width: 118
Height: 145
Depth: 8
StorageType: indexed
NumberOfColors: 256
ResolutionUnit: inch
XResolution: 72.000000
YResolution: 72.000000
www.flickr.com
Gray Scale
FileSize: 3621
Format: JPEG
Width: 109
Height: 150
Depth: 8
StorageType: indexed
NumberOfColors: 256
ResolutionUnit: inch
XResolution: 72.000000
YResolution: 72.000000
www.newz.dk
True Color
FileSize: 5236
Format: JPEG
Width: 145
Height: 122
Depth: 8
StorageType: truecolor
NumberOfColors: 0
ResolutionUnit: centimeter
XResolution: 72.000000
YResolution: 72.000000
www.flickr.com
Indexed(Portable Network Graphics)
FileSize: 2938 Format:
JPEG Width: 130
Height: 113
Depth: 8
StorageType: truecolor
NumberOfColors: 0
ResolutionUnit: centimeter
XResolution: 72.000000
YResolution: 72.000000
us.geocities.com
Measuring the size of an image
Here is a scanned image of the ace of diamond card. The ruler serves as a reference measurement for the size of a pixel (1mm=13pixels or .005917sq. mm/pixel).
Below are the images of the center diamond (true color, gray scale, and binary) and the corresponding properties. To convert the image to binary, the histogram of the gray scale image was analyze (see plot below). We could see a clear separation at around 220. This was used as the threshold.
True Color
FileSize: 3549
Format: JPEG
Width: 160
Height: 211
Depth: 8
StorageType: truecolor
NumberOfColors: 0
ResolutionUnit: inch
XResolution: 96.000000
YResolution: 96.000000
Gray Scale
FileSize: 2466
Format: JPEG
Width: 160
Height: 211
Depth: 8
StorageType: indexed
NumberOfColors: 256
ResolutionUnit: inch
XResolution: 72.000000
YResolution: 72.000000
Binary
FileSize: 2584
Format: JPEG
Width: 160
Height: 211
Depth: 8
StorageType: indexed
NumberOfColors: 256
ResolutionUnit: inch
XResolution: 72.000000
YResolution: 72.000000
Histogram Plot
Finally, we measure the area of the diamond. We use the technique from the previous activity utilizing the follow command of scilab and the Green's Theorem. But before this, the image have to be inverted.
Inverted Image
The measured area is 10265 pixels. Using the conversion factor(.005917 sq. mm/pixel), the measured area is 60.74 sq. mm. The analytic area (using pixel counting) is 10464 pixels or 61.92 sq. mm. The percent error is just 1.9%.
I want to give myself a 10 since I was able to successfully finish the task .
Acknowledgment to Lei for the scanned images, Jeric and Ed for their help with Scilab code.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment