Search Images Maps Play YouTube News Gmail Drive More »
Advanced Patent Search | Page images | Web History | Sign in

Patents

  
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small][merged small][merged small]

.1

FEATURE PARAMETER MEASUREMENT BY LINE SCANNING

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention concerns the analysis of features in a field for which a video signal is obtained by lines scanning and particularly methods and apparatus for obtaining signals equivalent to the vertically and horizontally projected length and perimeter of detected feature content in the field.

2. Description of the Prior Art

By horizontally projected length is meant the length of the feature when viewed end on from one side and by vertically projected length is meant the length of the feature when viewed end on from above or below. These two measurements are indicated diagrammatically in FIG. 1 of the drawings.

It will be appreciated that a measure of the shape of a feature is possible by comparing the one projected length with the other. Thus the ratio of horizontally to vertically projected length for a circle will be unity. For a long thin feature lying parallel to the horizontal direction, the ratio of horizontally to vertically projected length will be very much greater than unity and for a thin feature lying perpendicular to the horizontal this ratio will be much less than unity. Thus, provided the orientation of the features is known, long thin features can readily be distinguished from generally circular features by determining the ratio of the horizontally to vertically projected length for each feature and comparing this with unity.

This facility is of distinct advantage in the analysis of non-metallic inclusions in steel when it is necessary to distinguish between Silicate inclusions and inclusions of Alumina and/or Oxides.

As is known from U.S. Pat. No. 2, 494,441 a signal indicative of the total horizontally projected length of all detected features in a field can be obtained by scanning the field in a series of parallel lines to obtain a video signal and counting the number of transits of the scanning beam across the features during a single field scan. Where there is only one feature in the field the length dimension signal will indicate the horizontally projected length dimension of that feature.

In order that the features may be distinguished from their background they must be either lighter or darker than the background, or a different colour or grey level. The amplitude of the video signal produced by scanning a field containing distinguishable features will thus contain sudden variations in level between one level corresponding to the background and a different level or levels corresponding to the features. Selection is achieved by comparing the amplitude variations in the video signal with a reference voltage (as described in British Patent Specification No. 1,127,742 Metals Research Limited). An electrical signal can be generated following the comparison by generating a pulse for the duration of each video signal amplitude excursion which satisfies the comparison criterion (e.g. exceeds the reference voltage). This signal (commonly referred to as detected video signal) will thus comprise a series of pulses of equal height but whose duration in each case corresponds to the length of a line scan intersection with a feature whose colour or grey level satisfies the detection criterion.

2

SUMMARY OF THE INVENTION

According to the present invention a method of generating a signal indicative of the vertically projected

5 length of detected feature content in a field comprises the steps of delaying the detected video signal pulses by one line scan period, comparing the delayed pulses with those from the next line scan, generating a difference pulse of duration equal to the duration of any de

10 tected pulse or part thereof from the said next line scan which is not coincident with a delayed pulse and accumulating the difference pulses which occur during the scan of the field to produce an output signal. Conveniently the detected video signal pulses or dif

15 ference pulses are electronically chopped at a constant frequency to provide trains of pulses in place of continuous pulses, the number of chopped pulses in each series being proportional to the duration of the original detected signal pulse. Accumulation can then be per

20 formed by counting the chopped pulses.

Where the detected video signal pulses relate to one feature only then the vertically projected length signal relates to that one feature. If both horizontally and vertically projected length

25 signals are required simultaneously e.g. for comparison or division of one by the other then the two summations are either carried out simultaneously or one performed during a first scan of the field and the length signal stored while a second scan is performed during which

30 the second summation is performed.

The ratio of horizontally to vertically projected length can be determined by dividing the appropriate signals. Comparison with a reference value will determine whether the shape factor is acceptable or other

35 wise and the result of such comparison can be employed to control the release of information obtained during the scan.

If a separate signal representing one or the other projected length is required for each individual feature, it

40 is necessary to associate with each feature the detected video signal pulses arising from scanning that feature and make available the accumulated length signal for that feature at a unique instant in the scan. This can be achieved by employing an associated parameter com

^ puter and anti-coincidence detector as described in British Patent Specifications Nos. 1,264,804 and 1,264,805 in the one case counting the line scan transitions for each feature and in the other case programming the computer modules A, B, C to perform the method steps according to the method of the present invention for the detected video signal pulses associated with each feature. If both horizontally and vertically projected lengths

