1、BRITISH STANDARD BS ISO/IEC 12087-3:1995 Implementation of ISO/IEC12087-3:1995 Information technology Computer graphics and image processing Image Processing and Interchange (IPI) Functional specification Part3: Image Interchange Facility (IIF)BSISO/IEC12087-3:1995 This BritishStandard, having been
2、prepared under the directionof the Information Systems Technology Assembly, was published under the authorityof the Standards Boardand comes into effect on 15July1995 BSI03-2000 The following BSI references relate to the work on this standard: Committee reference IST/31 Draft for comment92/68769 DC
3、ISBN 0 580 24405 9 Committees responsible for this BritishStandard The preparation of this BritishStandard was entrusted to Technical Committee IST/31, Computer graphics and image processing, upon which the following bodies were represented: Department of Trade and Industry (National Engineering Lab
4、oratory) Department of Trade and Industry It Standards Unit (Itd6a) Joint Information Systems Committee Rutherford Appleton Laboratory Amendments issued since publication Amd. No. Date CommentsBSISO/IEC12087-3:1995 BSI 03-2000 i Contents Page Committees responsible Inside front cover National forewo
5、rd ii Foreword v Text of ISO/IEC 12087-3 1BSISO/IEC12087-3:1995 ii BSI 03-2000 National foreword This BritishStandard reproduces verbatim ISO/IEC12087-3 and implements it as the UK national standard. This BritishStandard is published under the direction of the Information Systems Technology Assembly
6、 whose Technical Committee IST/31 has the responsibility to: aid enquirers to understand the text; present to the responsible international committee any enquiries on interpretation, or proposals for change, and keep UK interests informed; monitor related international and European developments and
7、promulgate them in the UK. NOTEInternational and European Standards, as well as overseas standards, are available from Customer Services, BSI,389 Chiswick High Road, London W44AL. A British Standard does not purport to include all the necessary provisions of a contract. Users of British Standards ar
8、e responsible for their correct application. Compliance with a British Standard does not of itself confer immunity from legal obligations. Summary of pages This document comprises a front cover, an inside front cover, pagesi andii, theISO/IEC title page, pagesii to vi, pages1 to210 and a back cover.
9、 This standard has been updated (see copyright date) and may have had amendments incorporated. This will be indicated in the amendment table on the inside front cover.ISO/IEC12087-3:1995(E) ii BSI 03-2000 Contents Page Foreword v Introduction 1 1 Scope 1 2 Normative references 3 3 Definitions and ab
10、breviations 4 3.1 Definitions 4 3.2 Abbreviations 4 4 The IPI-IIF architecture 4 4.1 The IPI-IIF Data Format and the IPI-IIF Gateway 4 4.2 Interworking between IPI-IIF Gateway and IPI-PIKS 5 5 The IIF data format (IIF-DF) 6 5.1 Basic features of the IIF-DF 6 5.1.1 Objects that are expressed in the I
11、IF-DF 8 5.1.2 Syntax notation 8 5.1.3 Encoding of syntax entities 8 5.1.4 Rules that are not formally expressed within the IIF syntax 8 5.2 Structure of the IIF-DF syntax 9 5.2.1 Overall structure 9 5.2.2 Image structures 9 5.2.3 Placement of pixel fields 12 5.2.4 Encoding of pixel fields 12 5.2.5 A
12、ttributes, annotations, and image-related data 12 5.3 Syntax entities of the IIF-DF 13 5.3.1 Entities for the description of the entire IIF-DF 16 5.3.2 Entities for the description of images 24 5.3.3 Entities for the description of the representation of pixel values 42 5.3.4 Entities for the descrip
13、tion of image-related data 53 5.3.5 Entities for the description of image attributes 71 5.3.6 Entities for the description of image annotations 101 5.3.7 Entities for the description of basic data objects 104 6 IPI-IIF Conformance 111 6.1 Standardized profiles for the IIF-DF 111 6.1.1 Full PIKS prof
14、ile of the IIF-DF 111 6.1.2 Foundation profile of the IIF-DF 113 6.2 Registered profiles for the IIF-DF 115 6.2.1 Application-specific semantics 115 6.2.2 Constraining methods 116 6.3 Extension methods 117 7 IPI-IIF Gateway functionality 117 7.1 Basic categories of IPI-IIF Gateway functions 117 7.1.
15、1 Gateway control and error handling 118 7.1.2 Import and export functionality 118 7.1.3 Parse and generate functionality 119 7.1.4 Data structure access functionality 119 7.1.5 Data structure manipulation functionality 120 7.1.6 Compression and decompression functionality 121 7.1.7 Application-orie
16、nted functionality 123 7.2 IPI-IIF gateway-internal tables 123 7.3 Survey of IPI-IIF Gateway functions 123 7.4 IPI-IIF Gateway functionality by manual pages 124 7.5 PIKS-IIF interworking protocol 170ISO/IEC12087-3:1995(E) BSI 03-2000 iii Page Annex A (normative) List of IIF-DF syntax entities and co
17、mponent names 171 Annex B (informative) List of IPI-IIF Gateway function-caused errors 182 Annex C (informative) Typical IIF image interchange scenario 184 Annex D (informative) Examples of IIF-DF images 186 D.1 Simple binary image 186 D.2 Colour image with colourimetric attributes 187 D.3 Tiled ima
18、ge 188 Annex E (informative) Example program for the use of the IPI-IIF Gateway 190 Annex F (informative) IIF-DF syntax diagrams 192 Annex G (informative) Bibliography 209 Figure 1 Interworking of the IPI-IIF Gateway and the IPI-PIKS for imagedata interchange 7 Figure 2 IIF-DF parser and constraint
19、checker within the IPI-IIF Gateway 9 Figure 3 Overall structure of the IIF-DF syntax 10 Figure 4 Representation of image structures within the IIF-DF syntax 11 Figure 5 Exemplary ports of the IPI-IIF Gateway 119 Figure 6 Location of image compression and decompression processes 122 Figure C.1 Image
20、interchange scenario (example) 185 Figure F.0.1 Example diagram 192 Figure F.0.2 IIF syntax entity FullDataFormat 192 Figure F.0.3 IIF syntax entity FormatDescriptor 193 Figure F.0.4 IIF syntax entity ContentsHeader 193 Figure F.0.5 IIF syntax entity ContentsElement 193 Figure F.0.6 IIF syntax entit
21、y Image 194 Figure F.0.7 IIF syntax entity ImageStructure 194 Figure F.0.8 IIF syntax entity CompoundImageArray 195 Figure F.0.9 IIF syntax entity CompoundImageRecord 195 Figure F.0.10 IIF syntax entity CompoundImageList 195 Figure F.0.11 IIF syntax entity CompoundImageSet 196 Figure F.0.12 IIF synt
22、ax entity FundamentalImageStructure 196 Figure F.0.13 IIF syntax entity PixelStructure 197 Figure F.0.14 IIF syntax entity ReferenceUnit 197 Figure F.0.15 IIF syntax entity SingleDataUnit 198 Figure F.0.16 IIF syntax entity BuiltinEncodedDataUnit 198 Figure F.0.17 IIF syntax entity ExternalReference
23、 199 Figure F.0.18 IIF syntax entity ImageRelatedData 199 Figure F.0.19 IIF syntax entity Histogram 200 Figure F.0.20 IIF syntax entity LookUpTable 200 Figure F.0.21 IIF syntax entity RegionOfInterest 201 Figure F.0.22 IIF syntax entity Ellipse 201 Figure F.0.23 IIF syntax entity IntervalND 201 Figu
24、re F.0.24 IIF syntax entity SetOfCoordinates 202 Figure F.0.25 IIF syntax entity NeighbourhoodArray 202 Figure F.0.26 IIF syntax entity StaticArray 202 Figure F.0.27 IIF syntax entity FeatureList 202 Figure F.0.28 IIF syntax entity ValueBoundsCollection 203ISO/IEC12087-3:1995(E) iv BSI 03-2000 Page
25、Figure F.0.29 IIF syntax entity PixelRecord 203 Figure F.0.30 IIF syntax entity Tuple 203 Figure F.0.31 IIF syntax entity ImageAttribute 203 Figure F.0.32 IIF syntax entity MetricDescription 204 Figure F.0.33 IIF syntax entity DimesionMapping 204 Figure F.0.34 IIF syntax entity MetricTransformation
26、204 Figure F.0.35 IIF syntax entity ChannelCharacteristics 205 Figure F.0.36 IIF syntax entity CompandorDescription 205 Figure F.0.37 IIF syntax entity ColourRepresentation 205 Figure F.0.38 IIF syntax entity StandardizedSpace 206 Figure F.0.39 IIF syntax entity NonStandardizedSpace 206 Figure F.0.4
27、0 IIF syntax entity CIEXYZCoordinate 207 Figure F.0.41 IIF syntax entity Primaries and CIExyCoordinate 207 Figure F.0.42 IIF syntax entity NonStandardizedNBand 207 Figure F.0.43 IIF syntax entity PIKSControl 208 Figure F.0.44 IIF syntax entity ImageAnnotation 208 Figure F.0.45 IIF syntax entity Basi
28、cDataObject 209 Table 1 Representation of pixel data types 47 Table 2 IIF-DF syntax entities which allow for registration 116 Table 3 IIF-DF syntax entities which contain components of type ANY 117 Table 4 Survey of IIF Gateway functions 124 Table 5 Data type naming conventions for the IIF Gateway 1
29、25 Table 6 Mapping between ASN.1 entities and function parameter types 125 Table 7 List of IIF-DF syntax entities and components 172ISO/IEC12087-3:1995(E) BSI 03-2000 v Foreword ISO (the International Organization for Standardization) and IEC (theInternational Electrotechnical Commission) form the s
30、pecialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees, established by the respective organization, to deal with particular fields of technical activity. ISO and IEC techni
31、cal committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of international technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC1. Dr
32、aft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least75% of the national bodies casting a vote. International Standard ISO/IEC12087-3 was prepared by the Joint Technica
33、l Committee ISO/IEC JTC1, Information technology. ISO/IEC12087 initially consists of three parts, under the general title Information technology Computer graphics and image processing Image Processing and Interchange (IPI) Functional specification: Part1: Common architecture for imaging; Part2: Prog
34、rammers imaging kernel system application program interface; Part3: Image Interchange Facility (IIF). Annex A forms an integral part of this part of ISO/IEC12087. Annex B to Annex G are for information only.vi blankISO/IEC12087-3:1995(E) BSI 03-2000 1 Introduction ISO/IEC12087-1 establishes the conc
35、eptual and architectural framework for ISO/IEC12087. In particular, it defines the types of all image data objects, image-related data objects, and attributes that may be interchanged by means of the IPI-IIF. ISO/IEC12087-2 establishes the specification of the Programmers Imaging Kernel System (IPI-
36、PIKS). ISO/IEC12087-3 provides a data format specification and an application program interface specification. The IIF data format may be used for image data interchange in open, heterogeneous environments. It may also serve as a local file format for imaging applications, especially in conjunction
37、with ISO/IEC12087-2. In future, the IIF data format could be used by telecommunication standards. Examples are future versions of File Transfer, Access, and Management (FTAM), ISO/IEC8571; the Message Oriented Text Interchange Systems (MOTIS), ISO/IEC10021 (also known as Message Handling System (MHS
38、), CCITT Recommendation X.400). Thus the IIF data format could become part of application-oriented OSI communications protocols. Within the IIF data format (IIF-DF), compressed images may be specified and interchanged. For this purpose, the following standards are referenced: CCITT Recs. T.4 and T.6
39、 (Facsimile) ISO/IEC11544 (JBIG) ISO/IEC10918 (JPEG) ISO/IEC11172 (MPEG-1) Image data streams that conform to the encoded representation of compressed image data specified by these standards may be included in the IIF-DF. For instance, a time series image can be represented as an array of time slice
40、s, each of which is encoded according to the JPEG Standard. Furthermore, the IIF-DF allows images to be represented through the combination of compressed parts with uncompressed parts. It is also possible to use multiple compression methods within a single IIF-DF-conformant image. For instance, a co
41、lour image can be represented as tiled images whereby some tiles are encoded according to the lossy mode of the JPEG Standard and others according to the lossless mode. For detailed information concerning compressed data streams and compression/decompression functionality, refer to5.3.3 and7.1.6, re
42、spectively. There are various possibilities for interaction and data exchange between the IPI-PIKS domain and the IPI-IIF domain. Both domains are controlled by the application via application program interfaces (APIs). For a detailed description of the interworking between the IPI-PIKS and the IPI-
43、IIF refer to clause4 (theIPI-IIF architecture) and clause7 (the IPI-IIF Gateway functionality). For a description of the relation between the types of objects that may be interchanged by means of the IPI-IIF and those types of objects that may be processed by the IPI-PIKS, refer to clause6 (the prof
44、iles for the IIF data format). Refer also to ISO/IEC12087-1. 1 Scope This part of ISO/IEC12087 facilitates the interchange of digital images. For this purpose, conceptual, architectural, and functional definitions of the Image Interchange Facility (IPI-IIF) are established. ISO/IEC12087-3 consists o
45、f two major parts, the: a) IIF data format (IIF-DF) definition by means of a formal syntax, described according to the Abstract Syntax Notation One (ASN.1) refer to clause5, and the b) IIF Gateway definition by means of a manual page description of the functionality of an Application Program Interfa
46、ce (API) refer to clause7. An IPI-IIF-conformant implementation has to fulfill the functionality specification of the IIF Gateway, as outlined in clause7. Besides the IIF Gateway, there may be information processing systems (softwaresuch as parsers, generators, etc.) which read and/or write the IIF-
47、DF. The IPI-IIF is based on the definitions described in ISO/IEC12087-1, the “Common Architecture for Imaging”. The IPI-IIF, as a whole, may be characterized briefly as follows: c) By means of the IIF data format and Gateway, image data objects and image-related data objects are transported to and f
48、rom application environments.ISO/IEC12087-3:1995(E) 2 BSI 03-2000 d) By means of the full PIKS profile of the IPI-IIF data format (i.e.,a format for data interchange between IPI-IIF and IPI-PIKS), image data objects and image-related data objects are imported to and exported from the Programmers Ima
49、ging Kernel System (IPI-PIKS), defined in ISO/IEC12087-2. e) The IPI-IIF facilitates the storage of image data objects and image-related data objects in a variety of pre-defined storage modalities, including different periodicity organizations, such as pixel-interleaving or band-interleaving. f) This part of ISO/IEC12087 defines syntax of image data (and image-related data) streams. The encoding of IIF data types is defi