A Data Conversion Program for μShape™ Binary File
Ding, Yi (2010)
Ding, Yi
Turun ammattikorkeakoulu
2010

Creative Commons Attribution-NonCommercial-ShareAlike 1.0 Finland
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2010061412138
https://urn.fi/URN:NBN:fi:amk-2010061412138
Tiivistelmä
The work of data conversion hidden beneath the sophisticated computer world happens more often than people can ever imagine. File data is one of the most primary elements that have been “shaped” in different ways in order to fulfill a particular file purpose. If some of the data structures are obsolete or a file function needs to be altered, data conversion is taking place.
In this thesis conversion from μShape software which generates a file specific format “*.fis” to standard uncompressed bitmap file format “*.bmp” is implemented. The empirical part of conversion was conducted on a C language program c which was separated into two individual sub-programs. The first program was used to read in a fis file generated by μShape and write out a standard bitmap file. In this program, the deviation data as well as metrology needed to concrete the bitmap later can be obtained from file header information of FIS file. The second program inherits the successful achievement of first objective and arranges and modifies all the file data into a scaled color map. This is the key step to make the output of bitmap file optical observation possible, since the generated color in this case is the measurement of the surface deviation of the image.
Although the encoded way of data may vary considerably from file to file, the aim of the project is to attempt explore the conversion technique as well as to give general guidelines especially when it comes to secret specifications of a file format.
In this thesis conversion from μShape software which generates a file specific format “*.fis” to standard uncompressed bitmap file format “*.bmp” is implemented. The empirical part of conversion was conducted on a C language program c which was separated into two individual sub-programs. The first program was used to read in a fis file generated by μShape and write out a standard bitmap file. In this program, the deviation data as well as metrology needed to concrete the bitmap later can be obtained from file header information of FIS file. The second program inherits the successful achievement of first objective and arranges and modifies all the file data into a scaled color map. This is the key step to make the output of bitmap file optical observation possible, since the generated color in this case is the measurement of the surface deviation of the image.
Although the encoded way of data may vary considerably from file to file, the aim of the project is to attempt explore the conversion technique as well as to give general guidelines especially when it comes to secret specifications of a file format.