55 are required for each feature simultaneously e.g. for comparison then two appropriate associated parameter computers are required, synchronised and gated by a common anti-coincidence detector also as described in British Patent Specification No. 1,264,805 and in copending British Patent application No. 53403/69 the one computing horizontally and the other, vertically projected length signals for each feature.

According to a preferred feature of the present invention a method of generating a signal equivalent in

65 magnitude to the perimeter of detected feature content in a field comprises the steps of generating a first series of difference pulses indicative of the vertical projection of the feature content in accordance with the present

3 4

invention, comparing the leading edges of detected sig- Dr)I„„ ncc/,DIDT,m, ~v TIJC A c

. . c .u . i-' j »u c .u BRIEF DESCRIPTION OF THE DRAWINGS nal pulses from the current line scan and those from the

previous line scan (delayed by one line scan period) The invention will now be described by way of exam

and generating a count pulse whenever the two leading pie with reference to the accompany drawings in edges coincide, comparing the trailing edges of de- 5 which:

tected signal pulses from the current line scan and FIG. 1 illustrates a single feature intersected by a those from the previous line scan delayed by one line number of scan lines of a coarse raster on which the scan period, and generating a count pulse whenever the horizontally and vertically projected lengths are detwo trailing edges coincide, comparing the delayed de- noted by H and V respectively,

tected signal pulses with those on the next line scan and 10 FIG. 2 is a block circuit diagram of an associated pagenerating a difference pulse of duration equal to the rameter and ant.-coincidence c.rcuit similar to that of duration of any delayed pulse or part thereof which is FIG- 1 of British Patent Specification No. 1,264 805. not coincident with a detected pulse on the said next . TM -3 ls a block; circuit diagram of a circuit for denv.. ., , . , .j.TM mc difference pulses which when summed produce a line scan, thereby to generate a second series of differ- , „ , 6 , ■ r , . . , , r . ,,

, , i ^ .. „ ^ , , . 15 signal whose magnitude is equivalent to the vertically

ence pulses and integrating the first and second series ". ^ . , iL ^ * ^ J ^ * ^ ^ ^

c , j j i j • c u projected length of detected feature content in the

of difference pulses and said count pulses during a field field

scan to produce a final signal whose magnitude is indie- . ... . . ., c r , .

„*\ . „° , „ . FIG. 4 illustrates the wave forms of signals at the

ative of the perimeter of detected feature content in the , , . ,.. *xti-> . fc,r . ...

F input I and output of the AND-gate of FIG. 3 during the

fleld- 20 line scans 1 to 5 of FIG. 1,

Preferably the pulses forming said first and second FIG 5 .g a block circujt djagram of a circuit for deriv.

series of difference pulses are replaced by a number of jng pulses from whjch a ,ength signa, relatjng to the

count pulses proportional to the duration of the differ- horizontal projected length of detected feature content

ence pulse. This replacement can be effected either by can be cornputed by summation,

electronically chopping the detected signal pulses or 25 FIG. 6 is a modification of the circuit of FIG. 5 which the difference pulses. In either event the integration may be applied to the circuit of FIG. 2, can be performed by simply counting all the count FIG. 7 is a block circuit diagram of a circuit for derivpulses during the field scan. jng shape factor information from signals correspondWhere only one feature lies in the field the integral ing to the horizontal and vertical projected lengths of will relate to the length of its perimeter. Where more 30 features, and

than one feature is detected, the signals arising from FIG. 8 is a block circuit diagram of a circuit for gen

the method according to the preferred feature of the erating a signal whose value is equivalent to the perime

invention are related to the feature from which they ter of detected features.

arise by an associated parameter computer such as de- DETAILED DESCRIPTION OF THE PREFERRED

scribed in British Patent Specifications Nos. 1,264,804 T-ho^t-... ,t-xtto

. , . orw- v EMBODIMENTS and 1,264,805.

The accuracy of the measured value of the perimeter As previously mentioned, FIG. 1 illustrates the hori

will depend upon the spacing between the line scans zontally and vertically projected lengths of a feature in

and the resolution of the measurement effected in the tersected by a number of scan lines of a coarse raster,

line scan direction. The former can usually be ignored Certain of the scan lines are numbered 1, 2, 3 etc. and

but the latter will depend upon the frequency at which the horizontally and vertically projected lengths are de

the pulses are gated to produce count pulse trains in- noted by H and V respectively.

stead of the difference pulses. An error will occur F,G 2 of the drawings corresponds to FIG. 1 of Britwhenever the duration of a detected video signal pulse 45 ish Patent Specifications Nos. 1,264,804 and

