1461086020-194c9f1e-3e2a-4790-8e85-be5ef683931d

1. A device for dispensing cold froth-apt drinks of premix type, such as beer, comprising as components a storage vessel (1), a drink conduit (2) connected thereto, and a dispensing means (3) in the form of a control valve for dispensing the drink into a drink cup, characterised in that, with a view to obtaining an unbroken cooling chain from the storage vessel (1) to the drink cup, every component in the device is enclosed in a refrigerated space (5, 6), and in that said dispensing means (3) is arranged essentially vertically.
2. A device as claimed in claim 1, characterised in that the control valve (3) is a valve which produces an intermittently pulsating flow.
3. A device as claimed in claim 1 or 2, characterised in that the control valve (3) is an electromagnetic flap valve.
4. A device as claimed in any one of the preceding claims, characterised in that a flow meter is arranged in the drink conduit.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. A method for automatically focusing an object comprising:
acquiring at least one image of the object, the image characterized by a focal distance and comprising at least one pixel;
determining a fractal pixel count of pixels having a fractal dimension within a predetermined range; and
selecting an optimal focal distance from the image having the largest fractal pixel count.
2. The method of claim 1 wherein the predetermined range is selected from a group consisting of 1-2, 1-1.25, 1.25-1.5, 1.5-1.75, 1.75-2, 1.5-2, and 1.6-2.
3. The method of claim 1 wherein acquiring includes applying a smoothing filter to the acquired image.
4. The method of claim 1 wherein determining the fractal pixel count includes estimating a fractal dimension for at least one pixel of the image, the fractal dimension of the pixel given by
d
p

=
log
\u2061

(
N
2
N
1
)
log
\u2061

(
L
2
L
1
)
where dp is the fractal dimension of the at least one pixel of the image, N2 is the sum of the pixel values in an L2\xd7L2 structuring element, N1 is the sum of the pixel values in an L1\xd7L1 structuring element, and L2 and L1 are the sizes (in pixels) of the respective structuring elements.
5. The method of claim 1 wherein determining further includes:
forming a plurality of boundary images from the acquired image, each of the plurality of boundary images characterized by a scale;
estimating the fractal dimension of at least one pixel of the acquired image from the plurality of boundary images; and
incrementing the fractal pixel count if the estimated fractal dimension of the at least one pixel is within the predetermined range.
6. The method of claim 5 wherein the plurality of boundary images includes two boundary images.
7. The method of claim 5 wherein forming boundary image further includes:
eroding the acquired image by a L\xd7L structuring element to form an eroded image;
dilating the acquired image by an L\xd7L structuring element to form a dilated image; and
forming the boundary image by subtracting the eroded image from the dilated image, the scale of the boundary image defined by L.
8. The method of claim 5 wherein the scale of at least one of the plurality of boundary images is selected from a group consisting of greater than 2, 3, 4, 5, and greater than 5.
9. The method of claim 8 wherein the scale is 3.
10. The method of claim 8 wherein a second scale is greater than a first scale.
11. The method of claim 10 wherein the second scale is determined such that a ratio of the second scale to the first scale is in a range selected from a group consisting of 1-4, 4-8, 8-16, and greater than 16.
12. The method of claim 11 wherein the ratio of the second scale to the first scale is 7.
13. The method of claim 7 wherein the structuring element has a neighborhood coextensive with the structuring element.
14. The method of claim 7 wherein the structuring element has a neighborhood less than the structuring element.
15. An apparatus for automatically focusing an object comprising:
an image capture sensor for capturing an image of the object, the captured image characterized by a focal distance;
a fractal estimator coupled to the image capture sensor, the fractal estimator adapted to estimate a fractal dimension of at least one pixel of the captured image; and
a focus controller coupled to the fractal estimator, the focus controller adapted to adjust the focal distance of the object based on maximizing the number of pixels having an estimated fractal dimension within a predetermined range.
16. The apparatus of claim 15 wherein the predetermined range is selected from a group consisting of 1-2, 1-1.25, 1.25-1.5, 1.5-1.75, 1.75-2, 1.5-2, and 1.6-2.
17. The apparatus of claim 15 wherein the fractal estimator further comprises a boundary image generator adapted to generate a boundary image from the difference of a dilated image and an eroded image, the dilated image and eroded image formed from the captured image using an L-sized structuring element.
18. The apparatus of claim 15 wherein the boundary image generator is further adapted to generate a first boundary image characterized by a first scale, L1, and a second boundary image characterized by a second scale, L2, wherein the ratio of L2 to L1, is in a range selected from a group consisting of 1-4, 4-8, 8-16, and greater than 16.
19. An apparatus for automatically focusing an object comprising:
an image capture sensor for capturing an image of the object, the captured image characterized by a focal distance;
means for determining a fractal pixel count of the captured image; and
means for controlling the focal distance based upon maximizing the fractal pixel count of the captured image.
20. A computer program product for use with an automated microscopy system, the computer program product comprising:
a computer usable medium having computer readable program code means embodied in the computer usable medium for causing the automated microscopy system to automatically focus an object, the computer program product having:
computer readable code means for causing a computer to acquire an image of the object at a focal distance;
computer readable code means for causing the computer to determine a fractal pixel count of the acquired image; and
computer readable code means for causing the computer to adjust the focal distance of the object based upon maximizing the fractal pixel count of the acquired image.