Civil Engineer's Forum-FORUM8
Set this page as your homepage QR

Facebook - FORUM8

Twitter - FORUM8

instagram - FORUM8

YouTube - FORUM8

 Sitemap | Terms of Service | Inquiries | English translation site | Japanese | English | Korean | Vietnam | Francais

 Online Seminar: ● CG/VR Course (6)
Supervised by: CG-ARTS Associationhttps://www.cgarts.or.jp/
Vol.6 Image compression and input/output course

 Generally, image data is often compressed for input/output processing, data transmission, and exchange because its size can be large in its raw form. There are various compression techniques available. When working with images, it is essential to understand their characteristics and choose the appropriate technique based on the intended application.

● Image quantization
 Analog images, such as paintings and silver halide photographs, have a continuous range of tones. However, when converting these to digital images, they are divided into a grid of sample points (pixels), and each pixel is assigned a value from a predetermined set of levels. This process of representing the tone of a pixel with discrete numerical values is called quantization. The simplest form of quantization is binarization, which divides tones into two categories: white or black. For example, an image that assigns values from 256 shades of gray will have 256 gradations. The more levels of gradation available, the smoother the representation; also, the finer the sampling interval, the more detailed the reproduction of the image, but the larger the data size.

● Resolution

 The sampling interval is expressed as the number of sample points per unit length. This number of sample points determines the resolution. For example, when used for printing, it is common to set the input resolution to around 350 dpi (dots per inch), which means dividing an image into a grid of 350 cells per inch, with each cell representing one pixel or dot. For instance, if you input a 5-inch x 5-inch photo at 350 dpi, the resulting image will be 1,750 pixels x 1,750 pixels. When printing a 2,048-pixel x 1,536-pixel image taken with a 3-megapixel digital camera in 2L size (7 inches x 5 inches = 178 mm x 127 mm), the resolution along the longer side is approximately 2,048 / 7 (inches) = about 293 dpi. However, if you enlarge it to A4 size (297 mm x 210 mm) and print it, the resolution along the longer side becomes 2,048 / 25.4 (mm) = 11.7 inches, resulting in a resolution of 2,048 / 11.7 (inches) = 175 dpi.
 On the other hand, for a full-color image where each pixel represents 256 (which is 2 to the power of 8) shades for each of the RGB colors, the data size would be 2,048 x 1,536 x 24 (bits) = 75,497,472 bits (which equals 9,437,184 bytes). In reality, image data from digital cameras and other sources is often compressed using formats like JPEG.

● Reversible/irreversible compression methods

 To compress an image, which means to reduce the amount of data, an image encoding process is performed that replaces pixel values with codes. There are various methods for encoding, and one classification method distinguishes between reversible and irreversible compression based on whether complete restoration is possible. Reversible compression allows the original image to be restored. Irreversible compression prioritizes the compression ratio by discarding information that is difficult for humans to perceive; therefore, when decompressed, it results in a degradation of image quality. Numerical data such as programs must be compressed reversibly, but in the case of image data, even if reversible encoding is applied to vast amounts of data, there are limitations on the compression ratio, so irreversible compression is often used.
 For images used in VR, such as textures, it is essential to reduce the file size to its limit while maintaining a certain level of image quality.

● Still image formats
 The following lists the main image file formats.
 Furthermore, UC-win/Road supports JPEG and BMP image formats; texture images are often in JPEG format, while BMP is used for textures that require black transparency settings.

Name Reversible Explanation
BMP
(.bmp)
○ Because it uses an uncompressed format, there is no image degradation, but the data size becomes very large. It is a standard image format for Windows. It supports multiple quantization methods.
JPEG
(.jp .jpeg)
Normally
×
The degree of compression can be set. Lower compression results in less image degradation, while higher compression results in more degradation. It is suitable for natural images and gradients like photographs, and it is implemented in most digital cameras. It has a high compression rate and is widely used with many compatible software programs. Once compressed and saved, this non-reversible compression method cannot be restored to its original quality. JPEG2000, developed as its successor, offers reversible compression, but its adoption has been slow due to delayed support in Windows and major browsers.
GIF
(.gif)
○ Supports up to 256 colors. Suitable for logos with 256 colors or less, solid color fills, icons, and illustrations in an animation style. The file size decreases as the number of colors is reduced. Supports animated GIFs that can be viewed in browsers, as well as transparency settings.
TIFF
(.tif)
○ It does not degrade and is essentially an uncompressed format. It is used for high-quality storage and data exchange. While the file size can be large, compression is also possible.
PNG
(.png)
○ It supports an alpha channel to specify transparency, and theoretically can handle up to 280 trillion colors (maximum 64 bits: 16 bits each for RGB plus 16 bits for the alpha channel). It is a reversible compression method developed with internet usage in mind. While it has a higher compression rate than GIF, it does not support animation, and its file size is larger when used with full color images.
Post Script
(.ps)
○ Supports vector representation. It is widely used for representing print data that includes characters and graphics. It uses an uncompressed format.
PDF
(.pdf)
○
×
It was developed as a foundation for PostScript, with the aim of being viewed on computers. Depending on the settings, it can be reversible or irreversible. It has a small file size, is suitable for printing, and supports hyperlinks, making it widely used in distribution materials and manuals.