is not exactly equal to a whole number multiple of the 1 '26,f-805- T!»« vTM1} comprises a "coincidence cir

. . , ~, . . , , j cult denoted by the dotted outline 11 and an associ

gatins signal period. This is rarely the case and accord- , J ,, , . , ,

° Z „ , c * c *u » • ated parameter computer which comprises the re

mg to a further preferred feature of the present inven- . j .\ j

i. c ^. ^ c j * * j i i mainder of the circuit. The circuit is supplied with de

tion a further comparison of detected signal pulses , . , . . . , . , „ rr

r ,. r tected video signal pulses obtained from a conventional

from adiacent line scans, separated by one line scan pe- 50 , u /■ , . ^

. , . J , . r J video signal by comparing (in known manner) the

nod, is made and an incrementa count pulse is added ., . . _ ... , . .iL r

,' , , , , , .. ■ video signal amplitude excursions with a reference volt

to the count pulse total whenever the leading edge of an(J ati a ]se onl when tne vjdeo sj ,

a detected video signal pulse on one line occurs within ampIitude exceeds the reference voltage. Since the inone gating signal period of the leading edge of a comci- stantane0us amplitude values of the video signal will dent detected video signal pulse on an adjacent line and 55 correspond to the greyness Gf points in the field, eleclikewise whenever the trailing edges of any two such trjca, puIses whose duration correspond to the length pulses occur within one gating signal period. Where a of the line scan intersections with features whose grey single value increment count pulse is employed a pre- levd djffers from that of the background, can be obferred value is 0.3. tained by setting the reference voltage between the A convenient device for adding 0.3 for each such voltage equivalent to the background grey level and count pulse comprises a separate counter for the incre- that of the feature grey level.

mental count pulses which records three for each count Detected video signal pulses 13 are applied to junc

pulse received and which includes a limit device which tion 10 in FIG. 2 and the leading edge of a detected generates a count pulse for the general perimeter 6J video signal pulse serves as a set signal for a bistable de

countcr whenever the incremental count pulse counter vice 12. The operation of the circuit is as described in

has reached 10 and which simultaneously resets this the two British Patent Specifications Nos. 1,264,804

latter counter to zero. and 1,264,805.

5 6

Assuming that a feature grey level is substantially Specification No. 1, 264,805 is required in which the

constant and that the reference voltage has been cor- module C is adapted to derive the appropriate incre

rectly set, the duration of each detected signal pulse ments of information from each detected video signal

will correspond to the length of the intersection of the pulse.

feature by each line scan. Each detected signal pulse 5 The circuit of FIG. 3 may comprise the computer can therefore be thought of as representing the line module C for the circuit of FIG. 2 and its input and outscan intersect with the feature and these are sometimes put terminals have been marked I and II accordingly, referred to as intersect pulses. In this event the accumulator 45 is reset at the end of As more particularly described in British Patent each modified detected video signal pulse. Where the Specification No. 1,264,805 the associated parameter 10 pulses from AND-gate 42 are not chopped it will be computer comprises a computer module C which pro- seen that by adding the pulses which are obtained on duces an electrical increment of information during or lines 1, 2, 3 and 4 a pulse whose total duration is proat the end of each detected signal pulse, a second com- portional to the vertical projection V of FIG. 1, will be puter module B which receives and holds an accumula- obtained. This addition is performed in the computer tion of increments from previous line scans delayed 15 module A (of FIG. 2).

from the previous line scan by a one line scan period Where the detected signal pulses are chopped at a delay device 28 and a third computer module A which high frequency by gate 43 the addition may be perreceives the signal from computer modules B and C formed by counting the number of chopped pulses and computes a fresh value to include the information which occur on each line scan in the output of the comincrement from the current line scan. The new com- 20 puter module C. In this way digital information is circuputed value is held in the computer module A and is re- lated in the delay device 28 which can therefore be a leased to the delay device 28 when a gate 30 is opened shift register. Preferably the register has sufficient caby a gating signal obtained by differentiating the trail- pacity to enable a parallel word of digital information ing edge of each output pulse from the bistable device to be transmitted so as to allow for close proximity of 12. In this way the gate 30 is opened at the end of each 25 features. The parallel word is then available at the corpulse. The same gating signal can be employed to cause rect instant in time at the output of the line delay decomputer modules B and A respectively to release and vice 28 for transmission as a digital associated parameupdate the information previously supplied to them. ter through the gate 36 when this latter is opened.

