A kind of microscope video image object lens penalty methodTechnical field
The present invention relates to the observation procedure of optics digit microscope, be applicable to all optics digit microscopes, especially relate to a kind of microscope video image object lens penalty method.
Background technology
When current applied optics digit microscope is observed, because image sensor to illumination uniformity susceptibility far above human eye, human eye is observed by microscope ocular and is felt the image that maintaining uniform illumination is good, is observed, can there is the problem that in the middle of microscope video image, bright limb is dark by imageing sensor.
Simultaneously due to the flat field degree problem of object lens, cause microscope video image also to exist middle clear, edge is problem not clearly, thus the overall sharpness of effect diagram picture.
Traditional image algorithm solution is that such solution will inevitably cause some image details to be lost, the problem that picture centre region overexposure etc. are new by adopting the overall brightness algorithm increasing image to solve.
Summary of the invention
The invention provides a kind of microscope video image object lens penalty method, mainly utilize and solve the above-mentioned two problems mentioned by software algorithm for the method that different object lens compensate, thus making the integral illumination homogeneity of microscope video image, general image sharpness is greatly improved.This method method is different from traditional solution, is to adopt suitable brightness offset value to compensate for different object lens different pixels point, thus image detail is obtained retain to greatest extent, well deal with problems again.Its technical scheme is as described below:
A kind of microscope video image object lens penalty method, imageing sensor is connected with microscope by optics adapter, the micro-image data stream that described imageing sensor collects outputs to processor, described processor reads the object lens offset table pre-set and compensates each pixel in image data stream, and the realtime image data stream after process can carry out follow-up microscope video image operation.
The offset table that described processor finds is not identical with current compensation meter, then read corresponding object lens offset table; If the offset table found is identical with current compensation meter, then skips and read corresponding object lens offset table.
The offset of each pixel of micro-image is stored in described object lens offset table.
Described processor, according to the offset of each corresponding pixel points in object lens offset table, is compensated each pixel in image data stream by algorithm for image enhancement.
Described algorithm for image enhancement adopts brightness to strengthen algorithm.
Described algorithm for image enhancement adopts look-up table.
The generation of described object lens offset table is as described below, regulate microscope, remove microscopical object observing and make microscope imaging not at focal plane, processor gathers current micro-image data, and the average brightness value of computed image, processor calculates the offset of the correspondence of each pixel of current image date according to described brightness value, generate the object lens offset table of entire image.
Described processor, before the average brightness value of computed image, carries out pre-service to the view data gathered.
The brightness value that the average brightness value of described image can be reached as required by user is preset.
Object lens offset table is preserved according to the information of current microscope by described processor, compensates list in order to generate object lens.
Microscope video image object lens penalty method provided by the invention can greatly improve the illumination uniformity of microscope video image, improves the overall sharpness of image.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of algorithm of the present invention;
Fig. 2 is the product process figure of object lens offset table of the present invention.
Embodiment
The realization of algorithm of the present invention is as shown in Figure 1:
Imageing sensor is connected with microscope by optics adapter, and its micro-image data stream gathered outputs to process chip.Process chip is precalculating according to current microscope model, object lens multiple, sensor chip type and image resolution ratio and is searching corresponding object lens compensation meter in the object lens set compensation list, if the compensation meter found is not identical with current compensation meter, then read corresponding object lens offset table, in described object lens offset table, store the offset of each pixel of micro-image.If the compensation meter found is identical with current compensation meter, then skips and read object lens offset table.
Wherein, described current compensation meter carries out moving or the parts such as object lens move at microscope, when the parameter such as brightness, contrast is impacted, processor is according to the compensation meter of situation generation at that time, production method and the corresponding object lens offset table of described current compensation meter are identical, see the explanation of Fig. 2.
Processor, according to the offset of each corresponding pixel points in object lens offset table, strengthens algorithm by brightness or adopts other algorithm for image enhancement to compensate each pixel in image data stream.Because need the real-time realizing microscope video image, the enhancing algorithm herein for each pixel preferably adopts look-up table.The realtime image data stream handled well can directly apply to the follow-up microscope video image operation such as display, transmission, storage.
The generation of object lens offset table as shown in Figure 2, regulate microscope, remove microscopical object observing and make microscope imaging not at focal plane, now imageing sensor is connected with microscope by optics adapter, its micro-image data stream gathered outputs to process chip, and process chip gathers current micro-image data, in order to avoid external disturbance information such as chip noise, the dirty points of image, pre-service is carried out to the view data gathered, such as carries out except algorithm etc. of making an uproar.
To through pretreated view data, processor calculates the average brightness value of present image, and certain user also can preset the brightness value that needs reach.Processor calculates the offset of the correspondence of each pixel of current image date according to this brightness value, thus generates the object lens offset table of entire image.Processor is preserved the offset table generated according to information such as current microscope model, object lens multiple, chip model and resolution.By such method, the object lens can keeping needs in advance compensate list.