● Video formats: This section lists the main video file formats.

Name Explanation
AVI
(.avi)
A standard video format for Windows. It can be played using Windows Media Player. Many compression methods are used.
WindowsMedia
(.wmv)
It can be played with Windows Media Player. It supports audio data and is suitable for video streaming on the web.
Real Media
(.rm)
It can be played with RealPlayer. It supports audio data and is widely used for video streaming on the web.
QuickTime
(.mov)
It supports various compression formats, including MPEG-4. Originally designed as a multimedia software suite for macOS, it is also available for use on Windows.
MPEG-1/-2
(.mpg)
File formats for videos compressed using MPEG-1 or MPEG-2; they have the same file extension.
MPEG-4
(.mp4)
A file format for videos compressed using MPEG-4, which has high compatibility with QuickTime.


JPEG format:
For print sizes of this quality, there is little difference in appearance, and the data size can be significantly reduced. Increasing the compression rate further reduces the file size, but it can lead to color variations.

Original image output: UC-win/Road Version 3.4
VR data: "Seashore Scenery - Scenery of Xitang"
        (From RoadDB sample data / related to ports and airports)
▲Original image: BMP file, 3.8 MB (1400 x 925 pixels)
▲125KB High quality (image quality 85) ▲34KB, low quality (image quality setting 20)


FORUM8 Certified VR Engineer Page

http://www.forum8.co.jp/product/ucwin/road/engtest/engtest.htm

References: ・"Visual Information Processing – An Introduction to CG and Image Processing," CG-ARTS Association, 2008


  
Previous page    Index Next page
(Featured in the late autumn issue of Up&Coming '09)
Go back
Up&Coming

FORUM8


Contact information




■ [User Introductions]
sugiko Corporation, Technical Sales Department
Scaffolding Safety Consulting Department

Mie University, Graduate School of Engineering
Seika Digital Image Co., Ltd.
Infranet Co., Ltd.






>> Product comprehensive catalog


>> Premium membership services
>> Financial support

Recently released products
■ Electrical Media Delivery Support Tool Version 19
■ Retaining wall design, 3D reinforcement detailing, Version 26
■ Bridge Maintenance Plan System Version 7
■ Calculation for concrete slab placement (compliant with R7/H29 road standards), Version 2

Campaign in progress
■ Within 2 years of release, enjoy a 30% discount plus 30,000 FPB points back
■ Smart download
■ Design Festival 2026, exclusive for visitors
■ Drone school discount

Seminar and event calendar
Upcoming seminars
11/26  Metavernia F8 VPS experience
11/27  Introduction to Structural Analysis
12/2  Engineer programming
  Introduction to yoga experience
12/3  DesignBuilder experience
12/4  Reinforced concrete foundation

Software/Support Services
VR software(Virtual reality)
《UC-win series》
Road simulator
• Driving simulator
• Micro-simulation
Evacuation analysis and simulation
>> Other VR software
FEM analysis software
・3-dimensional plate dynamic nonlinear analysis
・2-dimensional dynamic nonlinear analysis
・A comprehensive finite element analysis system
>> Other FEM analysis software
Civil engineering, architecture, and design software
《UC-1 Series》
・Structural analysis/cross-section
Bridge superstructure
・Bridge substructure components
Foundation work
Temporary construction
Road construction and earthworks
・Harbors
・Hydraulic engineering
・Subsurface investigation and analysis
・CAD/CIM systems, construction accounting
• Maintenance and management, earthquake risk
Architecture
・Ships/Evacuation
>> Other civil engineering, construction, and design software
Cloud
《Supercomputer Cloud®》
・Supercomputer cloud services
《VR-Cloud®》
・Real-time VR system
Analytical support services/support
・UC-win/Road support system
・Design verification support service
・Engineer's Studio® analysis support
・Ground investigation analysis support services
・EXODUS/SMARTFIRE analysis support
・XPSWMM analysis support services
Building energy simulation
• 3D laser scanning and modeling
・3D modeling services
• 3D report and drawing services
>> Other support services
Various solutions
Seismic resistance assessment/analysis
・Design of steel bridges
・New bridge construction methods
Architectural design
・Local governments
・Medical VR systems
・Parking solutions
・ECO solutions
>> Other solutions