A further gate 37 (not described in the two Patent It will be appreciated that size or other form of dis

Specifications Nos. 1,264,804 and 1,264,805 )is closed 3^ crimination can be applied to the information released

by the same pulse which opens gate 36 to prevent the for each feature in a field of view, to allow a size or

final information signal, which appears as the associ- other distribution to be obtained,

ated parameter signal for the feature, from being recir- FIG. 5 illustrates a circuit for computing the horizon

culated once it has been released. In this way informa- tally projected length of detected feature content. A

tion is only circulated around the one line delay device 3^ single count pulse is generated for each intersect pulse

28 and computer modules B and A for as long as is nec- with the feature and the pulses so produced are

essary to complete scanning of a feature. counted in counter 49 the total number representing

FIG. 3 of the drawings illustrates a circuit for obtain- the total horizontally projected length of the detected

ing difference signal pulses which when summed pro- feature content. A single pulse is obtained from each

duce a signal whose magnitude is proportional to the 40 intersect pulse by differentiating circuit 46 and the

vertically projected detected feature content in a field. trailing edge pulses are eliminated by rectifying circuit

Video signal obtained by scanning the field is applied 48.

to terminal 9 for comparision with a reference voltage Signals indicating the total vertically and horizontally

from potentiometer 11 in a comparator 13, this latter projected lengths of detected feature content in a field

serving as a detector and providing detected signal 45 are obtained in the accumulator 45 of FIG. 3 and the

pulses at I. The detected pulses are supplied to one counter 49 of FIG. 5, at the end of scanning the field,

input of an AND gate 42 and to a one line delay device If both circuits of FIGS. 3 and 5 have been operating

40. The delayed pulses from the latter are applied via simultaneously the two projected length signals are

an inverting amplifier 44 to the other input of the AND gQ available at the same point in the time thereby enabling

gate 42. The output of the AND gate is accumulated a value to be determined of the ratio of total vertically

(e.g. integrated) in accumulator 45. projected lengths. This is conveniently done by em

The output pulses from AND gate 42 may be elec- ploying a circuit such as described with reference to

tronically chopped by gating pulses applied to a gate FIG. 7 (to be described later).

43, in which event accumulator 45 can comprise a 5^ When employed as computer module C in FIG. 2 the

pulse counter. counter is reset to zero at the end of each modified de

FIG. 4 of the drawings illustrates in the top half the tected video signal pulse and the counter 49 output

detected signal pulses which appear at junction 10 (ter- provides the signal for module A and is accordingly de

minal I of computer module C) during the five line noted by II.

scans numbered 1 to 5 in FIG. 1 and in the lower half 6Q Alternatively if as shown in FIG. 6 the input signals

the output pulses from AND gate 42. for computer module C are derived from a rectifying

Where the field contains more than one feature the stage 50 connected to terminal HI of FIG. 2 and ar

total vertically projected length signal will relate to all ranged to eliminate the trailing edge pulses, the rectify

the features in the field and will only be available after ing stage 50 and counter 49 constitute the computer

the field has been scanned. 65 module C and the connection between junction 10 and

Where a separate signal is required for each pro- junction I is not required,

jected length measurement for each feature, as associ- Where the vertically and horizontally projected

ated parameter computer as described in British Patent length signals for each feature are required simulta

8

neously, two separate associated parameter computer circuits are required. The controlling pulses from the rectifier 34 and likewise the gating pulses passed through the gate 22 are supplied to the pairs of gates 30, 36 and 37 respectively. In the one associated parameter computer, the computer module C comprises the circuit arrangement illustrated in FIG. 3 and in the other, the circuit arrangement illustrated in FIG. 5 or 6. As the feature is scanned a vertically projected length signal is accumulated in the first computer and a horizontally projected length signal is accumulated in the second computer.

FIG. 7 illustrates a circuit for obtaining a ratio of the horizontally and vertically projected lengths of a feature. It is assumed that the two length signals are in digital form and digital analogue converter units 52 and 54 are therefore provided. The outputs from the two converter units 52, 54 are supplied to opposite ends of a common potentiometer 55 whose tapping is connected to the common terminal of the two associated parameter computer outputs and defines two different resistances Rl and R2. The two output signals developed across Rl and R2 constitute the two inputs for a comparator 56. The setting of potentiometer 55 is chosen so that for all values of the ratio of horizontally to vertically projected length below a selected value, the signal at A exceeds the signal at B and for all ratios exceeding the critical ratio the signal at B exceeds that at A. The output from the comparator 56 may for example be arranged to gate a count pulse derived for the feature concerned into one or other of two accumulators one denoting features having a projected length ratio less than the selected value and the other features having projected length ratio greater than the selected value. Information relating to the shape of features in a field may be obtained by subjecting the detected video signal pulses to size discrimination before they are applied to the circuit of FIG. 3. In effect this allows sizing of features in one direction and measurement of the features in a perpendicular direction. The output from the circuit of FIG. 3 (when the size discrimination has been applied to the input) may be combined with the signal representing the horizontally projected length of the feature in the same manner as described with reference to FIG. 7.

