WO1991011797A1 - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
WO1991011797A1
WO1991011797A1 PCT/JP1991/000111 JP9100111W WO9111797A1 WO 1991011797 A1 WO1991011797 A1 WO 1991011797A1 JP 9100111 W JP9100111 W JP 9100111W WO 9111797 A1 WO9111797 A1 WO 9111797A1
Authority
WO
WIPO (PCT)
Prior art keywords
measurement area
image data
display
code
level
Prior art date
Application number
PCT/JP1991/000111
Other languages
French (fr)
Japanese (ja)
Inventor
Satoshi Yoneda
Original Assignee
Omron Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corporation filed Critical Omron Corporation
Publication of WO1991011797A1 publication Critical patent/WO1991011797A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0007Image acquisition
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35141Specify side of zone, line, circle for allowed region

Definitions

  • the invention of the present invention relates to an image processing apparatus, and in particular, for inspection of a product or a semi-finished product, a characteristic amount is obtained from image data obtained by imaging an object by an imaging apparatus.
  • a measurement area (window) of a predetermined shape and size is preset at a predetermined position on the screen.
  • the article or the like is imaged so that the whole or a part of the image of the article or the like to be inspected falls within the measurement area.
  • Features are extracted from the image data obtained by imaging the articles and the like, and inspection, recognition, measurement, etc. are performed based on the features.
  • the type of image displayed on a display device is a gray level in which an object is represented by a gray level (density level or gray level).
  • the measurement area for the extraction processing of the feature quantity and the like is displayed in a special form on the screen. For example, the measurement area is displayed slightly brighter (with a relatively high gray * level) than its surroundings.
  • characters representing the results of inspection, recognition, measurement, etc. of the object, messages, and the like are also displayed.
  • Figures 9a, 9b and 9c show examples of images displayed on a display device using image data obtained by a conventional image processing device. Is shown. In these figures, A and B indicate the measurement areas.
  • FIG. 9a shows an image represented by the gray level 'de night.
  • the display based on the gray-level image data is performed in the measurement areas A and B and all other areas.
  • a predetermined level is uniformly added to the gray-level image data representing the inside of the measurement areas A and B, and the measurement areas A and B are relative to their surroundings. It is somewhat clearly expressed.
  • Figure 9b shows a display example based on binary image data that has been binarized using a predetermined threshold level. Even on this display screen, the measurement areas A and B and the other areas are binary-coded using the same threshold level. The image represented by is displayed. The measurement areas A and B are represented slightly more clearly than their surroundings.
  • Figure 9c is different from the above This is an example of an image display based on image data binarized using a threshold level.
  • FIG. 10 shows the configuration of a conventional image processing apparatus for creating a video signal for performing the display shown in FIGS. 9a to 9c.
  • Either a gray level, analog image signal or binary image data is input by the switching switch.
  • the gray-level analog image signal is level-converted to an appropriate level by a resistor R 1 and input to an adder circuit 70.
  • Binary image data is a signal of 1 or 0 (H level or L level). This binary image data is converted into an analog signal of an appropriate level corresponding to data 1 or 0 by a level conversion circuit 72 including a resistor R2. This is input to the adder 72.
  • the measurement area designation data is 1-bit data that indicates whether each pixel is inside or outside measurement areas A and B for each pixel. It is created and stored in memory (not shown). This measurement area designation data is synchronized with the gray level analog image signal or the binary image data, and is stored in the above memory according to the scanning order.
  • Level conversion circuit? 3 converts the input measurement area designation data into an appropriate analog signal level corresponding to the data (1 or 0) and outputs the converted signal to the adder circuit 70.
  • Character image data is data that represents the characters to be displayed on the screen, and consists of one bit per pixel. This data is also converted into a corresponding analog level by a level conversion circuit 74 including a resistor R 4, and applied to an addition circuit 70.
  • the adder circuit 70 receives the gray-level analog image signal or the analog signal representing the binary image data, and performs the measurement. Area designation data and character image data-The analog signals representing the evening are added, and output as a video signal. This video signal is provided to a display device (not shown).
  • a threshold level for creating a binary image displayed in measurement area A and a threshold level for creating a binary image displayed in measurement area B. It is not possible to set the threshold level to a different level. Therefore, comparing the binary images created using different threshold levels with each other will determine if the threshold level is appropriate. It was difficult to judge what was going on. Also, binary images cannot be displayed in measurement areas A and B, and gray-level images cannot be displayed in areas other than the measurement area.
  • the gray-level image showing the object and a part of it It is not possible to compare with the binary image located in the measurement area, and check whether the binary image in the measurement area is properly binarized. There was a problem that it was difficult to use, and it was not easy to use.
  • the threshold level for creating a binary image displayed in a plurality of measurement areas can be set to different levels independently of each other.
  • the purpose is to provide an image processing device that can be used.
  • the present invention also provides different threshold levels for creating binary images that are displayed in the measurement area and the other areas, respectively, independently of each other. It is an object of the present invention to provide an image processing device that can be set to a bell.
  • This invention can also display a binary image in the measurement area and a gray-level image in the other areas, and conversely, the measurement area.
  • the gray level image can be displayed on the screen, and the binary image can be displayed on the other area.
  • the purpose of the present invention is to provide an image processing device that can be used.
  • An image processing apparatus includes an image data generating means for generating gray-level image data representing an object, and a plurality of measurement areas set on a screen.
  • Individual measurement area designation data storage means for storing individual measurement area designation data for each pixel indicating whether the measurement area is inside or outside the measurement area.
  • a plurality of binary values for binarizing the level-level image data using a plurality of different threshold levels and outputting the binary image data The measurement area setting code that indicates whether or not to display each of the measurement areas separately from the outside of the measurement area, and the measurement area Display in the measurement area indicating whether to display a gray level image or a binary image Specify the threshold level for binarization in the case of state code and binary image display, and the threshold specification code in the measurement area and the part other than the measurement area. In the case of displaying the gray-level image or displaying the binary image, the display form outside the measurement area and the binary image are displayed.
  • the threshold level Display mode setting means for setting the threshold value designation code outside the measurement area, and the image data generating means power, and the given gray level ® Image measurement data, individual measurement area designation data p given from the above-mentioned individual measurement area designation data p, and given from the above-mentioned plurality of binarization means 2
  • the input of the value image data is input, and the measurement mode setting code, the display mode code within the measurement area, and the threshold value specification code within the measurement area given from the _t ⁇ display mode setting means Code, display form outside the measurement area Code and the threshold value outside the measurement area code, and the level of image to be given to the display device for each pixel for each pixel.
  • a display control means for outputting a signal is provided.
  • the display control means includes a display selection means and a conversion table memory.
  • the display selecting means creates and outputs the measurement area designation data according to the individual measurement area designation data corresponding to the measurement area designated by the measurement area designation code.
  • the individual measurement area designation data is specified. Select the binary image data of the binarization level specified by the threshold specification code in the measurement area for the measurement area to be displayed in the measurement area outside the measurement area. Indicates that a binary image should be displayed. At this time, one of the binary image data at the binarization level specified by the threshold specification code outside the measurement area is selected, and either one of the binary image data is selected.
  • Means to output the data according to whether the pixel is inside or outside the measurement area and a method to output the data according to the display mode code inside the measurement area and the display mode code outside the measurement area. There is no means to output a display format that indicates whether to display a ray-level image or a binary image ⁇
  • the conversion table memory is used for the measurement area designation data, binary image data, display form data, and gray-level image data.
  • data representing the gray level of the image data to be output is stored, and the measurement area designation data, Binary image data and display form data, and gray levels corresponding to the gray level image data provided from the image data generating means.
  • Output level image data is used for the measurement area designation data, binary image data, display form data, and gray-level image data.
  • the display control means converts the gray level image data output from the conversion table memory into a corresponding analog video signal. / A conversion means is further provided.
  • a means for storing character image data to be displayed Each image read from this character image data storage means
  • the raw character image data is given to the above conversion table 'memory.
  • the conversion table memory is composed of the above-mentioned measurement area designation data, binary image data, display form data, and gray level image.
  • the data representing the gray level of the image data to be output is stored, and the above display selection method is used.
  • Measurement area designation data, binary image data and display form data provided from the step, and the above-mentioned image data generation step strength, etc. Outputs the level-level image data and the gray-level image data corresponding to the character image data provided from the above-mentioned character image memory.
  • the image data generating means is, for example, image data memory.
  • the image data generating means may be constituted by an A / D conversion means for converting an input analog video signal into gray level image data. .
  • the image data generating means includes: an imaging means for imaging an object; and an analog video signal output from the imaging means, converted to gray-level image data. AZD conversion means.
  • the image data generating means includes: an image pickup means for picking up an image of an object; and an analog video signal output from the image pickup means, which is a gray-level image.
  • the A / D conversion means for converting the data into data and the converted image data are described. It can also be composed of image data and memory.
  • one binarization level for binarizing the delay-level image data is set. .
  • only one measurement area may be used.
  • gray-level images are not displayed, and the measurement area and other areas are not included in all areas.
  • a value image may be displayed. In this case, only one measurement area may be used.
  • only the binary image is displayed in the measurement area, and only the gray level image is displayed in the area other than the measurement area. You can do it.
  • only the gray level image may be displayed in the measurement area, and only the binary image may be displayed in the area other than the measurement area.
  • the threshold level for creating a binary image may be only one level.
  • the image processing apparatus of the present invention it is possible to use a plurality of threshold levels for creating a binary image.
  • a binary image created using different threshold levels can be displayed separately in multiple measurement areas, or separately in the measurement area and other areas. This is also possible.
  • the area with the binary image It is also possible to display gray-level images separately. In this way, a binary image or gray level image created by a plurality of different threshold levels on the display screen is divided into the same areas. Since it is displayed at the time, it is possible to visually confirm the suitability of the binarization processing of the image data, and the usability is improved.
  • the density of the image displayed on the display device depends on the gray level of the output image data set in the conversion table memory. It is possible to easily adjust the density of the displayed image by changing the gray level data of this memory.
  • FIG. 1 is a block diagram showing a configuration of an embodiment of an image processing apparatus according to the present invention.
  • Fig. 2 shows the measurement area set on the display screen of the display device.
  • Fig. 3 is a block diagram showing the configuration of the display control unit.
  • Figures 4a, 4b, 4c and 4d show the format codes of the setting codes stored in the registers. .
  • Fig. 5 is a circuit diagram showing the detailed configuration of the display selection circuit.
  • Figure 6 shows the contents of the conversion table memory ⁇
  • Figure 7 shows an example of the display screen.
  • Figures 8a, 8b and 8c show the setting codes for the display screen shown in Figure 7.
  • Figures 9a, 9b, and 9c show display examples of image data obtained by a conventional image processing device.
  • Fig. 10 is a block diagram showing the configuration of a conventional image processing apparatus. O Best mode for carrying out the invention
  • FIG. 1 shows a configuration of a product inspection device or a recognition device provided with the image processing device according to the present invention.
  • the inspection / recognition device for the article is composed of an imaging device ⁇ , an image processing device 10 and a display device 18.
  • the image processing device 10 includes an AZD conversion circuit 16, an image data memory U, a measurement processing unit 12, an individual measurement area designation data memory U, a character image data, a memory 14, It comprises a display controller 15 and 19 CPUs for controlling these components.
  • the imaging device ⁇ is composed of a camera including a solid-state electronic imaging device such as a CCD, and is a group that represents an imaged object. Outputs a level-level analog image signal.
  • This analog image signal is supplied to an AZD conversion circuit 16 of the image processing device 10.
  • the AZD conversion circuit 1 if there are a plurality of bits for each pixel, It is converted to 8-bit gray-level digital image data.
  • This delay level image data is stored in the image data memory 11.
  • the black level force 0 and the white level force 255 are respectively supported.
  • a plurality of measurement areas A, B, C and D are set in advance on the screen. These measurement areas can be circular as shown in the figure, rectangular, or any shape.
  • the measurement area is set in advance by the user through an input device (not shown).
  • the individual measurement area designation data memory 13 is located inside the measurement area for each of the plurality of measurement areas set by the user as described above. This is to store the individual measurement area designation data that indicates whether each pixel is outside or outside.
  • the individual measurement area designation data is composed of one bit for each pixel, and is 1 if the pixel is inside the measurement area and 0 if it is outside the measurement area. . In this embodiment, it is assumed that four measurement areas A, B, C, and D are set to simplify the explanation.
  • the measurement processing unit U temporarily stores the gray level digital image data or image data memory 11 directly supplied from the AZD conversion circuit 16.
  • Gray level digital image data given after storage, and individual measurement area designation data and memory U Using the measurement area designating data, in the measurement areas A, B, C, and D, extraction processing of the feature of the object, inspection processing or recognition processing of the object, and the like are performed. Control is performed under the control of the CPU 19. Character image data for expressing the results, messages, etc. of this measurement process using characters is created under the control of the CPU 19, and character image data is created. It is stored in the memory 14. This character image data is also composed of one bit per pixel, and the data of the pixels constituting the character is 1 and the data of the other pixels is 0. Set o
  • the display control unit 15 Given to Preferably, reading of each data from these memories 11, 13, and 14 for each pixel is performed in synchronism with vertical and horizontal scanning. This is done for each dress.
  • the display control unit 15 also has a setting code indicating the display mode. Power ⁇ Given by CPU 19. As will be described later, a video signal according to the display mode represented by the setting code is output from the display control unit 15 and is supplied to the display device 18. The captured image of the object is displayed on the display device 18 in the display mode described above.
  • FIG. 3 shows the configuration of the display control unit 15.
  • the display control unit 15 includes four binarization circuits 21, 22, 23, and 24, and registers ⁇ , ⁇ , and ⁇ that store setting codes given from the CPU 19. And a display selection circuit 40, a conversion table memory 41, and a DZA conversion circuit 42.
  • threshold levels S l and S are used as threshold levels used to generate binary image data. 2, S 3, and S 4 are set, and the binarization circuits 21 to 24 output gray-level image data to be input to these thresholds, respectively. Level discrimination is performed at levels S1 to S4, and binarization is performed. The binary image data output from the binarization circuits ⁇ to 24 is supplied to the display selection circuit 40. Binary image data is composed of one bit per pixel, with data 1 representing the white level and data 0 representing the black level. .
  • the display selection circuit 40 is also provided with the individual measurement area designation data read from the memory 13 representing the four measurement areas A, B, C, and D, respectively. It is.
  • the display mode setting code includes a measurement area setting code indicating whether to display each of the four measurement areas separately from the outside of the measurement area. For the measurement area, a display mode code in the measurement area indicating whether to display a gray level image or a binary image, and 2 in the case of a binary image display. Displays threshold level specification code for specifying threshold level for value conversion and gray level image for parts other than the measurement area Specify the display form code outside the measurement area that indicates whether to display a binary image or a binary image. In the case of displaying a binary image, specify the threshold level for binarization. It consists of a threshold specification code in the measurement area.
  • register 31 has a cell that can store a 12-bit code. Three cells are allocated to each of the four measurement areas A to D. In each cell, the lower 2 bits represent the threshold level and the upper 1 bit represents the display mode in three cells.
  • the threshold level S1 is 0 and the threshold level S2 is According to 0 1
  • the threshold level S 3 is specified by 10
  • the threshold level S 4 is specified by 11. 1 bit
  • 1 is set for binary image display, and 0 is set for gray-level image display.
  • the display mode code outside the measurement area and the threshold value specification code force outside the measurement area are set for the part other than the measurement area.
  • This register 32 has four cells. If any of the codes set in the four cells is 1, the display of a binary image has been specified as the display mode for the part other than the measurement area. become . In this case, it is used to create a binary image depending on which of the four cells has code 1 set.
  • a threshold level is specified. That is, the four cells correspond to the threshold levels S1 to S4, respectively. For example, if the code set in the register 32 is 0001, it indicates that the threshold level S1 is specified. If the code value is 0 0 0, the threshold value is set to S2.
  • the 4-bit code set in the register 32 is all 0, that is, when it is 0 0 0 0, the display form is used for the part other than the measurement area. This means that the gray level image display has been selected.
  • the register 33 stores the measurement area setting code.
  • This register 33 also has four cells, and these cells correspond to the four measurement areas A, B, C, and D, respectively. are doing .
  • the least significant bit is set to 1.
  • the second place bit is set to 1. This means that in the case of all bitmaps 1, the display in all the measurement areas A to D should be distinguished from those outside the measurement area.
  • a special indication of the measurement area, which is distinguished from the outside of the measurement area is, for example, that the inside of the measurement area is slightly lighter than its surroundings. If all of the 4-bit codes set in register 33 are 0, it means that no special display is made for all measurement areas. Yes.
  • the setting codes set in these registers # 3 to # 33 are given to the display selection circuit 40.
  • FIG. 7 shows an example of the display mode. Examples of each setting code for setting this display mode are shown in FIGS. 8a to 8c.
  • FIGS. 8a to 8c Examples of each setting code for setting this display mode are shown in FIGS. 8a to 8c.
  • Fig. 8c since the measurement area setting code set in the register 33 is 111, other measurement areas A, C, and other than the measurement area B are excluded. For D and D, the display is different from the part outside the measurement area.
  • FIG. 8b since all the command forces set in the register 32 are 0, the part outside the measurement area is the gray level image data. Is displayed using.
  • Fig. 8a the 3-bit setting code for measurement area A is shown. Since the display mode code of the most significant bit is 1, a binary image is displayed in the measurement area A, and the threshold value specification code of the lower 2 bits is 0.
  • the binary image displayed in the measurement area A is created using the threshold level S1.
  • the display mode code of the highest 1 bit of the 3-bit setting code for the measurement area B is 0, so the measurement area B is gray.
  • the level image is displayed.
  • the display mode code of the highest 1 bit is 1, a binary image is displayed, and the lower 2 bits are displayed. Since the threshold value specification code is 0 1, the binary image data is created using the threshold level S 2.
  • the display selection circuit 40 is provided with a binary image data and memory provided from the binarization circuits 21 to 24, as will be described later in detail. Measurement is performed based on the individual measurement area designation data for the given four measurement areas and the setting codes given from registers 31 to 33. Area data, binary image data and display form data are created, and these data are given to the conversion table memory 41.
  • the measurement area data is data indicating whether a different display should be made for the measurement area than in the measurement area.
  • the display form data is data indicating whether to display a binary image or a gray level image.
  • the conversion template memory 41 includes the image data memory 11 in addition to the above-described three types of data provided from the display selection circuit 4G.
  • the given gray-level image data and the text image data given from the character image data / memory 14 are input.
  • Conversion table / memory 41 is character image data, display form data, measurement area designation data, binary image data, and gray level image data.
  • the data representing the gray level of the image data to be output corresponding to the data (the data representing the gray level of the image data) is prepared in advance. It has been set.
  • Display selection circuit 40 Measurement area data, binary image data, display format data, image data, memory input from the memory 11 Input gray from the memory 11
  • the character image data input from the level image data and the character image data / memory H is the address of the conversion table / memory 41. .
  • the gray level data of the output image set in the storage location specified by this address is converted to the conversion table memory. Will be output.
  • the gray-level data output from the conversion table memory 41 is then stored in the DZA conversion circuit 42 in a level corresponding to this level.
  • the character image data is not displayed (character image data is 0), and the display mode data is gray-level image display (display mode data is not displayed). 0), indicating that the measurement area designation data is outside the measurement area (measurement area designation data is 0), the gray scale of the input image data is used.
  • the level is compressed slightly and output from the conversion template memory. The compression ratio is higher as the gray level is higher (closer to white). For example, when the gray level of the input image data is 255, image data having a gray level of 200 is output. When the gray level of the input image data is 1 ⁇ 0,? Image data with 8 gray levels is output. In the measurement area (measurement area specification data is 1), the gray level compression ratio of the input image data is set to be slightly smaller.
  • the image data having the gray level of 230 is obtained. Is output. Comparing the outside of the measurement area and the inside of the measurement area, the conversion tape memory and the gray level of the image data output from the measurement area are larger in the measurement area. It's gone. As a result, the image is displayed slightly brighter inside the measurement area than outside the measurement area.
  • the binary image data display In the binary image data display (display mode data is 1), if it is outside the measurement area (measurement area designation data is 0), the binary image data 1 and 0 are displayed.
  • the image data having the gray levels of 200 and 0, respectively, are output from the conversion table memory 41.
  • the measurement area In the measurement area (measurement area designation data is 1), the images with the gray levels of 230 and 30 for the binary image data 1 and 0, respectively.
  • Data is output from the conversion table memory 41.
  • the inside of the measurement area is displayed slightly brighter than the outside of the measurement area (only for gray and level 3Q). It will be.
  • FIG. 5 shows the detailed configuration of the display selection circuit.
  • the logical circuit 50 is composed of four AND circuits 50a and an OR circuit 50b which performs an OR logic of the outputs of these AND circuits.
  • the measurement area setting code for each measurement area set in the register ⁇ and the measurement area given from the individual measurement area specification data memory 13 The AND logic for each individual measurement area designation data is taken by the AND circuit 50a, and the results are shown.
  • ⁇ R logical data of the data is the measurement area designation data. Therefore, in the measurement area designation data, a certain pixel belongs to one of the measurement areas A to D, and the measurement area is distinguished from the outside of the measurement area. It is 1 only when the display is set to be set, and 0 otherwise.
  • the logic circuit 51 includes four AND circuits 51a.
  • the individual measurement area designation data and the display mode code (upper 1-bit code) for each area set in the register 31 correspond to each other.
  • Each is provided to the AND circuit 51a. Therefore, when it is set to display a binary image in each measurement area, the output power of the logic circuit 51 is set to 1 for the pixels belonging to the measurement area. Become .
  • the four outputs of the logic circuit 51 are given to the AND circuit 56a of the logic circuit 56, respectively.
  • Each of the AND circuits 56a is supplied with the binary image data selected by the selection circuit 52 corresponding to each measurement area in Book A.
  • the selection circuit 52 is provided with a manifold multiplexer 52a for each of the measurement areas, and each of these multiplexers 52a is provided with a multiplexer.
  • a threshold value designation code (lower 2 bits) for each measurement area set in the register 31 is given to the corresponding multi-plexer 52a.
  • Each of the multiplexers 52a is provided with a given threshold value. Selects binary image data that has a threshold level specified by the code.
  • the binary image data output from the AND circuit 56a of the logic circuit 56 is output as binary image data via an OR circuit 56b and an OR circuit 58. Therefore, this binary image data uses the threshold level specified for the measurement area for each pixel within the set measurement area. It represents the binary image data created by using.
  • the outputs of all the AND circuits 51 a of the logic circuit 51 are input to the OR circuit 55.
  • the output of the OR circuit 55 becomes 1 only when the pixel belongs to the measurement area and the display of the binary image is set. If the area is not specified, the value is 0.
  • the logic circuit 54 includes an AND circuit 54a and an OR circuit 54b. Codes for specifying the threshold level outside the measurement area set in the register 32 are input to one input terminal of the AND circuit 54a, respectively. . Binary image data is input to the other input terminals of these AND circuits 54a, respectively. Since the OR logic of the output of the AND circuit 54a is obtained by the OR circuit 54b, the output of the 0R circuit 54b is specified for the pixels included outside the measurement area.
  • the 4-bit code set in the register 32 is input to the NAND circuit 53. If the 4-bit code of the register 32 is all 0 with the force applied (the gray-level image should be displayed outside the measurement area. In this case, the output of the NAND circuit 53 is 1. The output of this NAND circuit is given as one input of the NAND circuit 59a of the logical circuit 59. On the other hand, the output of the OR circuit 55 is given to the NAND circuit 59a as the other input. The output of the NAND circuit 59a indicates that the pixel belongs to the outside of the measurement area and that the gray level image should be displayed outside the measurement area. It is set to 0 when it is set, and set to 1 when it is set to display a binary image outside the measurement area.
  • the output of the NAND circuit 59a is output as display form data via an OR circuit 59b.
  • the output of the OR circuit 55 indicates that the pixel belongs to the measurement area and the gray level image should be displayed for the measurement area. Becomes 0, and a binary image is displayed in the measurement area as described above. It is set to 1 when this is set.
  • the output of the OR circuit 55 is output as display form data via the 0 R circuit 59b.
  • the display mode data is set to 0 when gray-level images are to be displayed regardless of the inside and outside of the measurement area, and when binary images are to be displayed. 1 and o Industrial availability
  • the image processing apparatus captures an object including a product or a semi-finished product by an imaging device, and extracts a characteristic amount or the like from the obtained image data. It is used for inspecting, measuring, and recognizing items using these features.

Abstract

The image data representing an imaged object are output from an imaging device (17), and converted through an A/D converter circuit (16) whose output is stored in an image data memory (11). There is provided a display screen divided into predetermined measurement regions. Another data memory (13) stores in advance region designation data that indicate whether individual pixels are inside or outside the measurement regions. The image data and the region designation data stored in the memories (11) and (13) are read out in synchronism for each of the pixels and sent to a display control unit (15). A CPU (19) sets codes to the display control unit (15), such as a code indicating that a special form of display is required for a given region; a code indicating which of binary or halftone images is to be displayed inside and outside a given region, respectively; and a code for designating the threshold level for preparing binary image data. Depending upon the codes thus set, the display control unit (15) forms and outputs video signals that represent either a binary image or a halftone image for display both inside and outside each region.

Description

明 細 画像処理装置 技術分野  Details Image processing equipment Technical field
の 発明 は 画像処理装置 に 関 し , 特 に 製品 ま た は半 の 検査等の た め に , 対象物を撮像装置 に よ り 撮像 し て 得 ら れ る 画 像 デ ー タ か ら 特 徴量 等 を 抽 出 し , 検 査 , 認識 , 計 測 等 を 行 う た め の 画 像 処 理装 置 に 関 す ο 背景技術  The invention of the present invention relates to an image processing apparatus, and in particular, for inspection of a product or a semi-finished product, a characteristic amount is obtained from image data obtained by imaging an object by an imaging apparatus. Ο background technology related to image processing equipment for extracting, inspecting, recognizing, measuring, etc.
こ の 種の 画像処理装置 に お い て, 画面の 所定位置 に は所定の形状, 大 き さ の計測領域 ( ウ ィ ン ド ウ ) が あ ら か じ め設定 さ れて い る 。 検査 さ れ る べ き 物品等の 画 像の 全体 ま た は一部が こ の 計測領域内 に入 る よ う に, 物品等が撮像 さ れ る 。 物品等の 撮像 に よ り 得 ら れ た 画 像デ一 夕 か ら 特徴量等が抽 出 さ れ, こ の 特徴量等 に基 づ い て検査, 認識, 測定等が行わ れ る 。  In this type of image processing device, a measurement area (window) of a predetermined shape and size is preset at a predetermined position on the screen. The article or the like is imaged so that the whole or a part of the image of the article or the like to be inspected falls within the measurement area. Features are extracted from the image data obtained by imaging the articles and the like, and inspection, recognition, measurement, etc. are performed based on the features.
表示装置 に表示 さ れ る 画像の 種類 に は, 一般 に , 対 象物を グ レ イ · レ ベ ル (濃度 レ ベ ル, ま た は 濃淡 レ べ ル) で表わ す グ レ イ · レ ベ ル画像 お よ び グ レ イ · レ べ ル画像デ ー タ を所定 の し き い値で レ ベ ル弁別 し て得 ら れ る 2 値デー タ に よ っ て表現 さ れ る 2 値画像が あ る 。 特徴量等の 抽 出処理の た め の計測領域 は 画面上 に お い て特別の形態で表示 さ れ る 。 た と え ば, 計測領域 は そ の 周 囲 よ り も 若干明 る く (相対的 に 高 い グ レ イ * レ ベ ルで) 表示 さ れ る 。 さ ら に表示装置の 表示画面 に は対 象物の検査, 認識, 計測等の 結果や メ ッ セ ー ジ等を表 わす 字 も 表示 さ れ る 。 In general, the type of image displayed on a display device is a gray level in which an object is represented by a gray level (density level or gray level). Binary image expressed by binary data obtained by level discrimination of level image and gray level image data with a predetermined threshold value There is. The measurement area for the extraction processing of the feature quantity and the like is displayed in a special form on the screen. For example, the measurement area is displayed slightly brighter (with a relatively high gray * level) than its surroundings. In addition, on the display screen of the display device, characters representing the results of inspection, recognition, measurement, etc. of the object, messages, and the like are also displayed.
第 9 a 図, 第 9 b 図お よ び第 9 c 図 は, 従来の 画像 処理装置 に よ っ て得 ら れた 画像デ 一 夕 を用 い て表示装 置 に表示 さ れ る 画像の 例 を示 し て い る 。 こ れ ら の 図 に お い て A お よ び B は計測領域を 示 し て い る 。  Figures 9a, 9b and 9c show examples of images displayed on a display device using image data obtained by a conventional image processing device. Is shown. In these figures, A and B indicate the measurement areas.
第 9 a 図 は グ レ イ · レ ベル ' デ 一 夕 に よ っ て表わ さ れ る 画像を示 し て い る 。 計測領域 A お よ び B な ら び に そ れ以外の 領域の い ずれ も に お い て グ レ イ · レ ベル画 像デ ー タ に基づ く 表示が行わ れて い る 。 計測領域 A お よ び B 内 を表わす グ レ イ · レ ベ ル画像デ ー タ に は一律 に 所定 レ ベ ルが加算 さ れ, 計測領域 A お よ び B は そ の 周 囲 よ り も 相対的 に若干明 る く 表現 さ れて い る 。  FIG. 9a shows an image represented by the gray level 'de night. The display based on the gray-level image data is performed in the measurement areas A and B and all other areas. A predetermined level is uniformly added to the gray-level image data representing the inside of the measurement areas A and B, and the measurement areas A and B are relative to their surroundings. It is somewhat clearly expressed.
第 9 b 図 は, 所定の し き い値 レ ベ ルを用 い て 2 値化 さ れた 2 値画像デ ー タ に基づ く 表示例 を示 し て い る 。 こ の 表示画面 に お い て も , 計測領域 A お よ び B と そ れ 以外の 領域 と は共 に 同 じ し き い値 レ ベ ルを 用 い て 2 値 {匕 さ れた デ ー タ に よ っ て表現 さ れ る 画像が表示 さ れて い る 。 計測領域 A お よ び B は そ の 周 囲 よ り も 相対的 に 若干明 る く 表現 さ れて い る 。 第 9 c 図 は上記 と は異な る し き い 値 レ べ ノレ を用 い て 2 値化 さ れ た 画像 デ ー タ に 基づ く 画像表示の 例 を 示す も の で あ る 。 Figure 9b shows a display example based on binary image data that has been binarized using a predetermined threshold level. Even on this display screen, the measurement areas A and B and the other areas are binary-coded using the same threshold level. The image represented by is displayed. The measurement areas A and B are represented slightly more clearly than their surroundings. Figure 9c is different from the above This is an example of an image display based on image data binarized using a threshold level.
第 1 0図 は, 第 9 a 図 か ら 第 9 c 図 に 示す表示 を 行 な う た め の 映像信号を作成す る 従来の 画像処理装置 の 構 成を示 し て い る 。  FIG. 10 shows the configuration of a conventional image processing apparatus for creating a video signal for performing the display shown in FIGS. 9a to 9c.
'切替 ス ィ ッ チ Πに よ っ て グ レ イ · レ べ ノレ · ア ナ ロ グ 画像信号 ま た は 2 値画像デー タ の い ずれか一方が入力 さ れ る 。 グ レ イ · レ ベ ル · ア ナ ロ グ 画 像信号 は 抵抗 R 1 に よ っ て適 当 な レ ベ ル に レ ベ ル変換 さ れ加算回路 7 0に入力す る 。 2 値画像デ ー タ は 1 ま た は 0 ( H レ べ ル ま た は L レ ベル) の信号で あ る 。 こ の 2 値画像 デ ー 夕 は抵抗 R 2 を含む レ ベ ル変換回路 7 2に よ っ て デ ー タ 1 ま た は 0 に対応す る 適当 な レ ベ ル の ア ナ ロ グ信号 に 変換 さ れ, 加算回路 7 2に 入力す る 。 計測領域指定デ ー 夕 は計測領域 A お よ び B の 内側で あ る か外側 で あ る か を 画素 ご と に 表わ す 1 ビ ッ ト の デ ー タ で あ り , あ ら か じ め作成 さ れ メ モ リ (図示略) に記憶 さ れて い る 。 こ の 計測領域指定 デ ー タ は グ レ イ · レ ベ ル · ア ナ 口 グ画 像信号 ま た は 2 値画像 デ ー タ に 同期 し て, 走査の 順序 に 従 つ て上記 メ モ リ か ら 1 画素分ずつ 順次読 出 さ れ, 抵抗 R 3 を 含む レ ベ ル変換回路 7 3に 与え ら れ る 。 レ べ ル 変 換 回 路 ? 3は 入 力 す る 計 測 領域 指 定 デ ー タ を そ の デ ー タ ( 1 ま た は 0 ) に 応 じ た適当 な ア ナ ロ グ信号 レ ベ ル に 変換 し , 加算回路 7 0に 与え る 。 文字画像 デー タ は画面上 に表示すべ き 文字を 表わす デ ー タ で あ り , 1 画素あ た り 1 ビ ッ ト で構成 さ れ る 。 こ の デ ー タ も ま た抵抗 R 4 を含む レ ベ ル変換回路 7 4に よ っ て対応す る ア ナ ロ グ · レ ベ ル に変換 さ れ加算回路 7 0に与え ら れ る 。 Either a gray level, analog image signal or binary image data is input by the switching switch. The gray-level analog image signal is level-converted to an appropriate level by a resistor R 1 and input to an adder circuit 70. Binary image data is a signal of 1 or 0 (H level or L level). This binary image data is converted into an analog signal of an appropriate level corresponding to data 1 or 0 by a level conversion circuit 72 including a resistor R2. This is input to the adder 72. The measurement area designation data is 1-bit data that indicates whether each pixel is inside or outside measurement areas A and B for each pixel. It is created and stored in memory (not shown). This measurement area designation data is synchronized with the gray level analog image signal or the binary image data, and is stored in the above memory according to the scanning order. Are read out one pixel at a time, and are supplied to a level conversion circuit 73 including a resistor R3. Level conversion circuit? 3 converts the input measurement area designation data into an appropriate analog signal level corresponding to the data (1 or 0) and outputs the converted signal to the adder circuit 70. give . Character image data is data that represents the characters to be displayed on the screen, and consists of one bit per pixel. This data is also converted into a corresponding analog level by a level conversion circuit 74 including a resistor R 4, and applied to an addition circuit 70.
加算回路 7 0は, 入力す る グ レ イ · レ ベ ル · ア ナ ロ グ 画 像 信号 ま た は 2 値 画 像 デ ー タ を 表 わ す ア ナ ロ グ信 号, な ら び に計測領域指定デ ー タ お よ び文字画像デ — 夕 を そ れぞれ表わす ア ナ ロ グ信号を加算 し , 映像信号 と し て 出 力す る 。 こ の 映像信号 は表示装置 (図示略) に与え ら れ る 。  The adder circuit 70 receives the gray-level analog image signal or the analog signal representing the binary image data, and performs the measurement. Area designation data and character image data-The analog signals representing the evening are added, and output as a video signal. This video signal is provided to a display device (not shown).
こ の よ う な従来の 画像処理装置 に よ る と , 第 9 a 図 か ら 第 9 c 図に示す よ う な 限 ら れた形態の 表示 し か行 な う こ と がで き な い。 た と え ば計測領域 A に表示 さ れ る 2 値画像を作成す る た め の し き い値 レ ベ ル と , 計測 領域 B に表示 さ れ る 2 値画像を作成す る た め の し き い 値 レ ベ ル と を相互 に異な る レベ ル に設定す る こ と'は で き な い。 し たが っ て, 異な る し き い値 レ ベ ルを用 い て 作成 さ れ た 2 値画像を相互 に比較す る こ と に よ り し き い値 レ ベ ルが適切で あ る か ど う かを判断す る こ と 力《困 難 で あ っ た 。 ま た 計測領域 A お よ び B に は 2 値画 像 を, 計測領域以外の 部分 に は グ レ イ · レ ベ ル画像を そ れぞれ表示す る こ と がで き な い。 し た力 つ て, 対象物 を表わす グ レ イ · レ ベ ル画像 と , そ の一部を表わ し か つ 計測領域内 に 位置す る 2 値画像 と を比較す る こ と が で き ず, 計測領域内 に お け る 2 値画像が適切 に 2 値化 さ れて い る か ど う か を 確認す る こ と が困難で, 使 い勝 手が悪 い と い う 問題が あ っ た。 According to such a conventional image processing apparatus, only a limited form of display as shown in FIGS. 9a to 9c can be performed. For example, a threshold level for creating a binary image displayed in measurement area A, and a threshold level for creating a binary image displayed in measurement area B. It is not possible to set the threshold level to a different level. Therefore, comparing the binary images created using different threshold levels with each other will determine if the threshold level is appropriate. It was difficult to judge what was going on. Also, binary images cannot be displayed in measurement areas A and B, and gray-level images cannot be displayed in areas other than the measurement area. The gray-level image showing the object and a part of it It is not possible to compare with the binary image located in the measurement area, and check whether the binary image in the measurement area is properly binarized. There was a problem that it was difficult to use, and it was not easy to use.
ま た各信号の ア ナ ロ グ · レ ベ ル は抵抗 R 1 〜 R 4 の 値 に よ り 固定的 に 定 ま っ て い る た め に, 適正 な 濃度 に よ る 表示 を実現す る た め の レ ベ ル調整を容易 に 行 う こ と は で き ず, 調整を必要 と す る た び に 抵抗値 を 変 え な け れば な ら な か っ た 。 さ ら に各信号の ア ナ ロ グ · レ べ ルを調整す る こ と が困難で あ る た め に, 特定の 画像, た と え ば文字画像を 強調 し た り す る こ と が容易で な く 操作性の 向上が強 く 望 ま れて い た。  In addition, since the analog level of each signal is fixedly determined by the values of the resistors R1 to R4, display with an appropriate concentration is realized. It was not possible to make the level adjustment easily, and the resistance had to be changed every time the adjustment was required. In addition, because it is difficult to adjust the analog level of each signal, it is easy to emphasize a specific image, for example, a character image. However, the improvement of operability was strongly desired.
こ の 発明 は, 複数 の 計測領域 に 表示 さ れ る 2 値画像 を作成す る た め の し き い値 レ ベ ル を相互 に 独立 に 異 な る レ ベ ル に設定す る こ と がで き る 画像処理装置 を提供 す る こ と を 目 的 と す る 。  According to the present invention, the threshold level for creating a binary image displayed in a plurality of measurement areas can be set to different levels independently of each other. The purpose is to provide an image processing device that can be used.
こ の 発明 は ま た, 計測領域 と そ れ以外 の 領域 と に そ れぞれ表示 さ れ る 2 値画像を作成す る た め の し き い 値 レ ベ ル を相互 に 独立 に 異な る レ ベ ル に設定す る こ と が で き る 画像処理装置 を提供す る こ と を 目 的 と す る 。  The present invention also provides different threshold levels for creating binary images that are displayed in the measurement area and the other areas, respectively, independently of each other. It is an object of the present invention to provide an image processing device that can be set to a bell.
こ の発 明 は さ ら に, 計測領域 に 2 値画像 を, そ れ以 外の 領域 に グ レ イ · レ ベ ル画像を そ れぞれ表示す る こ と がで き , 逆 に計測領域 に グ レ イ · レ ベ ル画像 を , そ れ以外の 領域 に 2 値画像を そ れぞれ表示す る こ と がで き る 画像処理装置を提供す る こ と を 目 的 と す る 。 This invention can also display a binary image in the measurement area and a gray-level image in the other areas, and conversely, the measurement area. The gray level image can be displayed on the screen, and the binary image can be displayed on the other area. The purpose of the present invention is to provide an image processing device that can be used.
さ ら に こ の 発明 は, 表示 さ れ る 2 値画像 ま た は ダ レ ィ · レ ベル画像の濃度を容易 に調整す る こ と がで き る 画像処理装置を提供す る こ と を 目 的 と す る 。 発明 の 開示  It is another object of the present invention to provide an image processing apparatus capable of easily adjusting the density of a displayed binary image or a delay-level image. Target. Disclosure of invention
こ の発明 に よ る 画像処理装置 は, 対象物を表わす グ レ イ · レ ベ ル画像デー タ を生成す る 画像デ ー タ 生成手 段, 画面上 に設定 さ れた複数の計測領域の そ れぞれ に つ い て, 計測領域の 内側で あ る か外側であ る かを 画素 ご と に表わす個別計測領域指定デー タ を記憶す る 個別 計 測 領域指 定 デ ー タ 記憶手段, グ レ イ · レ ベ ル画像 デ ー タ を, そ れぞれ異な る 複数の し き い値 レ ベ ルを 用 い て 2 値化 し , 2 値画像デ ー タ を 出力す る 複数の 2 値 化手段, 複数の計測領域の そ れぞれにつ い て計測領域 外 と 区別 さ れた表示 を行 う か ど う かを表わす計測領域 設定 コ ー ド と , 各計測領域 に つ い て, グ レ イ · レ ベ ル 画像を表示す る か 2 値画像を表示す る かを表わす計測 領域内表示形態 コ ー ド お よ び 2 値画像表示の 場合に 2 値化の た め の し き い値 レベルを指定す る 計測領域内 し き い値指定 コ ー ド と , 計測領域以外の部分 につ い て, グ レ イ · レ ベ ル画像を表示す る か 2 値画像を表示す る かを表わす計測領域外表示形態 コ ー ド お よ び 2 値画像 表示の 場合 に 2 値化の た め の し き い値 レ ベルを指定す る 計測領域外 し き い値指定 コ ー ド と を設定す る た め の 表示態様設定手段, な ら び に上記画像デ ー タ 生成手段 力、 ら 与え ら れ る グ レ ィ · レ ベ ル ®像 テ 一 夕 , 上記個別 計測領域指定デ ー タ p †思 段か ら 与え ら れ る 個別計測 領域指定 デ ー 夕 , お よ び上記複数の 2 値化手段か ら 与 え ら れ る 2 値画像デ 一 夕 を入力 と し , _t §し 示態様設 定手段 力、 ら 与え ら れ る 計測領域設定 コ ー ド, 計測領域 内 表示形態 コ ― ド, 計測領域内 し き い値指定 コ ー ド, 計測領域外表示形態 コ ー ド お よ び計測領域外 し き い 値 指定 コ ― ド に し た が つ て, 画素 ご と に , 表示装置 に 与 え る ベ き レ べ ルの 画像信号を 出 力す る 表示制御手段を 備 え た も の で め る 。 An image processing apparatus according to the present invention includes an image data generating means for generating gray-level image data representing an object, and a plurality of measurement areas set on a screen. Individual measurement area designation data storage means for storing individual measurement area designation data for each pixel indicating whether the measurement area is inside or outside the measurement area. A plurality of binary values for binarizing the level-level image data using a plurality of different threshold levels and outputting the binary image data The measurement area setting code that indicates whether or not to display each of the measurement areas separately from the outside of the measurement area, and the measurement area Display in the measurement area indicating whether to display a gray level image or a binary image Specify the threshold level for binarization in the case of state code and binary image display, and the threshold specification code in the measurement area and the part other than the measurement area. In the case of displaying the gray-level image or displaying the binary image, the display form outside the measurement area and the binary image are displayed. Specify the threshold level Display mode setting means for setting the threshold value designation code outside the measurement area, and the image data generating means power, and the given gray level ® Image measurement data, individual measurement area designation data p given from the above-mentioned individual measurement area designation data p, and given from the above-mentioned plurality of binarization means 2 The input of the value image data is input, and the measurement mode setting code, the display mode code within the measurement area, and the threshold value specification code within the measurement area given from the _t § display mode setting means Code, display form outside the measurement area Code and the threshold value outside the measurement area code, and the level of image to be given to the display device for each pixel for each pixel. A display control means for outputting a signal is provided.
こ の 発明の一実施態様 に お い て は, 上記表示制御手 段 は表示選択手段 と 変換テ ー ブ ル · メ モ リ と を備 え て い る O  In one embodiment of the present invention, the display control means includes a display selection means and a conversion table memory.
上記表示選択手段 は, 計測領域指定 コ ー ド に よ っ て 指定 さ れ た計測領域 に対応す る 個別計測領域指定 デ ー 夕 に 応 じ て計測領域指定 デ ー タ を作成 し て 出 力す る 手 段 と , 計測領域内表示形態 コ ー ド が 2 値画像を 表示す べ き こ と を表わ し て い る と き に 個別計測領域指定デ 一 夕 に よ つ て指定 さ れて い る 計測領域 に つ い て計測領域 内 し き い 値指定 コ ー ド に よ っ て指定 さ れ て い る 2 値化 レ べ ノレ の 2 値画像 デ ー タ を選択 し , 計測領域外表示形 態 コ ー ドカ 2 値画像を表示すべ き こ と を 表 わ し て い る と き に計測領域外 し き い値指定 コ ー ド に よ っ て指定 さ れて い る 2 値化 レ ベ ル の 2 値画像デ 一 夕 を選択 し , い ずれか一方の 2 値画像 デ ー タ を, 当該画素が計測領域 内 か外か に 応 じ て 出 力す る 手段 と , 計測領域内表示形 態 コ ー ド お よ び計測領域外表示形態 コ ー ド に 応 じ て, グ レ イ · レ ベ ル画像を表示す る か 2 値画像 を表示す る かを表わす表示形態デ 一 夕 を 出力す る 手段を備 え て い な ο The display selecting means creates and outputs the measurement area designation data according to the individual measurement area designation data corresponding to the measurement area designated by the measurement area designation code. When the display mode code in the measurement area indicates that the binary image should be displayed, the individual measurement area designation data is specified. Select the binary image data of the binarization level specified by the threshold specification code in the measurement area for the measurement area to be displayed in the measurement area outside the measurement area. Indicates that a binary image should be displayed. At this time, one of the binary image data at the binarization level specified by the threshold specification code outside the measurement area is selected, and either one of the binary image data is selected. Means to output the data according to whether the pixel is inside or outside the measurement area, and a method to output the data according to the display mode code inside the measurement area and the display mode code outside the measurement area. There is no means to output a display format that indicates whether to display a ray-level image or a binary image ο
上記変換 テ ー ブ ル · メ モ リ は , 上記計 測 領域指定 デ ー タ , 2 値画像デ 一 夕 , 表示形態デ ー タ お よ び グ レ ィ · レ ベ ル 画 像 デ ー タ に 対 応 し て , 出 力 すべ き 画 像 デ ー タ の グ レ イ · レ ベ ルを表わす デー タ を記憶 し て お り , 上記表示選択手段 か ら 与 え ら れ る 計測領域指定 デ ー タ , 2 値画像デ ー タ お よ び表示形態デ ー タ な ら び に 上記画像デ ー タ 生成手段か ら 与え ら れ る グ レ イ · レ ベ ル画像デ ー タ に対応す る グ レ イ · レ ベ ル画像デ ー タ を 出力す る 。  The conversion table memory is used for the measurement area designation data, binary image data, display form data, and gray-level image data. In response to this, data representing the gray level of the image data to be output is stored, and the measurement area designation data, Binary image data and display form data, and gray levels corresponding to the gray level image data provided from the image data generating means. Output level image data.
上記表示制御手段 は, 上記変換テ ー ブ ル · メ モ リ か ら 出力 さ れ る グ レ イ · レ ベル画像デ 一 夕 を そ れ に対応 す る ア ナ 口 グ映像信号 に変換す る D / A 変換手段を さ ら に備 え て い る 。  The display control means converts the gray level image data output from the conversion table memory into a corresponding analog video signal. / A conversion means is further provided.
こ の 発明 の 他の 実施態様 に お い て は, 表示すべ き 文 字画 像 デ ー タ を 記 憶 す る 手段 が さ ら に 設 け ら れて い る 。 こ の 文字画像デ ー タ 記憶手段か ら 読出 さ れた各画 素の 文字画像 デ ー タ は上記変換 テ ー ブ ル ' メ モ リ に 与 え ら れ る 。 こ の 場合上記変換 テ ー ブ ル · メ モ リ は , 上 記計 測 領 域 指 定 デ ー タ , 2 値 画 像 デ ー タ , 表 示形態 デ ー タ , グ レ イ · レ ベ ル 画 像 デ ー タ お よ び 文字 画 像 デ ー タ に 対応 し て, 出力すべ き 画像 デ ー タ の グ レ イ · レ ベ を 表わ す デ ー タ を記憶 し て お り , 上記表示選択 手 段 か ら 与 え ら れ る 計 測 領域 指 定 デ ー タ , 2 値 画 像 デ ー タ お よ び表示形態 デ ー タ , 上記画像 デ ー タ 生成手 段力、 ら 与 え ら れ る グ レ イ · レ ベ ル画像 デ ー タ , な ら び に 上記文字画像 メ モ リ か ら 与え ら れ る 文字画像 デ ー 夕 に 対応す る グ レ イ · レ ベ ル画像デ ー タ を 出 力す る 。 In another embodiment of the invention, there is further provided a means for storing character image data to be displayed. Each image read from this character image data storage means The raw character image data is given to the above conversion table 'memory. In this case, the conversion table memory is composed of the above-mentioned measurement area designation data, binary image data, display form data, and gray level image. Corresponding to the image data and the character image data, the data representing the gray level of the image data to be output is stored, and the above display selection method is used. Measurement area designation data, binary image data and display form data provided from the step, and the above-mentioned image data generation step strength, etc. Outputs the level-level image data and the gray-level image data corresponding to the character image data provided from the above-mentioned character image memory. You
上記画像 デ ー タ 生成手段 は た と え ば画像 デ ー タ · メ モ リ で あ る 。  The image data generating means is, for example, image data memory.
上記画像デ ー タ 生成手段 は, 入力 ア ナ ロ グ映像信号 を グ レ イ · レ ベ ル画像 デ ー タ に変換す る A / D 変換手 段 に よ っ て構成す る こ と も で き る 。  The image data generating means may be constituted by an A / D conversion means for converting an input analog video signal into gray level image data. .
上記画像 デ ー タ 生成手段 は, 対象物を撮像す る 撮像 手段 と , こ の 撮像手段か ら 出力 さ れ る ア ナ ロ グ映像信 号を グ レ イ · レ ベ ル画像 デ ー タ に変換す る A Z D 変換 手段 と に よ っ て構成す る こ と も で き る 。  The image data generating means includes: an imaging means for imaging an object; and an analog video signal output from the imaging means, converted to gray-level image data. AZD conversion means.
さ ら に上記画像 デ ー タ 生成手段 は, 対象物を撮像す る 撮像手段 と , こ の 撮像手段か ら 出力 さ れ る ア ナ ロ グ 映 像 信 号 を グ レ イ · レ ベ ル 画 像 デ ー タ に 変 換 す る A / D 変換手段 と , Α Ζ Ε» 変換 さ れ た 画像 デ ー タ を 記 憶す る 画像デ ー タ · メ モ リ と に よ っ て構成す る こ と も で き る 。 Further, the image data generating means includes: an image pickup means for picking up an image of an object; and an analog video signal output from the image pickup means, which is a gray-level image. The A / D conversion means for converting the data into data and the converted image data are described. It can also be composed of image data and memory.
さ ら に こ の 発 明 の 他 の 実施態様 に お い て は , ダ レ ィ · レ ベ ル画像デー タ を 2 値化す る た め の 一つ の 2 値 化 レ ベ ルが設定 さ れ る 。 こ の発明 に よ る さ ら に他の 実 施態様 に お い て は, 計測領域 は 1 個で も よ い。 こ の発 明 の さ ら に他の 実施態様 に お い て は, グ レ イ · レ ベ ル 画像の表示を行わず, 計測領域お よ びそ れ以外の 領域 を 問 わ ず全て の領域 に 2 値画像を表示す る よ う に し て も よ い 。 こ の 場 合 に 計測領域 を 1 個 の み と し て も よ い o  Further, in another embodiment of the present invention, one binarization level for binarizing the delay-level image data is set. . In still other embodiments according to the invention, only one measurement area may be used. In another embodiment of the present invention, gray-level images are not displayed, and the measurement area and other areas are not included in all areas. A value image may be displayed. In this case, only one measurement area may be used.o
さ ら に こ の発明 の他の実施態様 に お い て は, 計測領 域 に 2 値 画 像 の み を 表示 し , 計 測 領域 以外 の 領域 に は グ レ イ · レ ベル画像の み を表示す る よ う に し て も よ い 。 逆に計測領域 に は グ レ イ · レ ベル画像の み を表示 し , 計測領域以外の 領域 に は 2 値画像の み を表示す る よ う に し て も よ い。 こ れ ら の場合 に 2 値画像を作成す る た め の し き い値 レ ベ ルを 1 段階の み と し て も よ い。  In another embodiment of the present invention, only the binary image is displayed in the measurement area, and only the gray level image is displayed in the area other than the measurement area. You can do it. Conversely, only the gray level image may be displayed in the measurement area, and only the binary image may be displayed in the area other than the measurement area. In these cases, the threshold level for creating a binary image may be only one level.
以上の よ う に し て こ の発明 に よ る 画像処理装置 に よ る と , 2 値画像を作成す る た め の 複数の し き い値 レ べ ルを 用 い る こ と 力《で き , 異な る し き い値 レ ベ ル を用 い て作成 さ れた 2 値画像を複数の計測領域 に 別個 に表示 す る こ と も , 計測領域 と そ れ以外の 領域 に 別個 に表示 す る こ と も 可能 と な る 。 さ ら に 2 値画像 と と も に 領域 を分 け て グ レ イ · レ ベ ル画像を表示す る こ と も 可能 と な る 。 こ の よ う に し て表示画面上 に 複数の 異 な る し き い 値 レ ベ ル に よ っ て作成 さ れた 2 値画像や グ レ イ · レ ベ ル画像が領域 を分 け て 同 時 に表示 さ れ る の で, 画像 デ ー タ の 2 値化処理の 適否を 視認 に よ り 確認す る こ と がで き , 使 い勝手が向上す る 。 As described above, according to the image processing apparatus of the present invention, it is possible to use a plurality of threshold levels for creating a binary image. A binary image created using different threshold levels can be displayed separately in multiple measurement areas, or separately in the measurement area and other areas. This is also possible. In addition, the area with the binary image It is also possible to display gray-level images separately. In this way, a binary image or gray level image created by a plurality of different threshold levels on the display screen is divided into the same areas. Since it is displayed at the time, it is possible to visually confirm the suitability of the binarization processing of the image data, and the usability is improved.
さ ら に 表 示 装 置 に 表 示 さ れ る 画 像 の 濃 度 は , 変換 テ ー ブ ル · メ モ リ に 設定 さ れ た 出力画像 デ ー タ の グ レ ィ · レ べ ノレ に よ っ て 定 ま る の で , こ の メ モ リ の グ レ ィ · レ ベ ル · デ ー タ を変更す る こ と に よ り 容易 に 表示 画 像 の 濃 度調 整 を 行 う こ と が で き , 操作性が 向上 す る 図面の 簡単な 説明  Further, the density of the image displayed on the display device depends on the gray level of the output image data set in the conversion table memory. It is possible to easily adjust the density of the displayed image by changing the gray level data of this memory. Brief description of the drawing to improve operability
第 1 図 は こ の 発明 に よ る 画像処理装置の実施例 の 構 成 を 示す プ ロ ッ ク 図で あ る 。  FIG. 1 is a block diagram showing a configuration of an embodiment of an image processing apparatus according to the present invention.
第 2 図 は表示装置 の 表示画面 に設定 さ れ た計測領域 を示す も の で あ る 。  Fig. 2 shows the measurement area set on the display screen of the display device.
第 3 図 は 表 示制 御 部 の 構 成 を 示 す プ ロ ッ ク 図 で あ る  Fig. 3 is a block diagram showing the configuration of the display control unit.
第 4 a 図, 第 4 b 図, 第 4 c 図お よ び第 4 d 図 は, レ ジ ス タ に記憶 さ れ る 設定 コ ー ド の フ ォ 一 マ ツ ト を 示 す も の で あ る 。  Figures 4a, 4b, 4c and 4d show the format codes of the setting codes stored in the registers. .
第 5 図 は表示選択回路 の詳細 な 構成を示す回路図で 2 Fig. 5 is a circuit diagram showing the detailed configuration of the display selection circuit. Two
あ る is there
6 図 は変換テ ー ブ ル · メ モ リ の 内容を示す も の で あ る ο  Figure 6 shows the contents of the conversion table memory ο
7 図 は表示画面の 例を示す も の で あ る 。  Figure 7 shows an example of the display screen.
8 a 図, 第 8 b 図 お よ び第 8 c 図 は第 7 図 に示す 表示画面の た め の設定 コ 一 ドを示す も の で あ る 。  Figures 8a, 8b and 8c show the setting codes for the display screen shown in Figure 7.
第 9 a 図, 第 9 b 図お よ び第 9 c 図 は従来の 画像処 理装置 に よ っ て得 ら れ る 画像デー タ の 表示例 を示す も の で め る 。  Figures 9a, 9b, and 9c show display examples of image data obtained by a conventional image processing device.
第 10図 は従来の 画像処理装置の構成を 示す プ ロ ッ ク 図で め o 発明 を実施す る た め の最良の形態  Fig. 10 is a block diagram showing the configuration of a conventional image processing apparatus. O Best mode for carrying out the invention
第 1 図 は, こ の発明 に よ る 画像処理装置 を備え た物 品の検査装置 ま た は認識装置の構成を示 し て い る 。  FIG. 1 shows a configuration of a product inspection device or a recognition device provided with the image processing device according to the present invention.
物品の検査ま た は認識装置 は, 撮像装置 π, 画像処 理装置 10お よ び表示装置 18か ら 構成 さ れて い る 。 画像 処理装置 10は, A Z D 変換回路 16, 画像デ ー タ · メ モ リ U, 計測処理部 12, 個别計測領域指定デー タ · メ モ リ U , 文字画像デ ー タ , メ モ リ 14 , 表示制御部 15お よ び こ れ ら の 各部を制御す る た め の C P U 19カヽ ら 構成 さ れて い る 。  The inspection / recognition device for the article is composed of an imaging device π, an image processing device 10 and a display device 18. The image processing device 10 includes an AZD conversion circuit 16, an image data memory U, a measurement processing unit 12, an individual measurement area designation data memory U, a character image data, a memory 14, It comprises a display controller 15 and 19 CPUs for controlling these components.
撮像装置 Πは, C C D 等の固体電子撮像素子を 含む カ メ ラ に よ っ て構成 さ れ, 撮像 し た対象物を表わす グ レ イ · レ ベ ル · ア ナ ロ グ画像信号 を 出 力す る 。 こ の ァ ナ ロ グ画像信号 は, 画像処理装置 1 0の A Z D 変換回路 1 6に与え ら れ, こ の A Z D 変換回路 1 こ お い て, 画素 ご と に, 複数 ビ ッ ト た と え ば 8 ビ ッ 卜 の グ レ イ · レ べ ル · デ ィ ジ タ ル 画 像 デ ー タ に 変 換 さ れ る 。 こ の ダ レ ィ · レ ベル画像デー タ は 画像デ ー タ · メ モ リ 1 1に ス ト ァ さ れ る 。 こ の 実施例で は, 8 ビ ッ ト の 画像 デ ー タ に お い て, 黒 レ ベ ル力 0 に , 白 レ ベル力 2 5 5 に そ れぞれ 対応 し て い る 。 The imaging device Π is composed of a camera including a solid-state electronic imaging device such as a CCD, and is a group that represents an imaged object. Outputs a level-level analog image signal. This analog image signal is supplied to an AZD conversion circuit 16 of the image processing device 10. In the AZD conversion circuit 1, if there are a plurality of bits for each pixel, It is converted to 8-bit gray-level digital image data. This delay level image data is stored in the image data memory 11. In this embodiment, in the case of 8-bit image data, the black level force 0 and the white level force 255 are respectively supported.
第 2 図 に 示 す よ う に 画 面 上 に 複数 の 計 測 領域 A , B , C お よ び D 力くあ ら か じ め設定 さ れ る 。 こ れ ら の計 測領域 は 図示 さ れ る よ う に 円形で も よ い し , 方形で も よ く , 任意の形 に 設定す る こ と がで き る 。 計測領域 は 入力装置 (図示略) を通 し てユ ー ザ に よ っ て あ ら か じ め設定 さ れ る 。 一  As shown in Fig. 2, a plurality of measurement areas A, B, C and D are set in advance on the screen. These measurement areas can be circular as shown in the figure, rectangular, or any shape. The measurement area is set in advance by the user through an input device (not shown). One
個別計測領域指定デ ー タ · メ モ リ 1 3は, こ の よ う に ユ ー ザ に よ っ て設定 さ れた複数の 計測領域 の そ れぞれ に つ い て, 計測領域の 内側 で あ る か外側 で あ る か を 画 素 ご と に 表わす個別計測領域指定デ ー タ を記憶す る も の で あ る 。 個別計測領域指定デー タ は各画素に つ い て 1 ビ ッ ト で構成 さ れ, そ の 画素が計測領域の 内側 で あ る 場 合 に は 1 , 外側で あ る 場合 に は 0 で あ る 。 こ の 実 施 例 で は , 説 明 を 簡 略 化 す る た め に 4 個 の 計測領域 A , B , C お よ び D が設定 さ れて い る も の と す る 。 計測処理部 Uは, A Z D 変換回路 1 6か ら 直接 に与え ら れ る グ レ イ · レ ベ ル ' デ ィ ジ タ ル画像デー タ ま た は 画像デ ー タ · メ モ リ 1 1に一旦ス ト ァ さ れた の ち 与え ら れ る グ レ イ · レ ベ ル · デ ィ ジ タ ル画像デ ー タ と , 個別 計測領域指定デ ー タ · メ モ リ Uか ら 与え ら れ る 個別計 測領域指定デー タ と を用 い て, 計測領域 A , B , C お よ び D に お い て, 対象物の 特徴量の抽 出処理, 対象物 の検査処理 ま た は認識処理等を C P U 1 9の 制御の も と に行 う 。 こ の計測処理 に よ る 結果や メ ッ セ ー ジ等を 文 字を 用 い て表現す る た め の 文字画像デ ー タ が C P U 1 9 の 制御の も と に作成 さ れ, 文字画像デー タ · メ モ リ 1 4 に記憶 さ れ る 。 こ の 文字画像デー タ も , 1 画素あ た り 1 ビ ッ ト で構成 さ れ, 文字を構成す る 画素の デー タ が 1 , そ れ以外の 画素の デ一 夕 が 0 に そ れぞれ設定 さ れ る o The individual measurement area designation data memory 13 is located inside the measurement area for each of the plurality of measurement areas set by the user as described above. This is to store the individual measurement area designation data that indicates whether each pixel is outside or outside. The individual measurement area designation data is composed of one bit for each pixel, and is 1 if the pixel is inside the measurement area and 0 if it is outside the measurement area. . In this embodiment, it is assumed that four measurement areas A, B, C, and D are set to simplify the explanation. The measurement processing unit U temporarily stores the gray level digital image data or image data memory 11 directly supplied from the AZD conversion circuit 16. Gray level digital image data given after storage, and individual measurement area designation data and memory U Using the measurement area designating data, in the measurement areas A, B, C, and D, extraction processing of the feature of the object, inspection processing or recognition processing of the object, and the like are performed. Control is performed under the control of the CPU 19. Character image data for expressing the results, messages, etc. of this measurement process using characters is created under the control of the CPU 19, and character image data is created. It is stored in the memory 14. This character image data is also composed of one bit per pixel, and the data of the pixels constituting the character is 1 and the data of the other pixels is 0. Set o
画 像 デ ー タ · メ モ リ 1 1か ら デ ィ ジ タ ル 画 像 デ ー タ が, 個別計測領域指定デ ー タ · メ モ リ 1 3か ら 各計測領 域 A , B , C お よ び D を表わす個別計測領域指定デ 一 夕 が, 文字画像デー タ · メ モ リ 1 4か ら 文字画像デ一 夕 が相互 に 同期 し て画素 ご と に読出 さ れ, 表示制御部 1 5 に与え ら れ る 。 好ま し く は こ れ ら の メ モ リ 1 1 , 1 3 , 1 4 か ら の 画素 ご と の 各デー タ の読出 し は, 垂直お よ び水 平走査 に 同期 し て ラ ス タ · ァ ド レ ス ご と に行わ れ る 。 表示制御部 1 5に は ま た, 表示態様を表わす設定 コ ー ド 力《 C P U 19か ら 与え ら れ る 。 後述す る よ う に表示制御 部 15か ら , 設定 コ ー ド に よ っ て表わ さ れ る 表示態様 に 従 う 映像信号が出力 さ れ, 表示装置 18に与え ら れ る こ と に よ り 撮像 さ れ た対象物の 画像が上記表示態様 で表 示装置 18に 表示 さ れ る 。 From the image data / memory 11 to the digital image data, the individual measurement area designation data / memory 13 to the respective measurement areas A, B, C, etc. And the individual measurement area designation data representing D is read out from the character image data memory 14 for each pixel in synchronism with the character image data, and the display control unit 15 Given to Preferably, reading of each data from these memories 11, 13, and 14 for each pixel is performed in synchronism with vertical and horizontal scanning. This is done for each dress. The display control unit 15 also has a setting code indicating the display mode. Power <Given by CPU 19. As will be described later, a video signal according to the display mode represented by the setting code is output from the display control unit 15 and is supplied to the display device 18. The captured image of the object is displayed on the display device 18 in the display mode described above.
第 3 図 は表示制御部 15の構成を 示 し て い る 。 表示制 御部 15は, 4 個 の 2 値化回路 21, 22, 23お よ び 24と , C P U 19か ら 与え ら れ る 設定 コ ー ド を記憶す る レ ジ ス タ Π, Πお よ び Πと , 表示選択回路 40と , 変換 テ ー プ ル · メ モ リ 41と , D Z A変換回路 42と か ら 構成 さ れて い る  FIG. 3 shows the configuration of the display control unit 15. The display control unit 15 includes four binarization circuits 21, 22, 23, and 24, and registers Π, Π, and よ that store setting codes given from the CPU 19. And a display selection circuit 40, a conversion table memory 41, and a DZA conversion circuit 42.
こ の実施例 で は, 2 値画像 デ ー タ を作成す る た め に 用 い ら れ る し き い値 レ ベ ル と し て, 4 種類の し き い 値 レ べ ノレ S l , S 2 , S 3 お よ び S 4 力 設 け ら れ, 2 値 化回路 21〜 24は そ れぞれ入力す る グ レ イ · レ ベ ル画像 デ ー タ を こ れ ら の し き い値 レ ベ ル S 1 〜 S 4 で レ ベ ル 弁別 し て 2 値化す る 。 2 値化回路 Π〜 24か ら 出 力 さ れ る 2 値画像デ ー タ は表示選択回路 40に与え ら れ る 。 2 値画像 デー タ は 画素あ た り 1 ビ ッ ト で構成 さ れ, デ ー 夕 1 が 白 レ ベ ル を , デ ー タ 0 が黒 レ ベ ルを そ れぞれ表 わ し て い る 。  In this embodiment, four types of threshold levels S l and S are used as threshold levels used to generate binary image data. 2, S 3, and S 4 are set, and the binarization circuits 21 to 24 output gray-level image data to be input to these thresholds, respectively. Level discrimination is performed at levels S1 to S4, and binarization is performed. The binary image data output from the binarization circuits Π to 24 is supplied to the display selection circuit 40. Binary image data is composed of one bit per pixel, with data 1 representing the white level and data 0 representing the black level. .
表示選択回路 40に は ま た, 4 個 の計測領域 A , B , C お よ び D を そ れぞれ表わ す メ モ リ 13か ら 読出 さ れ た 個別計測領域指定デ ー タ が与え ら れ る 。 表示態様の設定 コ ー ド は, 4 個 の計測領域の そ れぞ れ に つ い て計測領域外 と 区別 さ れた表示を 行 う か ど う かを表わす計測領域設定 コ ー ド と , 各計測領域 につ い て, グ レ イ · レ ベ ル画像を表示す る か 2 値画像を表示 す る か を表わす計測領域内表示形態 コ ー ド お よ び 2 値 画像表示の 場合 に は 2 値化の た め の し き い 値 レ ベ ルを 指定す る 計測領域内 し き い値指定 コ ー ド と , 計測領域 以外の 部分 に つ い て, グ レ イ · レ ベ ル画像を表示す る か 2 値画像を表示す る かを表わす計測領域外表示形態 コ ー ド お よ び 2 値画像表示の 場合 に は 2 値化の た め の し き い 値 レ ベ ル を 指定 す る 計測領域 内 し き い 値指定 コ 一 ド と か ら構成 さ れ る 。 The display selection circuit 40 is also provided with the individual measurement area designation data read from the memory 13 representing the four measurement areas A, B, C, and D, respectively. It is. The display mode setting code includes a measurement area setting code indicating whether to display each of the four measurement areas separately from the outside of the measurement area. For the measurement area, a display mode code in the measurement area indicating whether to display a gray level image or a binary image, and 2 in the case of a binary image display. Displays threshold level specification code for specifying threshold level for value conversion and gray level image for parts other than the measurement area Specify the display form code outside the measurement area that indicates whether to display a binary image or a binary image. In the case of displaying a binary image, specify the threshold level for binarization. It consists of a threshold specification code in the measurement area.
レ ジ ス タ Πに は各計測領域 につ い て計測領域内表示 形態 コ ー ド お よ び計測領域内 し き い値指定 コ ー ドが設 定 さ れ る 。 第 4 a 図 お よ び第 4 b 図を参照 し て, レ ジ ス タ 3 1は 1 2ビ ッ ト の コ ー ドを記憶で き る セ ノレを持 っ て い る 。 4 個 の計測領域 A 〜 D の そ れぞれ に対 し て 3 個 の セ ルが割当 て ら れ る 。 各計測領域 ご と に 3 個 の セ ル に お い て下位 2 ビ ッ ト は し き い値 レ ベ ルを表わ し , 上 位 1 ビ ッ ト は表示形態を表わす。 し き い値 レ ベ ルを表 わす 2 ビ ッ ト · コ 一 ド に お い て, し き い値 レ ベ ル S 1 は 0 0 に よ っ て , し き い 値 レ ベ ル S 2 は 0 1 に よ つ て, し き い値 レ ベル S 3 は 1 0 に よ っ て, し き い値 レ ベル S 4 は 1 1 に よ っ てそ れぞれ指定 さ れ る 。 1 ビ ッ 卜 の 表示形態 コ ー ド に お い て 2 値画像表示 の 場 合 に は 1 が, グ レ イ · レ ベ ル画像表示の 場合 に は 0 が そ れぞ れ設定 さ れ る 。 In the register, for each measurement area, a display form code in the measurement area and a threshold value designation code in the measurement area are set. Referring to FIGS. 4a and 4b, register 31 has a cell that can store a 12-bit code. Three cells are allocated to each of the four measurement areas A to D. In each cell, the lower 2 bits represent the threshold level and the upper 1 bit represents the display mode in three cells. In the two-bit code representing the threshold level, the threshold level S1 is 0 and the threshold level S2 is According to 0 1, the threshold level S 3 is specified by 10, and the threshold level S 4 is specified by 11. 1 bit In the display format code of the unit, 1 is set for binary image display, and 0 is set for gray-level image display.
レ ジ ス タ 3 2に は計測領域以外 の 部分 に 関す る 計測領 域 外表 示 形 態 コ ー ド お よ び 計 測 領域 外 し き い 値指定 コ ー ド力 設定 さ れ る 。 こ の レ ジ ス タ 3 2は 4 個 の セ ルを 持 っ て い る 。 4 個の セ ル に 設定 さ れ た コ 一 ド の い ずれ かが 1 の 場合 に は計測領域以外の 部分 に つ い て表示形 態 と し て 2 値画像の 表示が指定 さ れ た こ と に な る 。 こ の場合 に は 4 個 の セ ルの う ち ど の セ ル に コ ー ド 1 が設 定 さ れて い る か に よ っ て そ の 2 値画像を作成す る た め に 用 い る し き い値 レ ベ ルが指定 さ れ る 。 す な わ ち 4 個 の セ ル は そ れぞれ し き い値 レ べ ノレ S 1 〜 S 4 に 対応 し て い る 。 た と え ば こ の レ ジ ス タ 3 2に設定 さ れた コ ー ド が 0 0 0 1 の 場合 に は し き い値 レ ベ ル S 1 が指定 さ れ て い る こ と を表わす。 ま た コ 一 ド力く 0 0 1 0 の場合 に は し き ぃ 値 レ べ ゾレ S 2 力 指定 さ れて い る 。 レ ジ ス タ 3 2 に設定 さ れた 4 ビ ッ ト · コ ー ドがすべて 0 の 場合, す な わ ち 0 0 0 0 の 場合 に は計測領域以外の 部分 に つ い て表示形態 と し て グ レ イ · レ ベ ル画像表示が選択 さ れ た こ と に な る 。  In the register 32, the display mode code outside the measurement area and the threshold value specification code force outside the measurement area are set for the part other than the measurement area. This register 32 has four cells. If any of the codes set in the four cells is 1, the display of a binary image has been specified as the display mode for the part other than the measurement area. become . In this case, it is used to create a binary image depending on which of the four cells has code 1 set. A threshold level is specified. That is, the four cells correspond to the threshold levels S1 to S4, respectively. For example, if the code set in the register 32 is 0001, it indicates that the threshold level S1 is specified. If the code value is 0 0 0, the threshold value is set to S2. When the 4-bit code set in the register 32 is all 0, that is, when it is 0 0 0 0, the display form is used for the part other than the measurement area. This means that the gray level image display has been selected.
レ ジ ス タ 3 3に は計測領域設定 コ ー ドが記憶 さ れ る 。 こ の レ ジ ス タ 3 3も 4 個 の セ ル を持 っ て お り , こ れ ら の セ ルが 4 つ の 計測領域 A , B , C , D に そ れぞれ対応 し て い る 。 た と え ば計測領域 A につ い て計 f測領域以外 の 部分 と 異な る 表示 を 行 う と き に は, 最下位の ビ ッ ト が 1 に設定 さ れ る 。 ま た計測領域 B に つ い て計測領域 外 と 区別 さ れた表示を行 う べ き 場合 に は第 2 位 ビ ッ ト が 1 に設定 さ れ る 。 し た 力く つ て全ての ビ ッ ト カ 1 の 場 合 に は全て の 計測領域 A 〜 D に計測領域外 と 区別 さ れ た 表示を行 う べ き こ と を表わ す。 計測領域外 と 区別 さ れ た計測領域の特別 な 表示 と は, た と え ば計測領域内 がそ の 周 囲 よ り も 若干明 る く な る よ う に表示す る こ と で あ る 。 レ ジ ス タ 3 3に設定 さ れた 4 ビ ッ ト · コ 一 ドの 全てが 0 の場合 に は全ての 計測領域 につ い て特別 な 表 示が行わ れな い こ と を意味 し て い る 。 The register 33 stores the measurement area setting code. This register 33 also has four cells, and these cells correspond to the four measurement areas A, B, C, and D, respectively. are doing . For example, when the measurement area A is displayed differently from the parts other than the measurement area f , the least significant bit is set to 1. Also, when it is necessary to display the measurement area B separately from the outside of the measurement area, the second place bit is set to 1. This means that in the case of all bitmaps 1, the display in all the measurement areas A to D should be distinguished from those outside the measurement area. A special indication of the measurement area, which is distinguished from the outside of the measurement area, is, for example, that the inside of the measurement area is slightly lighter than its surroundings. If all of the 4-bit codes set in register 33 are 0, it means that no special display is made for all measurement areas. Yes.
こ れ ら の レ ジ ス タ Π〜 3 3に設定 さ れた各設定 コ 一 ド は表示選択回路 4 0に与え ら れ る 。  The setting codes set in these registers # 3 to # 33 are given to the display selection circuit 40.
第 7 図は表示態様の一例 を示 し て い る 。 こ の表示態 様を設定す る た め の 各設定 コ 一 ド の 例が第 8 a 図か ら 第 8 c 図 に示 さ れて い る 。 第 8 c 図 に お い て レ ジ ス 夕 3 3に設定 さ れた計測領域設定 コ ー ドが 1 1 0 1 で あ る か ら , 計測領域 B を 除 く 他の 計測領域 A , C お よ び D に つ い て計測領域外 の 部分 と 異な る 表示が行わ れ る 。 第 8 b 図 に お い て レ ジ ス タ 3 2に設定 さ れた全て の コ 一 ド力 0 で あ る か ら , 計測領域外の 部分 は グ レ イ · レ べ ル 画 像 デ ー タ を 用 い て 表 示 さ れ る .。 第 8 a 図 に お い て, 計測領域 A につ い て の 3 ビ ッ ト の設定 コ ー ドの う ち 最上位 ビ ッ ト の 表示形態 コ ー ド は 1 で あ る か ら 計測 領域 A に は 2 値画像表示が行わ れ, 下位 2 ビ ッ ト の し き い 値指定 コ ー ド は 0 0 で あ る か ら 計測領域 A に 表示 さ れ る 2 値画像 は し き い値 レ ベ ル S 1 を用 い て作成 さ れた も の と な る 。 計測領域 B に つ い て の 3 ビ ッ ト の 設 定 コ ド の う ち 最上位 1 ビ ッ ト の表示形態 コ ー ド は 0 で あ る か ら 計測領域 B に つ い て は グ レ イ · レ ベ ル画像 が表示 さ れ る 。 計測領域 C お よ び D に つ い て は, 最上 位 1 ビ ッ ト の表示形態 コ ー ドが 1 で あ る か ら 2 値画像 が 表 示 さ れ , 下 位 2 ビ ッ ト の し き い 値指定 コ ー ド が 0 1 で あ る か ら 2 値画像デ ー タ は し き い値 レ ベ ル S 2 を用 い て作成 さ れた も の と な る 。 FIG. 7 shows an example of the display mode. Examples of each setting code for setting this display mode are shown in FIGS. 8a to 8c. In Fig. 8c, since the measurement area setting code set in the register 33 is 111, other measurement areas A, C, and other than the measurement area B are excluded. For D and D, the display is different from the part outside the measurement area. In FIG. 8b, since all the command forces set in the register 32 are 0, the part outside the measurement area is the gray level image data. Is displayed using. In Fig. 8a, the 3-bit setting code for measurement area A is shown. Since the display mode code of the most significant bit is 1, a binary image is displayed in the measurement area A, and the threshold value specification code of the lower 2 bits is 0. Therefore, the binary image displayed in the measurement area A is created using the threshold level S1. The display mode code of the highest 1 bit of the 3-bit setting code for the measurement area B is 0, so the measurement area B is gray. · The level image is displayed. For the measurement areas C and D, since the display mode code of the highest 1 bit is 1, a binary image is displayed, and the lower 2 bits are displayed. Since the threshold value specification code is 0 1, the binary image data is created using the threshold level S 2.
表示選択回路 4 0は, 後 に そ の 詳細 な構成を 示す よ う に , 2 値 化 回 路 2 1〜 2 4か ら 与 え ら れ る 2 値 画 像 デ ー 夕 , メ モ リ か ら 与え ら れ る 4 つ の計測領域 に つ い て の 個別計測領域指定デ ー タ お よ び レ ジ ス タ 3 1〜 3 3か ら 与え ら れ る 設定 コ ー ド に基づ い て, 計測領域 デ ー タ , 2 値画像デ ー タ お よ び表示形態デー タ を作成 し , 変換 テ ー ブル · メ モ リ 4 1に こ れ ら の デ ー タ を与え る 。 計測 領域 デー タ は, 計測領域 に つ い て計測領域 内 と は異 な る 表示 を行 う べ き か ど う か を表わす デ ー タ で あ る 。 ま た表示形態デ ー タ は 2 値画像 を表示す る か グ レ イ · レ ベ ル画像を表示す る かを表わ す デ ー タ で あ る 。 こ れ ら の 計 測 領域 デ ー タ , 2 値 画 像 デ ー タ お よ び表示形態 デ ー タ は い ずれ も 1 ビ ッ ト の デ ー タ に よ っ て構成 さ れ る o As will be shown later, the display selection circuit 40 is provided with a binary image data and memory provided from the binarization circuits 21 to 24, as will be described later in detail. Measurement is performed based on the individual measurement area designation data for the given four measurement areas and the setting codes given from registers 31 to 33. Area data, binary image data and display form data are created, and these data are given to the conversion table memory 41. The measurement area data is data indicating whether a different display should be made for the measurement area than in the measurement area. The display form data is data indicating whether to display a binary image or a gray level image. These measurement area data, binary image data, and display format All data is composed of 1-bit data o
変換テ 一 プル · メ モ リ 4 1に は, 表示選択回路 4 Gか ら 与 え ら れ る 上述 し た 3 種類 の デ ー タ に 加 え て, 画像 デー タ · メ モ リ 1 1か ら 与え ら れ る グ レ イ · レ ベ ル画像 デ ー タ お よ び文字画像デ ー タ · メ モ リ 1 4か ら 与え ら れ る 文字画像デ ー タ が入力す る 。  The conversion template memory 41 includes the image data memory 11 in addition to the above-described three types of data provided from the display selection circuit 4G. The given gray-level image data and the text image data given from the character image data / memory 14 are input.
変換テ ー ブル · メ モ リ 4 1の 内容の一例 が第 6 図 に示 さ れて い る 。 変換テ ー ブ ル · メ モ リ 4 1は文字画像デ ー 夕 , 表示形態 デ ー タ , 計測領域指定デ ー タ , 2 値画像 デ ー タ お よ び グ レ イ · レ ベ ル画像デ ー タ (画像デー タ の グ レ イ · レ ベ ルを表わすデ ー タ ) に対応 し て, 出力 す る 画像デ ー タ の グ レ イ · -レ ベ ルを表わす デー タ が あ ら か じ め設定 さ れて い る 。 表示選択回路 4 0か ら 入力す る 計 測領域 デ ー タ , 2 値画 像 デ ー タ , 表示形態 デ 一 夕 , 画像デ ー タ · メ モ リ 1 1か ら 入力す る グ レ イ · レ べ ル画像デー タ お よ び文字画像デ ー タ · メ モ リ Hか ら 入 力す る 文字画像デ ー タ は , 変換テ ー ブ ル · メ モ リ 4 1の ア ド レ ス と な る 。 こ の ア ド レ ス に よ っ て指定 さ れ る 記 憶場所に設定 さ れて い る 出力画像の グ レ イ · レ ベ ル ' デ ー タ が変換テ ー ブ ル · メ モ リ 4 1か ら 出力 さ れ る こ と に な る 。 変換テ ー ブル · メ モ リ 4 1か ら 出力 さ れ る グ レ ィ · レ ベ ル · デ ー タ は次 に D Z A 変換回路 4 2に お い て こ の レ ベ ル に対応す る レ ベ ルを持つ ア ナ 口 グ映像信号 2 An example of the contents of the conversion table memory 41 is shown in FIG. Conversion table / memory 41 is character image data, display form data, measurement area designation data, binary image data, and gray level image data. The data representing the gray level of the image data to be output corresponding to the data (the data representing the gray level of the image data) is prepared in advance. It has been set. Display selection circuit 40 Measurement area data, binary image data, display format data, image data, memory input from the memory 11 Input gray from the memory 11 The character image data input from the level image data and the character image data / memory H is the address of the conversion table / memory 41. . The gray level data of the output image set in the storage location specified by this address is converted to the conversion table memory. Will be output. The gray-level data output from the conversion table memory 41 is then stored in the DZA conversion circuit 42 in a level corresponding to this level. Video signal with Two
に変換 さ れ, 表示装置 1 8に与え ら れ る 。  And is provided to the display device 18.
第 6 図 に お い て, 文字画像デ ー タ 力 1 の と き に は他 の 種類の デ ー タ の 値 に かかわ ら ず最大の グ レ イ · レ べ ル 2 5 5 を 表わす デ ー タ が変換 テ 一 プル · メ モ リ 4 1か ら 出 力 さ れ る 。 し た が っ て文字画像 は表示装置 1 Πこ お い て 最 も 明 る く 表 示 さ れ る ::: と 〖こ な る 。 第 6 図 に 示 す テ ー ブ ル に お い て X 印 は 出 力 さ れ る 画像 デ ー タ の グ レ ィ · レ べ ノレ に関与 し な い こ と を表わ し て い る 。  In Fig. 6, when the character image data power is 1, data representing the maximum gray level 255 regardless of the values of other types of data. Is output from the conversion template memory 41. Therefore, the character image is displayed most clearly on the display device 1 :::. In the table shown in FIG. 6, an X mark indicates that the output image data is not involved in the gray level of the image data.
文 字 画 像 デ ー タ を 表 示 せ ず ( 文 字 画 像 デ ー タ が 0 ) , 表示形態デ ー タ が グ レ イ · レ ベ ル画像表示 を 表 わ し (表示形態デ ー タ が 0 ) , 計測領域指定デ ー タ が 計測領域外で あ る こ と を表わ し て い る (計測領域指定 デ ー タ 力く 0 ) 場合 に は, 入力画像 デ ー タ の グ レ イ · レ ベ ルが若干圧縮 さ れて変換テ 一 プ ル · メ モ リ か ら 出 力 さ れ る 。 圧縮率 は グ レ イ • レ ベ ルが高 い程 ( 白 に近 い程) 大 き い。 た と え ば入力画像デ ー タ の グ レ イ · レ ベ ルが 2 5 5 の と き に は 2 0 0 の グ レ イ · レ ベ ルを持つ 画 像 デー タ が出力 さ れ る 。 ま た入力す る 画像 デ ー タ の グ レ イ · レ ベ ルが 1 β 0 の と き に は , ? 8の グ レ イ · レ ベ ル を持つ 画像 デ ー タ が出力 さ れ る 。 計測領域内 に お い て は (計測領域指定デ ー タ が 1 ) , 入力画像 デ ー タ の グ レ イ · レ ベ ル の圧縮率がや や小 さ く 設定 さ れて い る 。 た と え ば入力す る 画像デ ー 夕 の グ イ レ · レ ベ ルが 2 5 5 の と き に は 2 3 0 の グ レ イ · レ ベ ルを持つ 画像 デー タ が 出力 さ れ る 。 計測領域外 と 計測領域内 と を比べ る と , 変換テ 一 プ ル · メ モ リ 41力、 ら 出力 さ れ る 画像デー タ の グ レ イ · レ ベ ル は計測領域内 の方が 大 き く な つ て い る 。 こ れに よ り 計測領域内 に お い て は計測領域外 に比 ベて若干明 る く 表示 さ れ る こ と に な る 。 The character image data is not displayed (character image data is 0), and the display mode data is gray-level image display (display mode data is not displayed). 0), indicating that the measurement area designation data is outside the measurement area (measurement area designation data is 0), the gray scale of the input image data is used. The level is compressed slightly and output from the conversion template memory. The compression ratio is higher as the gray level is higher (closer to white). For example, when the gray level of the input image data is 255, image data having a gray level of 200 is output. When the gray level of the input image data is 1β0,? Image data with 8 gray levels is output. In the measurement area (measurement area specification data is 1), the gray level compression ratio of the input image data is set to be slightly smaller. For example, if the guile level of the input image data is 255, the image data having the gray level of 230 is obtained. Is output. Comparing the outside of the measurement area and the inside of the measurement area, the conversion tape memory and the gray level of the image data output from the measurement area are larger in the measurement area. It's gone. As a result, the image is displayed slightly brighter inside the measurement area than outside the measurement area.
2 値画像デー タ 表示 に お い て は (表示形態デ ー タ が 1 ) , 計測 領域 外 で あ れ ば (計 測 領域 指 定 デ ー 夕 が 0 ) , 2 値画像デ ー タ 1 , 0 に対 し て そ れぞれ 200 , 0 の グ レ イ · レ ベ ル を 持つ 画 像 デ ー タ が変換 テ ー プ ル · メ モ リ 41か ら 出 力 さ れ る 。 計測領域内 に お い て は (計測領域指定デー タ が 1 ) , 2 値画像デ ー タ 1 , 0 に対 し て そ れぞれ, 230 , 30の グ レ イ · レ ベルを持つ 画 像 デ ー タ が 変換 テ ー ブ ル · メ モ リ 41か ら 出 力 さ れ る 。 2 値画像デー タ 表示 に お い て も 同 じ よ う に, 計測 領域内 の方が計測領域外 よ り も 若干明 る く ( グ レ イ , レ ベ ル 3 Q分 だ け) 表示 さ れ る こ と に な る 。  In the binary image data display (display mode data is 1), if it is outside the measurement area (measurement area designation data is 0), the binary image data 1 and 0 are displayed. The image data having the gray levels of 200 and 0, respectively, are output from the conversion table memory 41. In the measurement area (measurement area designation data is 1), the images with the gray levels of 230 and 30 for the binary image data 1 and 0, respectively. Data is output from the conversion table memory 41. Similarly, in the binary image data display, the inside of the measurement area is displayed slightly brighter than the outside of the measurement area (only for gray and level 3Q). It will be.
第 5 図 は表示選択回路の詳細な構成を 示 し て い る 。 論 理 回 路 50は 4 個 の A N D 回 路 50 a と こ れ ら の A N D 回路の 出力の O R論理を と る O R 回路 50 b と か ら 構成 さ れて い る 。 レ ジ ス タ Πに設定 さ れた各計測領 域 に つ い て の計測領域設定 コ ー ド と , 個別計測領域指 定デ ー タ · メ モ リ 13か ら 与え ら れ る 各計測領域 に つ い て の 個別計測領域指定デー タ と の A N D 論理がそ れぞ れ A N D 回 路 50 a で と ら れ, そ れ ら の 結果 を 表 わ す デ ー タ の ◦ R 論 理 デ ー タ が 計 測 領域 指 定 デ ー タ と な る 。 し た が っ て計測領域指定 デ ー タ は, あ る 画素が計 測領域 A 〜 D の い ずれかの 内部 に 属 し , かつ そ の 計測 領域 に つ い て計測領域外 と 区別 さ れ た表示 を行 う べ き こ と が設定 さ れて い る と き に の み 1 と な り , 他 の 場 合 は 0 と な る 。 FIG. 5 shows the detailed configuration of the display selection circuit. The logical circuit 50 is composed of four AND circuits 50a and an OR circuit 50b which performs an OR logic of the outputs of these AND circuits. The measurement area setting code for each measurement area set in the register と and the measurement area given from the individual measurement area specification data memory 13 The AND logic for each individual measurement area designation data is taken by the AND circuit 50a, and the results are shown. ◦R logical data of the data is the measurement area designation data. Therefore, in the measurement area designation data, a certain pixel belongs to one of the measurement areas A to D, and the measurement area is distinguished from the outside of the measurement area. It is 1 only when the display is set to be set, and 0 otherwise.
論理回路 51は 4 個 の A N D 回路 51 a を 含んで い る 。 個別計測領域指定デ ー タ と , レ ジ ス タ 31に 設定 さ れた 各 領域 に つ い て の 表 示形 態 コ ー ド ( 上 位 1 ビ ッ ト · コ ー ド) と が対応す る A N D 回路 51 a に そ れぞれ与 え ら れ る 。 し た が っ て各計測領域 に 2 値画像 を表示すベ き こ と が設定 さ れて い る 場合 に は そ の 計測領域 に 属す る 画素 に つ い て論理回路 51の 出 力力 1 と な る 。 こ の 理回路 51の 4 つ の 出 力 は論理回路 56の A N D 回路 56 a に そ れぞれ与え ら れ る 。 A N D 回路 56 a一に は そ れ ぞ言れ一 A冊 各計測領域 に対応 し て選択回路 52に よ っ て選択 さ れ た 2 値画像デ ー タ が与え ら れ る 。 選択回路 52は各計測領 域 ご と に そ れぞれマ ノレ チ プ レ ク サ 52 a を 備 え て お り , こ れ ら の マ ルチ プ レ ク サ 52 a の そ れぞれ に は, 2 値化 回路 21〜 24か ら 与え ら れ る 全て の 2 値画像 デ ー タ が入 力 し て い る 。 一方 レ ジ ス タ 31に 設定 さ れた各計測領域 に つ い て の し き い値指定 コ ー ド (下位 2 ビ ッ ト ) が対 応す る マ ルチ プ レ ク サ 52 a に与え ら れて お り , マ ル チ プ レ ク サ 52 a は そ れ ぞ れ, 与 え ら れ た し き い 値指定 コ ー ド に よ っ て指定 さ れ る し き い値 レ ベ ルを持つ 2 値 画像デ ー タ を選択す る 。 論理回路 56の A N D 回路 56 a か ら 出力 さ れ る 2 値画像デ 一 夕 は O R 回路 56 b お よ び O R 回路 58を経て 2 値画像デ ー タ と し て 出 力 さ れ る 。 し たが つ て こ の 2 値画像デ ー タ は, 設定 さ れた計測領 域内 の各画素につ い て, そ の計測領域 に つ い て指定 さ れた し き い値 レ ベ ルを用 い て作成 さ れた 2 値画像 デ ー ダを表わ す こ と に な る 。 The logic circuit 51 includes four AND circuits 51a. The individual measurement area designation data and the display mode code (upper 1-bit code) for each area set in the register 31 correspond to each other. Each is provided to the AND circuit 51a. Therefore, when it is set to display a binary image in each measurement area, the output power of the logic circuit 51 is set to 1 for the pixels belonging to the measurement area. Become . The four outputs of the logic circuit 51 are given to the AND circuit 56a of the logic circuit 56, respectively. Each of the AND circuits 56a is supplied with the binary image data selected by the selection circuit 52 corresponding to each measurement area in Book A. The selection circuit 52 is provided with a manifold multiplexer 52a for each of the measurement areas, and each of these multiplexers 52a is provided with a multiplexer. , And all the binary image data given from the binarization circuits 21 to 24 are input. On the other hand, a threshold value designation code (lower 2 bits) for each measurement area set in the register 31 is given to the corresponding multi-plexer 52a. Each of the multiplexers 52a is provided with a given threshold value. Selects binary image data that has a threshold level specified by the code. The binary image data output from the AND circuit 56a of the logic circuit 56 is output as binary image data via an OR circuit 56b and an OR circuit 58. Therefore, this binary image data uses the threshold level specified for the measurement area for each pixel within the set measurement area. It represents the binary image data created by using.
O R 回路 55に は論理回路 51の 全て の A N D 回路 51 a の 出力 が入力 し て い る 。 し た 力 つ て こ の O R 回路 55の 出力 は, 画素が計測領域内 に属 し かつ 2 値画像を表示 す る こ と が設定 さ れて い る と き に の み 1 と な り , 計測 領域指定外の と き に は 0 と な る 。 論理回路 54は A N D 回 路 54 a と O R 回 路 54 b を 含 ん で い る 。 A N D 回 路 54 a の一方の 入力端子に は そ れぞれ レ ジ ス 夕 32に設定 さ れた計測領域外の し き い値 レ ベ ルを指定す る コ 一 ド が入力 し て い る 。 こ れ ら の A N D 回路 54 a の 他方の 入 力端子 に は , 2 値画 像 デ ー タ が そ れ ぞ れ入力 し て い る 。 A N D 回路 54 a の 出力の O R 論理力く O R 回路 54 b で と ら れ る の で, 0 R 回路 54 b の 出力 は, 計測領域外 に含 ま れ る 画素 に つ い て, 指定 さ れた し き い値 レ ベ ル を用 い て作成 さ れた 2 値画像デ ー タ を表わす。 こ の 2 値画像デ ー タ は A N D 回路 5 Πこ 入力す る 。 一方, 上述 し た O R 回路 55の 出力 は反転 さ れて A N D 回路 57に 入 力す る 。 し たが っ て A N D 回路 5?の 出力 は, 画素が計 測領域外 に 属 し かつ 計測領域外 に 2 値画像 を表示す ベ き こ と が設定 さ れて い る と き に, 計測領域外 に つ い て 設定 さ れ た し き い値 レ ベ ル を用 い て作成 さ れた 2 値画 像 デ ー タ を表わ し て い る 。 こ の 2 値画像デ ー タ は O R 回路 58を経て 出力 さ れ る 。 The outputs of all the AND circuits 51 a of the logic circuit 51 are input to the OR circuit 55. The output of the OR circuit 55 becomes 1 only when the pixel belongs to the measurement area and the display of the binary image is set. If the area is not specified, the value is 0. The logic circuit 54 includes an AND circuit 54a and an OR circuit 54b. Codes for specifying the threshold level outside the measurement area set in the register 32 are input to one input terminal of the AND circuit 54a, respectively. . Binary image data is input to the other input terminals of these AND circuits 54a, respectively. Since the OR logic of the output of the AND circuit 54a is obtained by the OR circuit 54b, the output of the 0R circuit 54b is specified for the pixels included outside the measurement area. Represents binary image data created using a threshold level. The binary image data is input to an AND circuit 5. On the other hand, the output of the above-mentioned OR circuit 55 is inverted and input to the AND circuit 57. Strengthen. So AND circuit 5? The output of is set outside the measurement area when the pixel belongs to the outside of the measurement area and when it is set to display the binary image outside the measurement area. Represents binary image data created using threshold levels. This binary image data is output through an OR circuit 58.
レ ジ ス タ 3 2に 設 定 さ れ た 4 ビ ッ ト · コ 一 ド は N A N D 回路 53に入力 し て い る 。 し た 力く つ て レ ジ ス タ 32の 4 ビ ッ ト · コ 一 ドが全 て 0 の 場合 (計測領域外 に グ レ イ · レ ベ ル画像 を表示すべ き こ と が設定 さ れて い る 場 合) , N A N D 回 路 53の 出 力 は 1 と な る 。 こ の N A N D 回 路 の 出 力 は 論 理 回 路 59の N A N D 回 路 59 a の一方の 入力 と し て与え ら れ る 。 一方, O R 回路 55の 出力 は N A N D 回路 59 a に そ の 他方の 入力 と し て 与え ら れ る 。 し た 力《 つ て N A N D 回路 59 a の 出 力 は, 画素が計測領域外 に 属 し かつ計測領域外 に グ レ イ · レ ベ ル画像 を表示すべ き こ と が設定 さ れて い る と き に 0 と な り , 計測領域外 に つ い て 2 値画像を表示すべ き こ と が設定 さ れて い る と き に は 1 と な る 。 こ の N A N D 回路 59 a の 出力 は O R 回路 59 b を経て表示形態 デ ー タ と し て 出力 さ れ る 。 一方, O R 回路 55の 出 力 は 画素が 計測領域内 に 属 し かつ そ の 計測領域 に つ い て グ レ イ · レ べ ノレ画像を表示すべ き こ と を表わ し て い る と き に は 0 と な り , 上述の よ う に計測領域 内 に 2 値画像 を表示 すべ き こ と が設定 さ れて い る と き に は 1 と な る 。 O R 回路 5 5の 出力 は 0 R 回路 5 9 b を経て表示形態デ ー 夕 と し て 出力 さ れ る 。 し た 力 つ て表示形態デ ー タ は, 計測 領域内外を 問わず グ レ イ · レ ベ ル画像を表示すべ き と き に 0 と な り , 2 値画 像 を 表示 す べ き と き に 1 と な o 産業上の利用可能性 The 4-bit code set in the register 32 is input to the NAND circuit 53. If the 4-bit code of the register 32 is all 0 with the force applied (the gray-level image should be displayed outside the measurement area. In this case, the output of the NAND circuit 53 is 1. The output of this NAND circuit is given as one input of the NAND circuit 59a of the logical circuit 59. On the other hand, the output of the OR circuit 55 is given to the NAND circuit 59a as the other input. The output of the NAND circuit 59a indicates that the pixel belongs to the outside of the measurement area and that the gray level image should be displayed outside the measurement area. It is set to 0 when it is set, and set to 1 when it is set to display a binary image outside the measurement area. The output of the NAND circuit 59a is output as display form data via an OR circuit 59b. On the other hand, the output of the OR circuit 55 indicates that the pixel belongs to the measurement area and the gray level image should be displayed for the measurement area. Becomes 0, and a binary image is displayed in the measurement area as described above. It is set to 1 when this is set. The output of the OR circuit 55 is output as display form data via the 0 R circuit 59b. The display mode data is set to 0 when gray-level images are to be displayed regardless of the inside and outside of the measurement area, and when binary images are to be displayed. 1 and o Industrial availability
こ の 発明 に よ る 画像処理装置 は, 製品 ま た は半製品 を 含 む 物 品 を 撮 像 装 置 に よ り 撮 像 し , 得 ら れ る 画 像 デ ー タ か ら 特徴量等を抽 出 し , こ の特徴量等を 用 い て 物品の検査, 計測, 認識等を行 う た め に利用 さ れ る 。  The image processing apparatus according to the present invention captures an object including a product or a semi-finished product by an imaging device, and extracts a characteristic amount or the like from the obtained image data. It is used for inspecting, measuring, and recognizing items using these features.

Claims

請求の 範囲 The scope of the claims
1 . 対象物を表わ す グ レ イ * レ ベ ル画像 デ ー タ を生成 す る 画像デ ー タ 生成手段, 1. An image data generating means for generating a gray * level image data representing an object;
画面上 に設定 さ れた複数の計測領域の そ れぞれ に つ い て, 計測領域の 内側 で あ る か外側 で あ る か を 画素 ご と に 表 わ す個別計測領域指定デー タ を記 "1思す る 個別計 測領域指定デ ー タ 記憶手段,  For each of the multiple measurement areas set on the screen, the individual measurement area designation data that indicates, for each pixel, whether the area is inside or outside the measurement area is recorded. "I think individual measurement area designation data storage means,
グ レ ィ • レ ベ ル画像 デ ー タ を, そ れぞれ異な る 複数 の し き い値 レ ベ ル を 用 い て 2 値化 し , 2 値画像 7" — 夕 を 出力す る 複数の 2 値化手段,  Gray-level image data is binarized using a plurality of different threshold levels, and a plurality of binarized images for outputting a 7-inch-evening image. Binarization means,
複数の 計測領域の そ れぞれ に つ い て計測領域外 と 区 別 さ れ た 表 示 を 行 う 力、 ど う 力、 を 表 わ す 計 測 領域設定 コ ー ド と , 各計測領域 に つ い て, グ レ イ • レ ベ ル画像 を表示す る か 2 値画像を表示す る か を 表わ す計測領域 内表示形態 コ ー ド お よ び 2 値画像表示の ' に 2 値化 の た め の し き い値 レ ベ ルを 指定す る 計測領域内 し き い 値指定 コ ー ド と , 計測領域以外の 部分 に つ い て, グ レ ィ · レ ベ ル画像 を表示す る か 2 値画像を 表示す る カヽ を 表わす計測領域外表示形態 コ ー ド お よ び 2 値画像表示 の場 合 に 2 値ィ匕の た め の し き い 値 レ ベ ル を 指定す る 計 測領域外 し き い値指定 コ ー ド と を設定す る た め の 表示 態様設定手段, な ら び に  A measurement area setting code that indicates the power to display and how to display each of a plurality of measurement areas separately from the outside of the measurement area. Therefore, the display format in the measurement area, which indicates whether to display a gray-level image or a binary image, is binarized into 'and' in the binary image display. Displays the threshold level specification code in the measurement area and the gray level image for the part other than the measurement area. Or a display mode code that indicates the color that displays the binary image, and a threshold that specifies the threshold level for binary image display in the case of binary image display. Display mode setting means for setting the threshold specification code outside the measurement area, and
上記画像デ ー タ 生成手段か ら 与え ら れ る グ レ イ レ ベ ル画像デ ー タ , 上記個別計測領域指定デ ー タ 記憶手 段か ら 与え ら れ る 個別計測領域指定デ ー タ , お よ び上 記複数の 2 値化手段か ら 与え ら れ る 2 値画像 デ ー タ を 入力 と し , 上記表示態様設定手段か ら 与え ら れ る 計測 領域設定 コ — ド, 計測領域内表示形態 コ ー ド, 計測領 域内 し き い値指定 コ ー ド, 計測領域外表示形態 コ ー ド お よ び計測領域外 し き い値指定 コ ー ド に し たが っ て, 画素 ご と に, 表示装置 に与え る べ き レ ベ ル の 画像信号 を 出力す る 表示制御手段, The gray level given by the image data generating means Bell image data, individual measurement area designation data given from the individual measurement area designation data storage means, and 2 given from the plurality of binarization means described above. The value image data is input, and the measurement area setting code, the display form code in the measurement area, the threshold value designation code in the measurement area, and the measurement are given from the display mode setting means. Outputs the image signal of the level to be given to the display device for each pixel according to the display form code outside the area and the code specifying the threshold outside the measurement area. Display control means,
を備 え た 画像処理装置。  Image processing device equipped with.
2 . 上記表示制御手段が, 表示選択手段 と 変換テ ー プ ル · メ モ リ と を備え,  2. The display control means includes a display selection means and a conversion table memory,
上記表示選択手段 は,  The display selection means is
計測領域指定 コ ー ド に よ っ て指定 さ れた計測領域 に 対応す る 個別計測領域指定デ ー タ に 応 じ て計測領域指 定デ ー タ を作成 し て 出力す る 手段 と ,  Means for creating and outputting measurement area designation data according to the individual measurement area designation data corresponding to the measurement area designated by the measurement area designation code;
計測領域内表示形態 コ ー ドが 2 値画像を表示すべ き こ と を表わ し て ,い る と き に個別計測領域指定デー タ に よ っ て指定 さ れて い る 計測領域 につ い て計測領域内 し き い値指定 コ ー ド に よ っ て指定 さ れて い る 2 値化 レ べ ル の 2 値 画 像 デ ー タ を 選 択 し , 計測 領域 外表示形態 コ ー ド が 2 値画像を表示すべ き こ と を表わ し て い る と き に計測領域外 し き い値指定 コ ー ド に よ っ て指定 さ れ て い る 2 値化 レ ベ ル の 2 値画像デ ー タ を選択 し , いず れか一方 の 2 値画像 デ ー タ を, 当該画素が計測領域 内 か外か に 応 じ て 出力す る 手段 と , Display format in measurement area Indicates that the code should display a binary image.In this case, the measurement area specified by the individual measurement area specification data is used. Select the binary image data of the binarization level specified by the threshold specification code inside the measurement area, and the display form code outside the measurement area is displayed. A binary image at the binarization level specified by the threshold specification code outside the measurement area when indicating that a binary image should be displayed Select the data and click Means for outputting one of the binary image data according to whether the pixel is inside or outside the measurement area;
計測領域 内表示形態 コ — ド お よ び計測領域外表示形 態 コ ー ド に 応 じ て, グ レ イ · レ ベ ル画像 を 表示す る か 2 値画像 を 表示す る かを表わ す表示形態デ ー タ を 出 力 す る 手段 と を備え,  Indicates whether to display a gray-level image or a binary image, depending on the display mode code inside the measurement area and the display mode code outside the measurement area. Means for outputting display form data.
上 記 変 換 テ ー ブ ル · メ モ リ は , 上 記 計 測 領域 指 定 デ ー タ , 2 値画像デ ー タ , 表示形態デ ー タ お よ び グ レ ィ * レ ベ ル 画 像 デ ー タ に 対 応 し て , 出 力 す べ き 画 像 デ ー タ の グ レ イ · レ ベ ルを 表わす デ ー タ を記憶 し て お り , 上 記 表 示選 択 手段 か ら 与 え ら れ る 計測領域指 定 デ ー タ , 2 値画像 デ ー タ お よ び表示形態デ ー タ ら び に 上記画像 デ ー タ 生成手段か ら 与え ら れ る グ レ イ · レ ベ ル画像 デー タ に 対応す る グ レ イ · レ ベ ル画像 デ ー タ を 出力す る ,  The above conversion table memory is composed of the above measurement area designation data, binary image data, display form data, and gray * level image data. Corresponding to the data, the data representing the gray level of the image data to be output is stored, and given from the display selection means described above. Measurement area designation data, binary image data, display form data, and gray-level image data provided from the image data generation means. Output gray level image data corresponding to
請求 の 範囲第 1 項記載の 画像処理装置。  The image processing device according to claim 1.
3 . 上記表示制御手段が, 上記変換テ ー ブ ル · メ モ リ か ら 出 力 さ れ る グ レ イ · レ ベル画像デ ー タ を そ れ に 対 応す る ア ナ 口 グ映像信号 に 変換す る D Z A 変換手段 を さ ら に 備 え て い る , 請求の 範囲第 2 項記載 の 画像処理 3. The display control means converts the gray level image data output from the conversion table memory to an analog video signal corresponding to the gray level image data. The image processing method according to claim 2, further comprising a DZA conversion means for converting.
4 . 表示すべ き 文字画像デ ー タ を記憶す る 手段を さ ら に 備 え て い る , 請求 の 範 囲 第 1 項記載 の 画像処理装 4. The image processing device according to claim 1, further comprising a means for storing character image data to be displayed.
5 . 表示すべ き 文字画像デー タ を記憶す る 手段を さ ら に備え, こ の 文字画像デー タ 記憶手段か ら 読出 さ れた 各画素の 文字画像 デ ー タ が上記変換テ ー ブ ル · メ モ リ に与え ら れ, 5. A means for storing character image data to be displayed is further provided, and the character image data of each pixel read out from the character image data storage means is converted into the above-mentioned conversion table. Given to the memory,
上記変換 テ ー ブ ル · メ モ リ は , 上記計測 領域指定 デ ー 歹, 2 値画像デ ー タ , 表示形態デ ー タ , グ レ イ · レ ベ ル画像デ ー タ お よ び文字画像デ ー タ に対応 し て, 出力すべ き 画像デ ー タ の グ レ イ · レ ベ ルを表わ す デ 一 夕 を記憶 し て お り , 上記表示選択手段か ら 与え ら れ る 計測領域指定デ ー タ , 2 値画像デー タ お よ び表示形態 デー タ , 上記画像デ ー タ 生成手段か ら 与え ら れ る グ レ ィ ' · レ ベ ル画像デ ー タ , な ら び に上記文字画像 メ モ リ か ら 与え ら れ る 文字画像デー タ に対応す る グ レ イ · レ ベ ル画像デ ー タ を 出 力す る ,  The conversion table memory includes the measurement area designation data, the binary image data, the display form data, the gray level image data, and the character image data. The data indicating the gray level of the image data to be output is stored in correspondence with the data, and the measurement area designation data given from the display selection means is stored. Data, binary image data and display form data, gray-level image data provided from the image data generating means, and the character image data. Output gray level image data corresponding to the character image data given from the memory,
請求の 範囲第 2 項記載の 画像処理装置。  The image processing device according to claim 2.
6 . 上記画像デ ー タ 生成手段が画像デ ー タ · メ モ リ で あ る , 請求の 範囲第 1 項記載の 画像処理装置。  6. The image processing apparatus according to claim 1, wherein said image data generating means is image data memory.
7 . 上記画像デ ー タ 生成手段が, 入力ア ナ ロ グ映像信 号 を, グ レ イ · レ ベ ル画像デ ー タ に変換す る A / D 変 換手段 で あ る , 請求 の 範 囲 第 1 項記載 の 画像処理装  7. The claimed invention, wherein the image data generating means is A / D conversion means for converting an input analog video signal into gray level image data. Image processing equipment described in item 1.
8 . 上記画像デー タ 生成手段が, 8. The image data generating means is
対象物を撮像す る 撮像手段 と ,  Imaging means for imaging an object;
こ の撮像手段か ら 出力 さ れ る ア ナ ロ グ映像信号を グ 3 The analog video signal output from this imaging means Three
レ ィ レ ベ ル 画 像 デ ー タ に 変 換 す る A / D 変換手段 'と ,  A / D conversion means' for converting to level image data;
を 備 え て い る 請 求 の 範 囲 第 1 項 記載 の 画 像 処理装  The scope of the request provided with the image processing device described in Paragraph 1
9 . 上記画像 デ ー タ 生成手段が, 9. The image data generating means is
対象物を撮像す る 撮像手段 と ,  Imaging means for imaging an object;
こ の 撮像手段か ら 出 力 さ れ る ア ナ ロ グ映像信号 を グ レ イ · レ ベ ル 画 像 デ ー タ に 変 換 す る A Z D 変換手段 と ,  AZD conversion means for converting an analog video signal output from the imaging means into gray-level image data;
A Z D 変 換 さ れ た 画 像 デ ー タ を 記憶 す る 画 像 デ 一 タ · メ モ リ と ,  AZD An image data memory that stores the converted image data,
を 備 え て い る 請求 の 範 囲 第 1 項 記載 の 画 像処理装  The image processing device according to claim 1, wherein the image processing device is provided with:
1 0 . 対象物を表わ す グ レ イ · レ ベ ル画像デ ー タ を生成 す る 画像デ ー タ 生成手段, 10 0. Image data generating means for generating gray-level image data representing an object,
画面上 に設定 さ れた複数の計測領域の そ れぞれ に つ い て, 計測領域の 内 側 で あ る か外側 で あ る かを 画素 ご と に表わ す個別計測領域指定デ ー タ を記憶す る 個別計 測領域指定デ ー タ 記憶手段,  For each of a plurality of measurement areas set on the screen, individual measurement area designation data indicating whether the area is inside or outside the measurement area for each pixel. Individual measurement area designation data storage means for storing
グ レ イ · レ ベ ル画像 デ ー タ を, 所定 の し き い値 レ べ ル を用 い て 2 値化 し , 2 値画像 デー タ を 出 力す る 2 値 化手段,  Binarizing means for binarizing gray level image data using a predetermined threshold level, and outputting the binary image data;
複数の計測領域 の そ れぞれ に つ い て計測領域外 と 区 別 さ れ た 表 示 を 行 う か ど う か を 表 わ す 計測 領域設定 コ ー ド と , 各計測領域 に つ い て, グ レ イ ' レ ベ ル画像 を表示す る か 2 値画像を表示す る か を表わ す計測領域 内表示形態 コ ー ド と , 計測領域以外の 部分 に つ い て, グ レ イ · レ ベ ル画像を表示す る か 2 値画像を表示す る かを表わす計測領域外表示形態 コ ー ド と を設定す る た め の表示態様設定手段, な ら び に Measurement area setting indicating whether or not to display for each of multiple measurement areas separately from the outside of the measurement area Code, display format in measurement area indicating whether to display gray-level image or binary image for each measurement area Code and measurement area Display mode setting for setting the display mode code outside the measurement area indicating whether to display the gray level image or the binary image for the part other than Means, and
上記画像デ ー タ 生成手段か ら 与え ら れ る グ レ イ · レ ベ ル画像 デ ー タ , 上記個別計測領域指定 デ ー タ 記憶手 段か ら 与え ら れ る 個別計測領域指定デー タ , お よ び上 記 2 値化手段か ら 与え ら れ る 2 値画像デ ー タ を入力 と し , 上記表示態様設定手段か ら 与え ら れ る 計測領域設 定 コ ー ド, 計測領域内表示形態 コ ー ド お よ び計測領域 外表示形態 コ ー ド に し た が っ て, 画素 ご と に, 表示装 置 に 与え る べ き レ ベ ル の 画像信号を 出力す る 表示制御 手段,  The gray-level image data given from the image data generating means, the individual measurement area designation data given from the individual measurement area designation data storage means, and the like. The binary image data given from the above-mentioned binarization means is input, and the measurement area setting code and the display form inside the measurement area code given from the above display mode setting means are input. Display control means for outputting, at each pixel, an image signal of a level to be given to the display device according to the code and the display form code outside the measurement area;
を備 え た 画像処理装置。  Image processing device equipped with.
1 1 . 対象物を表わす グ レ イ · レ ベ ル画像デ ー タ を 成 す る 画像 デ ー タ 生成手段,  1 1. Image data generating means for generating gray-level image data representing an object,
画面上 に設定 さ れた計測領域 に つ い て, 計測領域の 内側で あ る か外側 で あ る かを画素 ご と に表わす計測領 域指 定 デ ー タ を 記憶す る 計 測領域指定 デ ー タ 記憶手 段,  For the measurement area set on the screen, the measurement area specification data that stores, for each pixel, whether the area is inside or outside the measurement area is stored. Data storage means,
グ レ イ · レ ベル画像デ ー タ を, そ れぞれ異な る 複数 の し き い値 レ ベルを用 い て 2 値化 し , 2 値画像デ 一 夕 を 出 力 す る 複数の 2 値化手段, The gray-level image data is binarized using a plurality of different threshold levels, and the binary image data is stored. A plurality of binarization means that output
計測領域 に つ い て計測領域外 と 区別 さ れ た表不 ¾ 仃 う か ど う かを 表わす計測領域設定 コ — ド と , 計測領域 に つ い て, グ レ イ · レ べ ノレ画像 を表示す る カヽ 2 値画像 を表示す る か を表わ す計測領域 内 表示形態 コ ー ド お よ び 2 値画像表示 の場合 に 2 値化の た め の し き い値 レ べ ル を指定す る 計測領域内 し き い値指定 コ — ド と , 計測 領域以外の 部分 に つ い て, グ レ イ · レ ベ ノレ画像 を 表示 す る か 2 値画像を表示す る かを表わす計測領域外表示 形態 コ ー ド お よ び 2 値画像表示の 場合 に 2 値化 の た め の し き い値 レ ベ ル を指定す る 計測領域外 し き い 値指定 コ ー ド と を設定す る た め の表示態様設定手段, な ら び に  A measurement area setting code that indicates whether the measurement area is displayed in a table that is distinguished from the outside of the measurement area, and a gray level image is displayed for the measurement area. Display code in the measurement area indicating whether to display a binary image Specify the code and the threshold level for binarization in the case of binary image display The threshold specification code in the measurement area and the outside of the measurement area indicating whether to display a gray / level image or a binary image for parts other than the measurement area Set the display mode code and the threshold level for binarization in the case of binary image display.Set the threshold specification code outside the measurement area. Display mode setting means, and
上記画像 デー タ 生成手段か ら 与え ら れ る グ レ イ · レ ベ ル画像 デ ー タ , 上記計測領域指定デ — 夕 記憶手段か ら 与え ら れ る 計測領域指定 デ ー タ , お よ び上記複数 の 2 値 化手 段 か ら 与 え ら れ る 2 値 画 像 デ 一 夕 を 入 力 と し , 上記表示態様設定手段か ら 与え ら れ る 計測領域設 定 コ ー ド, 計測領域内 表示形態 コ ー ド, 計測領域 内 し き い 値指定 コ ー ド, 計測領域外表示形態 コ — ド お よ び 計測領域外 し き い値指定 コ 一 ド に し た が つ て, 画素 ご と に, 表示装置 に 与え る べ き レ ベ ルの 画像信号を 出 力 す る 表示制御手段,  Gray level image data given from the image data generating means, measurement area designation data given from the evening storage means, measurement area designation data given from the evening storage means, and A binary image data provided from a plurality of binarization means is input, and a measurement area setting code and a display in the measurement area provided from the display mode setting means are input. For each pixel, the form code, the code for specifying the threshold value inside the measurement area, and the display code for the display form outside the measurement area and the code for specifying the threshold value outside the measurement area are given for each pixel. Display control means for outputting an image signal of a level to be given to the display device;
を備え た画像処理装置。 An image processing device comprising:
1 2 . 対象物 を表わす映像信号を生成す る 映像信号生成 手段, 1 2. Video signal generating means for generating a video signal representing an object,
画面上 に設定 さ れた複数の 計測領域の そ れぞれに つ い て, 計測領域の 内側で あ る か外側で あ る かを 画素 ご と に 表わす個別計測領域指定デ ー タ を記憶す る 個別計 測領域指定デ ー タ 記憶手段,  For each of the multiple measurement areas set on the screen, the individual measurement area designation data that indicates, for each pixel, whether the measurement area is inside or outside the measurement area is stored. Individual measurement area designation data storage means,
上記映像信号を, そ れぞれ異な る 複数の し き い値 レ ベ ルを 用 い て 2 値化 し , 2 値画像デー タ を 出力す る 複 数の 2 値化手段,  A plurality of binarization means for binarizing the video signal using a plurality of different threshold levels, and outputting binary image data;
複数の計測領域 の そ れぞれ に つ い て計測領域外 と 区 別 さ れ た 表示 を 行 う か ど う か を 表 わ す 計測 領域設定 コ ー ド と , 各計測領域 に つ い て, 2 値化の た め の し き い値 レ ベ ルを指定す る 計測領域内 し き い値指定 コ ー ド と , 計測領域以外の 部分 に つ い て, 2 値化の た め の し き い値 レ ベ ル を指定す る 計測領域外 し い 値指定 コ 一 ド と を設定す る た め の表示態様設定手段, な ら び に 上記個別計測領域指定デ ー タ 記憶手段か ら 与え ら れ る 個別計測領域指定デ ー タ , お よ び上記複数の 2 値化 手段か ら 与え ら れ る 2 値画像デ ー タ を入力 と し , 上記 表 示 態 様設 定手段 か ら 与 え ら れ る 計測 領域設定 コ ー ド, 計測領域内 し き い値指定 コ ー ド, お よ び計測領域 外 し き い値指定 コ ー ド に し た 力 つ て, 画素 ご と に , 表 示装置 に与え る べ き レ ベ ル の 画像信号を 出 力す る 表示 制御手段, を 備 え た 画像処理装置。 A measurement area setting code indicating whether or not to display each of the plurality of measurement areas separately from the outside of the measurement area, and a description of each measurement area. A threshold specification code for specifying the threshold level for binarization, and a threshold for binarization for the parts other than the measurement area. The display mode setting means for setting the high level and the low value specification code outside the measurement area, and the individual measurement area specification data storage means The individual measurement area designation data and the binary image data given from the plurality of binarization means are input and given from the display mode setting means. Measurement area setting code, threshold specification code inside the measurement area, and outside the measurement area A display control means for outputting a video signal of a level to be given to a display device for each pixel by using the threshold value specifying code; Image processing device equipped with.
1 3 . 対象物 を表 わ す映像信号を生成す る 映像信号生成 手段,  1 3. Video signal generation means for generating a video signal representing an object,
画面上 に設定 さ れた計測領域 に つ い て , 計測領域 の 内側 で あ る か外側 で あ る かを 画素 ご と に表わす計測領 域 指 定 デ — タ を 記憶 す る 計 測 領域 指 定 デ ー タ 記憶手 段,  For the measurement area set on the screen, the measurement area designation data that stores, for each pixel, whether the measurement area is inside or outside the measurement area is stored. Measurement area designation that stores data Data storage means,
上記映像信号を , そ れぞれ異な る 複数の し き ぃ 値 レ ベ ルを 用 い て 2 値化 し , 2 値画像 デ ー タ を 出 力す る 複 数の 2 値化手段,  A plurality of binarization means for binarizing the video signal using a plurality of different threshold levels, and outputting binary image data;
計測領域 に つ い て計測領域外 と 区別 さ れ た表示 を行 ラ 力ヽ ど ラ 力、を表わ す計測領域設定 コ — ド と , 計測領域 に つ い て, し き い 値 レ ベ ルを 指定す る 計測領域内 し き い値指定 コ ー ド と , 計測領域以外の 部分 に つ い て, 2 値化の た め の し き い値 レ ベ ル を指定す る 計測領域外 し き い値指定 コ ー ド と を設定す る た め の 表示態様設定手 段, な ら び に  The measurement area setting code that indicates the measurement area and the power that is distinguished from the outside of the measurement area, and the threshold level for the measurement area Specify the threshold value specification code within the measurement area, and specify the threshold level for binarization of the part other than the measurement area. Display mode setting method for setting the value specification code and
上記計測領域指定デ ー タ 記憶手段か ら 与え ら れ る 計 測領域指定デ ー タ , お よ び上記複数の 2 値化手段か ら 与え ら れ る 2 値画像 デ ー タ を 入力 と し , 上記表示態様 設定手段か ら 与え ら れ る 計測領域設定 コ ー ド, 計測領 域内 し き い値指定 コ ー ド, お よ び計測領域外 し き い 値 指定 コ ー ド に し た 力 つ て, 画素 ご と に, 表示装置 に 与 え る べ き レ ベ ルの 画像信号を 出力す る 表示制御手段, を 備 え た画像処理装置。 The measurement area designation data given from the measurement area designation data storage means and the binary image data given from the plurality of binarization means are input. The measurement area setting code, the threshold value designation code inside the measurement area, and the threshold value designation code outside the measurement area given by the above display mode setting means Display control means for outputting a video signal of a level to be given to the display device for each pixel; Image processing device equipped with.
1 4 . 対象物 を表わす グ レ イ · レ ベル画像デ ー タ を生成 す る 画像デー タ 生成手段, 14 4. Image data generating means for generating gray-level image data representing an object,
画面上 に設定 さ れた少な く と も 1 つ の計測領域 に つ い て, 計測領域の 内側であ る か外側で あ る かを画素 ご と に表わす個別計測領域指定デー タ を記憶す る 個別計 測領域指定デ ー タ 記憶手段,  For each of at least one measurement area set on the screen, store the individual measurement area designation data that indicates whether the area is inside or outside the measurement area for each pixel. Individual measurement area designation data storage means,
グ レ イ · レ ベ ル画像デー タ を, 少な く と も 1 つ の し き い値 レ ベ ルを用 い て 2 値化 し , 2 値画像デ ー タ を 出 力す る 少な く と も 1 つ の 2 値化手段,  At least one of the gray-level image data is binarized using at least one threshold level, and the binary image data is output. One binarization means,
計測領域 に つ い て計測領域外 と 区別 さ れた表示を行 う か ど う かを表わす計測領域設定 コ ー ド と , 計測領域 に つ い て, 2 値化の た め の し き い値 レ ベ ルを指定す る 計測領域内 し き い値指定 コ ー ド と を設定す る た め の 表 示態様設定手段, な ら び に  Measurement area setting code indicating whether to display the measurement area separately from the outside of the measurement area, and a threshold value for binarization of the measurement area Display mode setting means for setting the level specification code and the threshold specification code in the measurement area, and
上記画像 デ ー タ 生成手段か ら 与え ら れ る グ レ イ · レ ベ ル画像 デ ー タ , 上記個別計測領域指定テ 一 夕 記憶手 段か ら 与え ら れ る 個別計測領域指定 デ ー タ , お よ び上 記 2 値化手段か ら 与え ら れ る 2 値画像デ ー タ を 入力 と し , 上記表示態様設定手段か ら 与え ら れ る 計測領域設 定 コ ー ド お よ び計測領域内 し き い値指定 コ 一 ド に し た 力 つ て, 画素 ご と に, 表示装置 に与え る べ き レ ベルの 画像信号を 出力す る 表示制御手段,  Gray level image data provided from the image data generating means, individual measurement area designation data provided from the individual measurement area designation table, The binary image data given from the binarizing means is input, and the measurement area setting code and the measurement area given from the display mode setting means are input. A display control means for outputting a video signal of a level to be given to the display device for each pixel by using the threshold value specifying code;
を備 え た 画像処理装置。  Image processing device equipped with.
PCT/JP1991/000111 1990-01-30 1991-01-30 Image processor WO1991011797A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2078790 1990-01-30
JP2/20787 1990-01-30

Publications (1)

Publication Number Publication Date
WO1991011797A1 true WO1991011797A1 (en) 1991-08-08

Family

ID=12036814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1991/000111 WO1991011797A1 (en) 1990-01-30 1991-01-30 Image processor

Country Status (2)

Country Link
AU (1) AU7186491A (en)
WO (1) WO1991011797A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0664498A1 (en) * 1993-06-11 1995-07-26 Fanuc Ltd. Region designating method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377141A (en) * 1976-12-20 1978-07-08 Nec Corp Multiplex display unit
JPS5459030A (en) * 1977-10-19 1979-05-12 Nec Corp Color picture emphasizing display unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377141A (en) * 1976-12-20 1978-07-08 Nec Corp Multiplex display unit
JPS5459030A (en) * 1977-10-19 1979-05-12 Nec Corp Color picture emphasizing display unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0664498A1 (en) * 1993-06-11 1995-07-26 Fanuc Ltd. Region designating method
EP0664498A4 (en) * 1993-06-11 1997-07-16 Fanuc Ltd Region designating method.

Also Published As

Publication number Publication date
AU7186491A (en) 1991-08-21

Similar Documents

Publication Publication Date Title
US10129385B2 (en) Method and apparatus for generating and playing animated message
US4903145A (en) Image quality control apparatus capable of density-correcting plural areas of different types
US5034806A (en) Image processing apparatus and method
US4887163A (en) Image processing apparatus
US6535630B1 (en) Image display method, image processing system, and recording medium
WO1991011797A1 (en) Image processor
US8154645B2 (en) Image pickup system including image pickup device and connection device for connecting to external display device
JP2002190976A5 (en)
KR20000076989A (en) Image pickup device and method for indicating residual volume of recording medium thereof
JP4174901B2 (en) Image display device, image display method, and recording medium recording image display control program
JP2001245139A (en) Digital image recording apparatus and method, and transmission method
JP2839578B2 (en) Image data input processing device
JPS581376A (en) Adaptive encoder for video signal from arbitrary pattern or scheme
JPH0651282A (en) Display control device
JPS60102060A (en) Picture binary-coding device
JP3593820B2 (en) Direct print adapter
JPS61232769A (en) Image editing device
JPH037178B2 (en)
JPS62172466A (en) Picture reading processor
JPH06243237A (en) Image processor
JPS62236079A (en) Image reader/processor
JPH01244579A (en) Picture element data converting device
JPH0651281A (en) Display control device
JPH0619434A (en) Still picture display device
JPH0720822A (en) Display controller

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AT AU BB BG BR CA CH DE DK ES FI GB HU JP KR LK LU MC MG MW NL NO PL RO SD SE SU US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE BF BJ CF CG CH CM DE DK ES FR GA GB GR IT LU ML MR NL SE SN TD TG

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

NENP Non-entry into the national phase

Ref country code: CA