As more particularly described below, in FIG. 8 the circuits 58, 60 detect and count coincident leading and coincident trailing edges of features respectively, 62 is basically the same as the circuit of FIG. 3 and produces a digitized signal for vertically projected length and 64 is the inverse of FIG. 3 and produces a similar signal which is accumulated for the lengths of detected pulses which have no coincident counterpart on the next line scan. Circuits 66 and 68 add 0.3 to the total count, for each occasion when the leading or trailing edges respectively of two coincident detected pulses (one having been delayed by one line scan period) occur within the interval determined by one gating signal period.

In the circuit of FIG. 8 detected video signal pulses are applied to junction 70 and a delay device such as a shift register 72 delays the pulses by one line scan period. The leading edge of each detected pulse is detected by a detector 74, and a second leading edge detector 76 detects the leading edge of each delayed pulse. In the event that a leading edge is simultaneously detected by the two detectors 74, 76, the two input conditions for an AND-gate 78 are satisfied and a sin

10

15

gle pulse is produced in its output for counting by a counter 80.

Circuit 60 is similar to 58 but the leading edge detectors 74 and 76 are replaced by trailing edge detectors 82 and 84 respectively. The remaining similar components have been denoted by the same reference numerals with a suffix.

At the end of scanning a feature, the sum of the two count values in counters 80 and 80' will represent the length measured in a direction perpendicular to the direction of line scanning of all perimeter portions which are also perpendicular or nearly perpendicular to the direction of line scanning.

An approximate value can be obtained for this measurement without the necessity for circuit 60 by arranging that counter 80 of circuit 58 counts two for each pulse supplied to it from AND-gate 78.

A measure of the length of perimeter portions at the top of the feature which are parallel to or substantially 20 parallel to the line scan direction, is obtained in counter 86. The detected signal pulses are gated by gate 88 operated by high frequency gating pulses (usually termed clock pulses) and the gated pulses form one input to an AND-gate 90. Delayed pulses from delay 72 are inverted by an amplifier 92 and form the other input to AND-gate 90. The gated pulses which appear in the output of AND-gate 90 serve as count pulses and are counted by counter 86. The action of the AND-gate 90 is to inhibit such count pulses except when a detected signal pulse on one line scan has no coincident detected signal pulse on the preceding line scan. As will be seen by comparison, the circuit 62 is essentially the same as the circuit of FIG. 3.

Circuit 64 operates in reverse to circuit 62 so as to provide in counter 86' a count value at the end of a field scan equivalent to the total duration of detected signal pulses or parts thereof which have no coicident detected signal pulse on the next line scan. Since the circuit elements are similar to those of circuit 62, the same reference numerals have been employed but with a suffix.

Like circuit 60, circuit 64 can be omitted if counter 86 counts two for every count pulse supplied to it but the perimeter signal will not be so accurate.

Thus an approximate value for feature perimeter can be obtained using only circuits 58 and 62 by combining the count values in counters 80 and 86 in an adding stage (not shown). If a more accurate value of the perimeter is required the circuits 60 and 64 are included and the count values from all four counters 80, 80' 86 and 86' are combined to form the perimeter value.

A further improvement in the accuracy of the perimeter value can be obtained by adding an incremental count value for each occasion that the difference between the leading edge co-ordinates on adjacent lines is less than the distance moved by the scanning spot in the line scan direction between gating or clock pulses. The leading edge detectors 74 and 76 together with the delay device 72 provide all the signals that are necessary to determine each such occasion and in practice the additional logic circuits would derive their signals from the outputs of these circuit elements. However for simplicity an additional circuit has been shown in full.

The outputs from the two leading-edge detectors 94 and 96 (=74 and 76) are supplied to an OR-gate 98 whilst the input signals to the two detectors also constitute the two inputs of an AND-gate 100. The output

25

30

35

40

45

50

55

60

65

« PreviousContinue »