CN110177262A - A kind of projection accelerated method, system and device based on bit depth segmentation - Google Patents
A kind of projection accelerated method, system and device based on bit depth segmentation Download PDFInfo
- Publication number
- CN110177262A CN110177262A CN201910437733.4A CN201910437733A CN110177262A CN 110177262 A CN110177262 A CN 110177262A CN 201910437733 A CN201910437733 A CN 201910437733A CN 110177262 A CN110177262 A CN 110177262A
- Authority
- CN
- China
- Prior art keywords
- micro mirror
- brightness
- projection
- state
- overturning
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000011218 segmentation Effects 0.000 title claims abstract description 20
- 230000001133 acceleration Effects 0.000 claims abstract description 23
- 230000004907 flux Effects 0.000 claims description 11
- 230000000737 periodic effect Effects 0.000 claims description 3
- 238000009825 accumulation Methods 0.000 claims 2
- 230000011514 reflex Effects 0.000 claims 1
- 230000007306 turnover Effects 0.000 claims 1
- 230000001678 irradiating effect Effects 0.000 abstract description 9
- 230000008859 change Effects 0.000 description 17
- 238000005259 measurement Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 230000007261 regionalization Effects 0.000 description 3
- 239000006096 absorbing agent Substances 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000010363 phase shift Effects 0.000 description 2
- 241001270131 Agaricus moelleri Species 0.000 description 1
- 101100400452 Caenorhabditis elegans map-2 gene Proteins 0.000 description 1
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3179—Video signal processing therefor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Projection Apparatus (AREA)
Abstract
本发明提供了一种基于位深度分割的投影加速方法、系统及装置,属于计算机图像学领域,该方法将2n阶n位深度图像的单个通道亮度值分为高n‑i位和低i位两部分之和,用2(n‑i)单位的光源亮度照射微镜生成高n‑i位,用1单位的光源亮度照射微镜生成低i位,从而在不降低图像质量的前提下,减少单个通道高n‑i位所需的翻转周期数,进而减少整个图像的投影周期,提升投影速度。本发明的投影加速方法、系统及装置不需要降低图像位深度即可实现投影加速,即实现加速投影的同时不会降低图像质量,且适用于不同通道数量的各种位深度图像序列,具有广阔的应用前景。
The invention provides a projection acceleration method, system and device based on bit depth segmentation, which belongs to the field of computer graphics. The method divides the brightness value of a single channel of a 2n -order n-bit depth image into high n-i bits and low i bits. The sum of the two parts of the bit, irradiating the micromirror with 2 (n‑i) units of light source brightness generates high n‑i bits, and irradiating the micromirror with 1 unit of light source brightness generates low i bits, thus without reducing the image quality , to reduce the number of inversion cycles required for the high n-i bits of a single channel, thereby reducing the projection cycle of the entire image and increasing the projection speed. The projection acceleration method, system, and device of the present invention can realize projection acceleration without reducing the bit depth of the image, that is, realize accelerated projection without reducing image quality, and are applicable to various bit depth image sequences with different numbers of channels, and have broad application prospects.
Description
技术领域technical field
本发明属于计算机图像学领域,更具体地,涉及一种基于位深度分割的投影加速方法、系统及装置。The invention belongs to the field of computer graphics, and more specifically relates to a projection acceleration method, system and device based on bit depth segmentation.
背景技术Background technique
随着计算机图像应用的日益广泛以及自动化程度的进一步提高,计算机在工业测量领域有着不可替代的作用。三维深度信息对于系统的任务完成和性能至关重要,但是传统的计算机所处理的光学图像反映的是场景的光源亮度和颜色信息,丢失了现实中的三维深度信息。随着三维测量传感器的发展,多频相移方法得到广泛应用,主要是三频四步相移方法,测量的速度取决于投影装置投影的速度和相机同步进行采集的速度,目前主流工业相机的瓶颈基本都在于投影速度。With the increasingly widespread application of computer images and the further improvement of automation, computers play an irreplaceable role in the field of industrial measurement. The 3D depth information is crucial to the task completion and performance of the system, but the optical image processed by the traditional computer reflects the brightness and color information of the light source of the scene, and loses the 3D depth information in reality. With the development of three-dimensional measurement sensors, multi-frequency phase shift methods have been widely used, mainly three-frequency four-step phase shift methods, and the measurement speed depends on the projection speed of the projection device and the synchronous acquisition speed of the camera. Currently, the mainstream industrial cameras The bottleneck basically lies in the projection speed.
现今较先进的投影装置DLP(Digital Light Processing)与传统的投影装置对比有以下特点:Today's more advanced projection device DLP (Digital Light Processing) has the following characteristics compared with traditional projection devices:
(1)采用反射方式成像,图像的形成依靠DMD(Digital Micromirror Device)微型反射镜阵列(简称微镜阵列)的翻转来实现,具有原生对比度高、机器小型化的特点,投影速度和分辨率都较高;(1) Reflective imaging is adopted. The formation of the image is realized by the flipping of DMD (Digital Micromirror Device) micromirror array (referred to as micromirror array). It has the characteristics of high native contrast and miniaturization of the machine. The projection speed and resolution are both higher;
(2)通过积分的方式产生灰度图像,不同的灰度对应不同的翻转占空比,而投影的最高帧率则取决于微镜翻转的频率;(2) A grayscale image is generated by means of integration. Different grayscales correspond to different flipping duty cycles, and the highest frame rate of projection depends on the frequency of micromirror flipping;
(3)可以进行多达4个光源通道(R-G-B-IR,即红色-绿色-蓝色-红外)的调制;有的DLP设备中IR通道会替换为W通道(white,白光),用于调节RGB图像的显示亮度(例如环境光较强时需要将图片调亮才能看清楚),由于提升显示亮度会降低RGB图像的饱和度,导致图像质量下降,有些类型的DLP会禁用或去掉IR通道或W通道;根据DLP类型不同,各光源通道可以独立投影或顺序轮流投影。(3) Up to 4 light source channels (R-G-B-IR, that is, red-green-blue-infrared) can be modulated; in some DLP devices, the IR channel will be replaced by the W channel (white, white light) for adjustment The display brightness of the RGB image (for example, when the ambient light is strong, the image needs to be brightened to see clearly), because increasing the display brightness will reduce the saturation of the RGB image, resulting in a decrease in image quality, some types of DLP will disable or remove the IR channel or W channel; according to different DLP types, each light source channel can project independently or sequentially.
灰度调制的任务是由光源和微镜共同完成的,提升投影速度的可行办法就是减少微镜的翻转周期。而如果能够减少投影图像的位深度,将能够减少微镜翻转的周期,以收获更快的投影速度,甚至将所需图像压缩至预加载空间的存储容量限制以内,以实现最大的投影速度。但是,2m位深度图的1阶宽度相当于2n位深度图的1阶宽度的2n-m倍,n>m,2m位深度图的1单位亮度也相当于2n位深度图的1单位亮度的2n-m倍,因此,减少图像位深度会导致图像色阶的大幅度下降,从而导致图像质量大幅下降。例如,8位深度单通道灰度图具有256阶的灰度,而7位深度单通道灰度图仅具有128阶的灰度,在构成正弦光栅的过程中,7位灰度图像将具有比8位灰度图更严重的锯齿,从而影响测量的精度。The task of grayscale modulation is completed by the light source and the micromirror. A feasible way to increase the projection speed is to reduce the flip cycle of the micromirror. However, if the bit depth of the projected image can be reduced, the flipping cycle of the micromirror can be reduced to achieve a faster projection speed, and even the required image can be compressed to within the storage capacity limit of the preloaded space to achieve the maximum projection speed. However, the 1st order width of 2 m bit depth map is equivalent to 2 nm times of 1st order width of 2 n bit depth map, n>m, 1 unit brightness of 2 m bit depth map is also equivalent to 1 of 2 n bit depth map 2 nm times the unit luminance, therefore, reducing the image bit depth will result in a drastic drop in the image's color scale, resulting in a drastic drop in image quality. For example, an 8-bit depth single-channel grayscale image has 256 levels of grayscale, while a 7-bit depth single-channel grayscale image has only 128 levels of grayscale. The 8-bit grayscale image has more serious jaggedness, which affects the accuracy of measurement.
为此,亟需一种能够提升投影速度且不降低图像质量的方法。Therefore, there is an urgent need for a method that can increase the projection speed without reducing the image quality.
发明内容Contents of the invention
针对现有技术的以上缺陷或改进需求,本发明提供了一种基于位深度分割的投影加速方法、系统及装置,其目的在于,将2n阶n位深度图像的单个通道亮度值分为高n-i位和低i位两部分之和,用2(n-i)单位的光源亮度照射微镜生成高n-i位,用1单位的光源亮度照射微镜生成低i位,从而在不降低图像质量的前提下,减少单个通道高n-i位所需的翻转周期数,进而减少整个图像的投影周期,提升投影速度。Aiming at the above defects or improvement needs of the prior art, the present invention provides a projection acceleration method, system and device based on bit- depth segmentation. The sum of the ni bit and the low i bit, irradiate the micromirror with 2 (ni) units of light source brightness to generate the high ni bit, and irradiate the micromirror with 1 unit of light source brightness to generate the low i bit, thus without reducing the image quality Next, the number of flip cycles required for the high ni bit of a single channel is reduced, thereby reducing the projection cycle of the entire image and increasing the projection speed.
为实现上述目的,按照本发明的一个方面,提供了一种基于位深度分割的投影加速方法,用于DLP投影装置的加速投影,记DLP投影装置的微镜将光源发射的光反射到对应的像素位置时,微镜的状态为1,否则微镜的状态为0,则单个翻转周期内微镜的状态为1或0,对于n位深度的待投影图像,该投影加速方法包括以下步骤:In order to achieve the above object, according to one aspect of the present invention, a projection acceleration method based on bit depth segmentation is provided, which is used for accelerated projection of a DLP projection device. At the pixel position, the state of the micromirror is 1, otherwise the state of the micromirror is 0, then the state of the micromirror in a single flip cycle is 1 or 0, for an image to be projected with n-bit depth, the projection acceleration method includes the following steps:
S101、将单个通道的2n阶亮度N总分为高n-i位和低i位两部分亮度之和,n>i≥2,记为:S101. Divide the 2n -order luminance N total of a single channel into the sum of the luminance of the high ni bit and the low i bit, where n>i≥2, recorded as:
N总=N高+N低 N total = N high + N low
式中,N总为0~2n-1之间的任意整数,N高表示高n-i位亮度,N低表示低i位亮度;高n-i位亮度按照步骤S102处理得到,低i位亮度按照步骤S103处理得到;In the formula, N is always any integer between 0 and 2 n -1, N high indicates high ni-bit brightness, N low indicates low i-bit brightness; high ni-bit brightness is obtained according to step S102, and low i-bit brightness is obtained according to step S103 is processed and obtained;
S102、在对应通道下,以2(n-i)单位的光源亮度进行照射,需要1个状态为1的翻转周期就可以产生1单位光源2(n-i)个周期的光通量,此时每个状态为1的翻转周期亮度变化量为2(n-i)阶,从而通过翻转微镜进行亮度累积,生成高n-i位的亮度N高;S102. Under the corresponding channel, irradiate with the brightness of the light source of 2 (ni) units, and need 1 flip cycle with the state of 1 to produce a luminous flux of 2 (ni) cycles of a unit of light source. At this time, each state is 1 The amount of brightness change in the flip cycle is 2 (ni) steps, so that the brightness is accumulated by flipping the micromirror, and the brightness of the high ni bit is N high ;
S103、在对应通道下,以1单位的光源亮度进行照射,需要2i个状态为1的翻转周期可以产生1单位光源2i个周期的光通量,此时每个状态为1的翻转周期亮度变化量为1阶,从而通过翻转微镜进行亮度累积,生成低i位的亮度N低。S103. Under the corresponding channel, irradiating with 1 unit of light source brightness requires 2 i flipping cycles with a state of 1 to produce luminous flux of 1 unit light source with 2 i cycles. At this time, the brightness of each flipping cycle with a state of 1 changes The amount is 1 order, so that the luminance is accumulated by flipping the micromirror, and the luminance N low of low i bits is generated.
进一步地,步骤S101中,Further, in step S101,
N总=X×2(n-i)单位光源亮度+Y×1单位光源亮度N total = X × 2 (ni) unit light source brightness + Y × 1 unit light source brightness
N高=X×2(n-i)单位光源亮度N height = X × 2 (ni) unit light source brightness
N低=Y×1单位光源亮度N low = Y × 1 unit light source brightness
式中,X是在对应通道下,以2(n-i)单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数,In the formula, X is the number of flipping cycles required for the micromirror state to be 1 when the light source brightness of 2 (ni) units is irradiated under the corresponding channel,
Y是在对应通道下,以1单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数;Y is the number of flip cycles required for the micromirror state to be 1 when irradiating with a light source brightness of 1 unit under the corresponding channel;
对应通道的N总=0时,需要微镜在对应通道下所有翻转周期内的状态均为0,此时X=0,Y=0。When N total = 0 of the corresponding channel, it is required that the state of the micromirror is 0 in all flip cycles under the corresponding channel, and at this time X=0, Y=0.
进一步地,该投影加速方法包括如下步骤:Further, the projection acceleration method includes the following steps:
步骤1:对于一帧n位深度的图像,按照步骤S101~S103对该图像中的所有通道下所有像素的亮度进行分解,并计算相应的X、Y的值;Step 1: For a frame of n-bit depth image, according to steps S101-S103, decompose the brightness of all pixels under all channels in the image, and calculate the corresponding X, Y values;
步骤2:对于单个通道,先以2(n-i)单位的光源亮度照射所有微镜2(n-i)-1个翻转周期,再以1单位的光源亮度照射所有微镜2i-1个翻转周期,其中:Step 2: For a single channel, first irradiate all micromirrors 2 (ni) -1 flipping cycles with a light source brightness of 2 (ni) units, and then illuminate all micromirrors 2 i -1 flipping cycles with a light source brightness of 1 unit, in:
N总=0的像素对应的微镜在所有翻转周期内的状态均为0;The state of the micromirror corresponding to the pixel of N total = 0 is 0 in all flip cycles;
X=0且Y>1的像素对应的微镜,在前2(n-i)-1个翻转周期内微镜状态均为0;在后2i-1个翻转周期内有Y个翻转周期微镜状态为1,2i-1-Y个翻转周期微镜状态为0;For the micromirror corresponding to the pixel with X=0 and Y>1, the state of the micromirror is all 0 in the first 2 (ni) -1 flipping cycles; there are Y flipping cycle micromirrors in the next 2 i -1 flipping cycles The state is 1, and the state of the micromirror is 0 for 2 i -1-Y flip cycles;
X>1且Y=0的像素对应的微镜,在前2(n-i)-1个翻转周期内有X个翻转周期微镜状态为1,2(n-i)-1-X个翻转周期微镜状态为0;在后2i-1个翻转周期内微镜状态均为0;For the micromirror corresponding to the pixel with X>1 and Y=0, there are X flipping cycles in the first 2 (ni) -1 flipping cycles. The state of the micromirror is 1, and the state of the micromirror is 2 (ni) -1-X flipping cycles The state is 0; the state of the micromirror is 0 in the last 2 i -1 flip cycles;
X>1且Y>1的像素对应的微镜,在前2(n-i)-1个翻转周期内有X个翻转周期微镜状态为1,2(n-i)-1-X个翻转周期微镜状态为0;在后2i-1个翻转周期内有Y个翻转周期微镜状态为1,2i-1-Y个翻转周期微镜状态为0。For the micromirror corresponding to the pixel with X>1 and Y>1, there are X flipping cycles in the first 2 (ni) -1 flipping cycles. The state is 0; in the last 2 i -1 flip cycles, the state of the micromirror is 1 for Y flip cycles, and the state of the micromirror is 0 for 2 i -1-Y flip cycles.
进一步地,该投影加速方法包括如下步骤:Further, the projection acceleration method includes the following steps:
步骤1:对于一帧n位深度的图像,按照步骤S101~S103对该图像中的所有通道下所有像素的亮度进行分解,并计算相应的X、Y的值;Step 1: For a frame of n-bit depth image, according to steps S101-S103, decompose the brightness of all pixels under all channels in the image, and calculate the corresponding X, Y values;
步骤2:对于单个通道,先以1单位的光源亮度照射所有微镜2i-1个翻转周期,再以2(n-i)单位的光源亮度照射所有微镜2(n-i)-1个翻转周期,其中:Step 2: For a single channel, first irradiate all micromirrors 2 i -1 flipping cycles with a light source brightness of 1 unit, and then illuminate all micromirrors 2 (ni) -1 flipping cycles with a light source brightness of 2 (ni) units, in:
N总=0的像素对应的微镜在所有翻转周期内的状态均为0;The state of the micromirror corresponding to the pixel of N total = 0 is 0 in all flip cycles;
X=0且Y>1的像素对应的微镜,在前2i-1个翻转周期内有Y个翻转周期微镜状态为1,2i-1-Y个翻转周期微镜状态为0;在后2(n-i)-1个翻转周期内微镜状态均为0;For the micromirror corresponding to the pixel with X=0 and Y>1, the state of the micromirror is 1 for Y flipping cycles in the first 2 i -1 flipping cycles, and the state of the micromirror is 0 for 2 i -1-Y flipping cycles; The state of the micromirror is all 0 in the last 2 (ni) -1 flipping cycles;
X>1且Y=0的像素对应的微镜,在前2i-1个翻转周期内微镜状态均为0;在后2(n -i)-1个翻转周期内有X个翻转周期微镜状态为1,2(n-i)-1-X个翻转周期微镜状态为0;For the micromirror corresponding to the pixel with X>1 and Y=0, the state of the micromirror is 0 in the first 2 i -1 flipping cycles; there are X flipping cycles in the next 2 (n -i) -1 flipping cycles The state of the micromirror is 1, and the state of the micromirror is 0 for 2 (ni) -1-X flip cycles;
X>1且Y>1的像素对应的微镜,在前2i-1个翻转周期内有Y个翻转周期微镜状态为1,2i-1-Y个翻转周期微镜状态为0;在后2(n-i)-1个翻转周期内有X个翻转周期微镜状态为1,2(n-i)-1-X个翻转周期微镜状态为0。For the micromirror corresponding to the pixel with X>1 and Y>1, the state of the micromirror is 1 for Y flipping cycles in the first 2 i -1 flipping cycles, and the state of the micromirror is 0 for 2 i -1-Y flipping cycles; In the last 2 (ni) -1 flipping cycles, the state of the micromirror is 1 for X flipping cycles, and the state of the micromirror is 0 for 2 (ni) -1-X flipping cycles.
进一步地,n为偶数时,i=n/2,i≥2;n为奇数时,i=(n±1)/2,i≥2。Further, when n is an even number, i=n/2, i≥2; when n is an odd number, i=(n±1)/2, i≥2.
为实现上述目的,按照本发明的另一个方面,提供了一种基于位深度分割的投影加速系统,包括处理器以及投影加速程序模块;所述投影加速程序模块在被所述处理器调用时,执行如前所述的投影加速方法。To achieve the above object, according to another aspect of the present invention, a projection acceleration system based on bit depth segmentation is provided, including a processor and a projection acceleration program module; when the projection acceleration program module is called by the processor, Perform the projection acceleration method as described previously.
为实现上述目的,按照本发明的另一个方面,提供了一种基于位深度分割的DLP投影装置,包括微镜阵列、光源、投影镜头以及处理器,微镜阵列由多个可独立翻转的微镜组成,用于将光源发射的光反射至投影镜头的指定位置,处理器用于控制光源亮度以及控制各个微镜的翻转角度,在单个翻转周期内,将光源发射的光反射至投影镜头的指定位置时微镜的状态记为1,否则微镜的状态为0,还包括投影加速程序模块;所述投影加速程序模块在被所述处理器调用时,执行如前所述的投影加速方法。In order to achieve the above object, according to another aspect of the present invention, a DLP projection device based on bit depth segmentation is provided, including a micromirror array, a light source, a projection lens and a processor. The mirror composition is used to reflect the light emitted by the light source to the designated position of the projection lens. The processor is used to control the brightness of the light source and the flip angle of each micromirror. In a single flip cycle, the light emitted by the light source is reflected to the designated position of the projection lens. position, the state of the micromirror is recorded as 1, otherwise the state of the micromirror is 0, and also includes a projection acceleration program module; when the projection acceleration program module is called by the processor, it executes the projection acceleration method as described above.
总体而言,本发明所构思的以上技术方案与现有技术相比,能够取得下列有益效果:Generally speaking, compared with the prior art, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
(1)本发明通过将n位深度图像的单个通道的2n阶亮度分解为高n-i位亮度和低i位亮度之和的方式,利用2(n-i)单位的光源亮度生成高n-i位的2(n-i)阶灰度图案,利用1单位的光源亮度生成低i位的2i阶灰度图案,从而将高n-i位的每阶灰度变化占据的翻转周期减少为1,进而减少了单个通道投影所需占据的总翻转周期数,同时不会降低位深度,从而在不降低图像质量的前提下实现投影加速。(1) The present invention decomposes the 2n-order luminance of a single channel of an n -bit depth image into the sum of high ni-bit luminance and low i-bit luminance, and utilizes 2 (ni) units of light source luminance to generate high-ni-bit 2 (ni) -level grayscale pattern, using 1 unit of light source brightness to generate 2 i -level grayscale patterns of low i bits, thereby reducing the flip period occupied by each level of grayscale change of high ni bits to 1, thereby reducing the number of single channels The total number of flip cycles required for projection without reducing bit depth, enabling projection acceleration without loss of image quality.
(2)传统的n位深度图像单个通道的2n阶亮度,需要占据2n-1个翻转周期才能表示0~2n-1共2n阶亮度变化。而本发明的方法单个通道低i位需要占据2i-1个翻转周期,而高n-i位只需要占据2(n-i)-1个翻转周期,因此单个通道总共需要2(n-i)+2i-2个翻转周期即可表示0~2n-1共2n阶亮度变化,大大减少了一帧图像的单个通道投影所需的翻转周期总数,但是存储图像的总位深度并未发生改变。(2) The 2n -level luminance of a single channel of a traditional n-bit depth image needs to occupy 2n -1 flip cycles to represent 2n -level luminance changes from 0 to 2n -1. However, in the method of the present invention, the low i bits of a single channel need to occupy 2 i -1 flip cycles, while the high ni bits only need to occupy 2 (ni) -1 flip cycles, so a single channel needs a total of 2 (ni) +2 i - Two inversion cycles can represent 2 n -order brightness changes from 0 to 2 n -1, which greatly reduces the total number of inversion cycles required for single-channel projection of a frame of image, but the total bit depth of the stored image does not change.
(3)本发明中,i的取值决定了投影的效率,当n为偶数时,i=n/2可以使得投影效率最大化;当n为奇数时,i=(n±1)/2均可以使得投影效率最大化。(3) In the present invention, the value of i determines the efficiency of projection. When n is an even number, i=n/2 can maximize the projection efficiency; when n is an odd number, i=(n±1)/2 Both can maximize the projection efficiency.
(4)本发明只需改变光源及微镜翻转的控制程序即可实现,无需改变现有DLP的构造,因此易于推广,不增加额外的设备改造成本。(4) The present invention can be implemented only by changing the control program of light source and micromirror flipping, without changing the structure of the existing DLP, so it is easy to popularize and does not increase additional equipment modification costs.
(5)本发明不仅适用于RGB图像的投影,同样适用于灰度图的投影,根据DLP设备通道类型的不同,采用本发明的方案既可以在白光通道下进行灰度图投影,也可以通过RGB通道叠加实现灰度图的投影。(5) The present invention is not only applicable to the projection of RGB images, but also applicable to the projection of grayscale images. According to the different types of DLP equipment channels, the scheme of the present invention can be used for grayscale image projection under the white light channel, or through The RGB channel overlay realizes the projection of the grayscale image.
(6)本发明由于不需要降低图像位深度即可实现投影加速,即实现加速投影的同时不会产生锯齿,尤其适用于需要利用灰度图进行精密测量的场合。(6) The present invention can realize projection acceleration without reducing the bit depth of the image, that is, realizes accelerated projection without generating jagged teeth, and is especially suitable for occasions that require precise measurement using grayscale images.
(7)本发明的方法适用于不同通道数量的各种位深度图像序列,具有广阔的应用前景。(7) The method of the present invention is applicable to various bit-depth image sequences with different channel numbers, and has broad application prospects.
附图说明Description of drawings
图1为本发明一种基于位深度分割的提升投影速度的方法的主要步骤流程图;Fig. 1 is a flow chart of the main steps of a method for improving projection speed based on bit depth segmentation in the present invention;
图2为本发明实施例1的流程图;Fig. 2 is the flowchart of embodiment 1 of the present invention;
图3为本发明实施例2的流程图;Fig. 3 is the flowchart of embodiment 2 of the present invention;
图4为本发明实施例3的流程图。Fig. 4 is a flow chart of Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.
为便于理解本发明,需要先对现有DLP投影装置的一些基本原理及工作过程进行介绍:In order to facilitate the understanding of the present invention, it is necessary to introduce some basic principles and working process of the existing DLP projection device:
DLP是“Digital Light Processing”的缩写,直译为数字光处理,即先把待投影的原始图像处理为数字信号,然后再依据数字信号把光投影成图像。DLP的核心器件为DMD(Digital Micromirror Device,数字微镜晶片,简称微镜阵列),是由大量可翻转到固定角度的微镜组成的反射镜阵列,微镜阵列中的每个微镜对应一个像素。其基本的投影原理是通过微镜将需要的光反射至投影镜头,而将不需要的光反射至光吸收器进行吸收,从而实现影像的投影,而其反射方向则是通过控制微镜角度来实现的。因此,DLP投影装置的光源调节和图案形成是分别运作的。DLP is the abbreviation of "Digital Light Processing", literally translated as digital light processing, that is, the original image to be projected is processed into a digital signal, and then the light is projected into an image according to the digital signal. The core device of DLP is DMD (Digital Micromirror Device, digital micromirror chip, referred to as micromirror array), which is a mirror array composed of a large number of micromirrors that can be flipped to a fixed angle. Each micromirror in the micromirror array corresponds to a pixels. Its basic projection principle is to reflect the required light to the projection lens through the micromirror, and reflect the unnecessary light to the light absorber for absorption, so as to realize the projection of the image, and the reflection direction is determined by controlling the angle of the micromirror. Achieved. Therefore, the light source adjustment and pattern formation of the DLP projection device operate separately.
一般DMD的微镜角度有+12°、0°、-12°三挡,0°是初始位置,+12°时反射光朝向投影镜头,记为“开”或“1”,-12°时反射光朝向光吸收器,记为“关”或“0”。在一个翻转周期内,微镜的状态只能为1或0,即微镜角度要么为+12°,要么为-12°。Generally, the micromirror angle of DMD has three gears of +12°, 0°, and -12°. 0° is the initial position. At +12°, the reflected light is directed toward the projection lens, which is recorded as "on" or "1", and at -12° Reflected light is directed towards the light absorber, noted as "off" or "0". In one flip cycle, the state of the micromirror can only be 1 or 0, that is, the angle of the micromirror is either +12° or -12°.
DLP的图案形成是基于RGB色彩模式,RGB值就是RGB三个通道各自的色彩的亮度,在DLP中是以光源亮度积分的方式实现的。对于1600万色DLP(即用于输出8位深度图的DLP),其RGB三个通道各有0~255共256阶。现有的DLP投影方法是根据待投影像素的RGB值,以恒定1单位强度的光源亮度在相应RGB通道下对相应的微镜进行照射,光源每被微镜反射至投影镜头一次,则对应的像素位置累积1单位的光源亮度,RGB值等于相应RGB通道下微镜状态为1的翻转周期数。例如,RGB值为255、120、50的像素表示对应的微镜在R通道下占据255个状态为1的翻转周期、在G通道下占据120个状态为1的翻转周期、B通道下占据50个状态为1的翻转周期。The pattern formation of DLP is based on the RGB color mode. The RGB value is the brightness of the respective colors of the three channels of RGB. In DLP, it is realized by integrating the brightness of the light source. For a 16 million-color DLP (that is, a DLP for outputting an 8-bit depth map), the three RGB channels each have 256 levels from 0 to 255. The existing DLP projection method is to irradiate the corresponding micromirror under the corresponding RGB channel with a light source brightness of constant 1 unit intensity according to the RGB value of the pixel to be projected. Every time the light source is reflected by the micromirror to the projection lens, the corresponding The pixel position accumulates 1 unit of light source brightness, and the RGB value is equal to the number of flip cycles when the micromirror state is 1 under the corresponding RGB channel. For example, pixels with RGB values of 255, 120, and 50 indicate that the corresponding micromirror occupies 255 flipping cycles with a state of 1 under the R channel, 120 flipping cycles with a state of 1 under the G channel, and 50 flipping cycles under the B channel. A toggling cycle with a state of 1.
在计算机图像领域,单通道图像特指灰度图(注意:单通道区别于单个通道,“单通道图像”是固定术语),灰度图的通道亮度称为灰度。利用DLP投影灰度图,只需要将投影出的像素的RGB值设为与原始单通道图像中对应像素的灰度相等即可。例如,原始8位深度单通道图像中灰度为76的像素,利用DLP投影时对应的RGB值为76、76、76。In the field of computer graphics, a single-channel image specifically refers to a grayscale image (note: a single channel is different from a single channel, and "single-channel image" is a fixed term), and the channel brightness of a grayscale image is called grayscale. Using DLP to project a grayscale image, you only need to set the RGB value of the projected pixel to be equal to the grayscale of the corresponding pixel in the original single-channel image. For example, pixels with a grayscale of 76 in the original 8-bit depth single-channel image have corresponding RGB values of 76, 76, and 76 when projected by DLP.
由于8位深度图的RGB三个通道的亮度最大值均为255,RGB三通道各需要1单位的光源亮度累积255次,因此,每个通道最少需要255个翻转周期才能表示相应的0~255共256阶亮度。根据现有的DLP类型,三个通道可以同时或轮流照射。如果RGB三通道同时照射,则最少需要255个翻转周期才能显示一张8位深度的RGB图或灰度图。Since the maximum brightness of the three RGB channels of the 8-bit depth map is 255, each of the three RGB channels requires 1 unit of light source brightness to accumulate 255 times. Therefore, each channel needs at least 255 flip cycles to represent the corresponding 0-255 A total of 256 levels of brightness. Depending on the type of DLP available, the three channels can be illuminated simultaneously or alternately. If the three RGB channels are irradiated at the same time, it takes at least 255 flip cycles to display an 8-bit depth RGB image or grayscale image.
对于DLP的每个通道而言,255个翻转周期中,微镜状态为1的翻转周期数决定了该通道的亮度,现有的DLP是恒定以1单位光源亮度进行照射,例如,R通道下微镜状态为1的翻转周期有76个,其余翻转周期内微镜状态为0,则该微镜对应的像素的R通道亮度为76;255个翻转周期内微镜状态全为0,则该微镜对应的R通道亮度为0。假设微镜翻转的频率为1020Hz,所有通道同时投影,则投影8位深度图像的帧率为1020Hz÷255=4Hz。For each channel of DLP, in the 255 flip cycles, the number of flip cycles with the micromirror state being 1 determines the brightness of the channel. The existing DLP is irradiated with a constant light source brightness of 1 unit, for example, under the R channel There are 76 inversion periods in which the state of the micromirror is 1, and the state of the micromirror is 0 in the rest of the inversion periods, then the brightness of the R channel of the pixel corresponding to the micromirror is 76; the state of the micromirror is all 0 in 255 inversion periods, then the The brightness of the R channel corresponding to the micromirror is 0. Assuming that the flipping frequency of the micromirror is 1020Hz and all channels are projected at the same time, the frame rate for projecting an 8-bit depth image is 1020Hz÷255=4Hz.
通过压缩位深度进行投影加速的方法如下,将位深度由8位压缩至7位,则单个通道的亮度由256阶压缩为128阶,从而将翻转周期数从255个缩减至127个。此时投影的帧率提升为1020Hz÷127=8.03Hz,投影速度提升了1倍。但是由于压缩后亮度只能以2为单位进行变化,得到的图像质量则大幅下降,可以明显看见锯齿,压缩倍率越高,图像质量下降越大。The method of projecting acceleration by compressing the bit depth is as follows. When the bit depth is compressed from 8 bits to 7 bits, the brightness of a single channel is compressed from 256 steps to 128 steps, thereby reducing the number of flip cycles from 255 to 127. At this time, the frame rate of projection is increased to 1020Hz÷127=8.03Hz, and the projection speed is doubled. However, since the brightness can only be changed in units of 2 after compression, the quality of the obtained image will drop significantly, and jaggies can be clearly seen. The higher the compression ratio, the greater the decline in image quality.
基于上述DLP和DMD的基本原理,为了在提升投影速度的同时保持位深度不变,即保持图像质量不下降,如图1所示,本发明提出了如下方案:Based on the basic principles of the above-mentioned DLP and DMD, in order to keep the bit depth constant while improving the projection speed, that is, to keep the image quality from declining, as shown in Figure 1, the present invention proposes the following scheme:
对于n位深度的待投影图像,该投影加速方法包括以下步骤:For an image to be projected with an n-bit depth, the projection acceleration method includes the following steps:
S101、将单个通道的2n阶亮度N总分为高n-i位和低i位两部分亮度之和,n>i≥2,记为:S101. Divide the 2n -order luminance N total of a single channel into the sum of the luminance of the high ni bit and the low i bit, where n>i≥2, recorded as:
N总=N高+N低 N total = N high + N low
式中,N总为0~2n-1之间的任意整数,N高表示高n-i位亮度,N低表示低i位亮度;高n-i位亮度按照步骤S102处理得到,低i位亮度按照步骤S103处理得到;In the formula, N is always any integer between 0 and 2 n -1, N high indicates high ni-bit brightness, N low indicates low i-bit brightness; high ni-bit brightness is obtained according to step S102, and low i-bit brightness is obtained according to step S103 is processed and obtained;
若直接利用光源亮度表示单个通道的亮度,则有:If the brightness of a single channel is directly expressed by the brightness of the light source, then:
N总=X×2(n-i)单位光源亮度+Y×1单位光源亮度N total = X × 2 (ni) unit light source brightness + Y × 1 unit light source brightness
N高=X×2(n-i)单位光源亮度N height = X × 2 (ni) unit light source brightness
N低=Y×1单位光源亮度N low = Y × 1 unit light source brightness
式中,X是在对应通道下,以2(n-i)单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数,X的值有0~2(n-i)-1共2(n-i)阶;In the formula, X is the number of flip cycles required for the micromirror state to be 1 when the light source brightness of 2 (ni) units is irradiated under the corresponding channel, and the value of X is 0 to 2 (ni) -1, a total of 2 (ni) order;
Y是在对应通道下,以1单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数,Y的值有0~2i-1共2i阶;Y is the number of inversion cycles required for the micromirror state to be 1 when irradiating with a light source brightness of 1 unit under the corresponding channel, and the value of Y has a total of 2 i steps from 0 to 2 i -1;
对应通道的N总=0时,需要微镜在对应通道下所有翻转周期内的状态均为0,此时X=0,Y=0。When N total = 0 of the corresponding channel, it is required that the state of the micromirror is 0 in all flip cycles under the corresponding channel, and at this time X=0, Y=0.
S102、在对应通道下,以2(n-i)单位的光源亮度进行照射,需要1个状态为1的翻转周期就可以产生1单位光源2(n-i)个周期的光通量,此时每个状态为1的翻转周期亮度变化量为2(n-i)阶,从而生成高n-i位的亮度N高;S102. Under the corresponding channel, irradiate with the brightness of the light source of 2 (ni) units, and need 1 flip cycle with the state of 1 to produce a luminous flux of 2 (ni) cycles of a unit of light source. At this time, each state is 1 The amount of change in the brightness of the flip cycle is 2 (ni) steps, thereby generating a brightness N high of high ni bits;
S103、在对应通道下,以1单位的光源亮度进行照射,需要2i个状态为1的翻转周期可以产生1单位光源2i个周期的光通量,此时每个状态为1的翻转周期亮度变化量为1阶,从而生成低i位的亮度N低。S103. Under the corresponding channel, irradiating with 1 unit of light source brightness requires 2 i flipping cycles with a state of 1 to produce luminous flux of 1 unit light source with 2 i cycles. At this time, the brightness of each flipping cycle with a state of 1 changes The amount is 1 order, thereby generating the brightness N low of the low i bits.
按照本发明的上述方法,高n-i位只需要占据2(n-i)-1个翻转周期,低i位则需要占据2i-1个翻转周期,因此可以将单个通道的总投影周期缩减至2(n-i)+2i-2个。其中,步骤S102与S103的先后顺序可以调换。According to the above method of the present invention, the high ni bits only need to occupy 2 (ni) -1 flip cycles, and the low i bits need to occupy 2 i -1 flip cycles, so the total projection cycle of a single channel can be reduced to 2 ( ni) +2 i -2 pcs. Wherein, the sequence of steps S102 and S103 can be exchanged.
特殊地,当n为偶数时,i=n/2可以使得投影效率最大化;当n为奇数时,i=(n±1)/2可以使得投影效率最大化。In particular, when n is an even number, i=n/2 can maximize the projection efficiency; when n is an odd number, i=(n±1)/2 can maximize the projection efficiency.
下面结合几个具体实施例对本发明的方法进行进一步说明:The method of the present invention is further described below in conjunction with several specific examples:
【实施例1】n为偶数,i=n/2。[Example 1] n is an even number, i=n/2.
如图2所示,本实施例的一种基于位深度分割的提升投影速度的方法,包括以下步骤:As shown in Figure 2, a method for improving projection speed based on bit depth segmentation in this embodiment includes the following steps:
S101、将n位深度图像的单个通道2n阶亮度N总分割为高n/2位和低n/2位两部分亮度N高、N低之和:S101. Divide the single channel 2 n -level brightness N total of the n-bit depth image into the sum of two parts of high n/2 bits and low n/2 bits of brightness N high and N low :
N总=X×2(n/2)单位光源亮度+Y×1单位光源亮度N total = X × 2 (n/2) unit light source brightness + Y × 1 unit light source brightness
N高=X×2(n/2)单位光源亮度N height = X × 2 (n/2) unit light source brightness
N低=Y×1单位光源亮度N low = Y × 1 unit light source brightness
式中,X是在对应通道下,以2(n/2)单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数,In the formula, X is the number of flipping cycles in which the required micromirror state is 1 when the light source brightness of 2 (n/2) units is irradiated under the corresponding channel,
Y是在对应通道下,以1单位的光源亮度进行照射时,所需的微镜状态为1的翻转周期数;Y is the number of flip cycles required for the micromirror state to be 1 when irradiating with a light source brightness of 1 unit under the corresponding channel;
对应通道的N总=0时,需要微镜在对应通道下所有翻转周期内的状态均为0,此时X=0,Y=0。When N total = 0 of the corresponding channel, it is required that the state of the micromirror is 0 in all flip cycles under the corresponding channel, and at this time X=0, Y=0.
S102、对于高n/2位,以2(n/2)单位的光源亮度进行照射,1个翻转周期就可以产生1单位光源照射下2(n/2)个翻转周期的光通量,因此高n/2位的亮度变化有2(n/2)级共[2(n/2)-1]×2(n/2)阶,共需要占据2(n/2)-1个翻转周期,每个翻转周期内微镜状态为1或0,每一个翻转周期的亮度变化量为2(n/2),从而可以通过翻转微镜进行亮度累积,生成高n/2位的亮度。S102, for high n/2 bits, irradiate with 2 (n/2) units of light source brightness, and 1 flip cycle can produce luminous flux of 2 (n/2) flip cycles under 1 unit light source irradiation, so high n The brightness change of /2 bits has 2 (n/2) levels, a total of [2 (n/2) -1]×2 (n/2) steps, and a total of 2 (n/2) -1 flip cycles are required, each The state of the micromirror is 1 or 0 in each flipping cycle, and the brightness change amount of each flipping cycle is 2 (n/2) , so that the brightness can be accumulated by flipping the micromirror, and the brightness of n/2 bits higher can be generated.
S103、对于低n/2位,以1单位的光源亮度进行照射,1个翻转周期就可以产生1单位光源亮度的光通量,因此低n/2位的亮度变化有2(n/2)阶,共需要占据2(n/2)-1个翻转周期,每个翻转周期内微镜状态为1或0,每一个翻转周期的亮度变化量为1阶,从而可以通过翻转微镜进行亮度累积,生成低n/2位的亮度。S103. For low n/2 bits, irradiating with 1 unit of light source brightness, 1 flip cycle can generate luminous flux of 1 unit of light source brightness, so the brightness change of low n/2 bits has 2 (n/2) steps, A total of 2 (n/2) -1 flipping cycles are required, the state of the micromirror is 1 or 0 in each flipping cycle, and the amount of brightness change in each flipping cycle is 1 order, so that the brightness can be accumulated by flipping the micromirror. Generates the lower n/2 bits of luminance.
本实施例中针对单个通道,当用2(n/2)单位光源亮度进行光照照射时,在一个翻转周期内,就是1单位光源亮度的通道光照照射的2(n/2)倍,这样在光照总量一定的条件下,单个通道投影所需的翻转周期总数就会大大减少,多通道投影模式下,所有通道所需的翻转周期总数也一样会大大减少。因此,在本发明的位深度分割的策略下,无论是单通道图像投影还是多通道图像投影,投影的速度都可以得到提升。In this embodiment, for a single channel, when 2 (n/2) units of light source brightness are used for light irradiation, in one flip cycle, it is 2 (n/2) times of the channel light irradiation of 1 unit light source brightness, so in Under the condition of a certain total amount of illumination, the total number of flip cycles required for a single channel projection will be greatly reduced. In the multi-channel projection mode, the total number of flip cycles required for all channels will also be greatly reduced. Therefore, under the bit-depth segmentation strategy of the present invention, no matter it is single-channel image projection or multi-channel image projection, the projection speed can be improved.
【实施例2】8位灰度图,n=8,i=4。[Example 2] 8-bit grayscale image, n=8, i=4.
如图3及表1所示,对于8位灰度图而言,其高4位代表了0~15共16级灰度变化,需要占据15个翻转周期来实现,每一个状态为1的翻转周期灰度变化量为16阶;而低4位也代表了0~15共16级灰度变化,需要占据15个翻转周期来实现,每一个状态为1的翻转周期灰度变化量为1阶。As shown in Figure 3 and Table 1, for an 8-bit grayscale image, the upper 4 bits represent a total of 16 grayscale changes from 0 to 15, which requires 15 flip cycles to achieve, and each state is 1 flip The amount of change in the periodic grayscale is 16 levels; and the lower 4 bits also represent a total of 16 grayscale changes from 0 to 15, which need to occupy 15 flipping cycles to achieve, and the amount of grayscale change in each flipping cycle with a state of 1 is 1 step .
表1 8位灰度图256阶亮度分割示意表Table 1 Schematic diagram of 256-level brightness segmentation of 8-bit grayscale image
由于DLP投影装置的光源和图案形成是分别运作的,我们可以将256阶灰度图像的产生分割为2部分,用16单位的光源亮度生成高4位的15阶灰度图案,而用1单位的光源亮度生成低4位的16阶灰度图案。以16单位的光源进行照射时,只需1个微镜周期,就可以产生1单位光源16个周期的光通量。以1个像素为例,若其灰度值为76,8位二进制表示为01001100,则其高四位为0100=4,即X=4,低四位为1100=12,即Y=12。Since the light source and pattern formation of the DLP projection device operate separately, we can divide the generation of the 256-level grayscale image into two parts, use 16 units of light source brightness to generate a 15-level grayscale pattern with 4 bits higher, and use 1 unit The brightness of the light source generates a 16-level grayscale pattern with the lower 4 bits. When irradiating with 16 units of light source, only 1 micromirror period is needed to generate 16 periods of luminous flux of 1 unit of light source. Taking 1 pixel as an example, if its grayscale value is 76, and its 8-bit binary representation is 01001100, its upper four bits are 0100=4, that is, X=4, and its lower four bits are 1100=12, that is, Y=12.
为了产生该灰度,按照传统的DLP投影方法,无论是白色通道(gray=76)还是RGB通道(R=76,G=76,B=76),单个通道均需要255个翻转周期,其中76个翻转周期内微镜状态为1,其余179个翻转周期内微镜状态为0。在本发明的位深度分割策略下,则单个通道只需要30个翻转周期,前15个周期以16单位的光源亮度进行照射,其中X=4个翻转周期内微镜状态为1,后15个周期以1单位的光源亮度进行照射,其中Y=12个翻转周期内微镜状态为1,那么按照光通量计算,这30个周期内单个通道产生的亮度值为:In order to produce this gray scale, according to the traditional DLP projection method, whether it is the white channel (gray=76) or the RGB channel (R=76, G=76, B=76), a single channel requires 255 flip cycles, of which 76 The state of the micromirror is 1 in one flip cycle, and the state of the micromirror is 0 in the remaining 179 flip cycles. Under the bit-depth segmentation strategy of the present invention, a single channel only needs 30 flipping cycles, and the first 15 cycles are irradiated with a light source brightness of 16 units, wherein the state of the micromirror is 1 in X=4 flipping cycles, and the last 15 The cycle is irradiated with the brightness of the light source of 1 unit, where Y=12 flipping cycles, the state of the micromirror is 1, then calculated according to the luminous flux, the brightness value generated by a single channel in these 30 cycles is:
76=4×1(周期)×16(光源亮度)+12×1(周期)×1(光源亮度)76=4×1(period)×16(light source brightness)+12×1(period)×1(light source brightness)
本实施例中,将8位灰度图像的单个通道的投影周期从255个翻转周期缩减到30个,投影速度提升了8.5倍。本实施例的光照顺序可以调换,即也可以前15个周期以1单位的光源亮度进行照射,其中12个翻转周期内微镜状态为1,先生成低4位的灰度图案;后15个周期以16单位的光源亮度进行照射,其中4个翻转周期内微镜状态为1,来生成高4位图案。In this embodiment, the projection cycle of a single channel of an 8-bit grayscale image is reduced from 255 flip cycles to 30, and the projection speed is increased by 8.5 times. The illumination order of this embodiment can be exchanged, that is, the first 15 cycles can also be irradiated with the brightness of the light source of 1 unit, wherein the state of the micromirror is 1 in the 12 flip cycles, and the gray pattern of the lower 4 bits is first generated; the last 15 The cycle is irradiated with the light source brightness of 16 units, and the state of the micromirror is 1 in the 4 flip cycles to generate the upper 4-bit pattern.
对于8位RGB图像(俗称1600万色或1678万色图像),同样可以根据本实施例的表1,按照单个通道的亮度分割方法对各个通道的亮度(即RGB值)进行分割,照射方法、微镜翻转方法同理,不再赘述。For 8-bit RGB images (commonly known as 16 million colors or 16.78 million colors images), the brightness (i.e. RGB value) of each channel can be divided according to the brightness segmentation method of a single channel according to Table 1 of this embodiment, the illumination method, The flipping method of the micromirror is the same and will not be repeated here.
【实施例3】4位深度图像,n=4,i=2。[Example 3] 4-bit depth image, n=4, i=2.
如图4及表2所示,将4位深度图像的单个通道的16阶亮度拆分为高2位和低2位两部分,其高2位代表了0~3共4级亮度变化,需要占据3个翻转周期来实现,每一个状态为1的翻转周期亮度变化量为4阶;而低2位也代表了0~3共4级灰度变化,需要占据3个翻转周期来实现,每一个状态为1的翻转周期亮度变化量为1阶。As shown in Figure 4 and Table 2, the 16-level brightness of a single channel of a 4-bit depth image is divided into two parts, the upper 2 bits and the lower 2 bits, and the upper 2 bits represent a total of 4 levels of brightness changes from 0 to 3. Occupy 3 flipping cycles to achieve, the amount of brightness change in each flipping cycle when the state is 1 is 4 levels; and the lower 2 bits also represent a total of 4 levels of grayscale changes from 0 to 3, which need to occupy 3 flipping cycles to achieve, each The luminance change amount of a flip cycle with the state being 1 is 1 step.
表2 4位深度图16阶亮度分割示意表Table 2 Schematic diagram of 16-level brightness division of 4-bit depth image
高2位的4级灰度变化,若以4单位的光源亮度进行照射,需要1个翻转周期就可以产生1单位光源4个周期的光通量,每一个翻转周期内微镜状态为1或0,每一个翻转周期的亮度变化为4阶,需要占据3个翻转周期,生成高2位的4阶灰度图案;同理低2位的4级灰度变化,需要占据3个翻转周期,每一个翻转周期的亮度变化为1阶,用1单位的光源亮度进行照射,需要3个翻转周期可以产生低2位的4阶灰度变化,每个翻转周期内的微镜状态是1或0。本实施例中微镜的翻转周期由15个减少为6个,投影速度提升了2.5倍。The 4-level grayscale change of the upper 2 bits, if irradiated with 4 units of light source brightness, requires 1 flip cycle to generate luminous flux of 1 unit of light source for 4 cycles, and the state of the micromirror is 1 or 0 in each flip cycle. The brightness change of each inversion cycle is 4 levels, and it needs to occupy 3 inversion cycles to generate a 4-level grayscale pattern with the upper 2 bits; similarly, the 4-level grayscale change in the lower 2 bits needs to occupy 3 inversion cycles, each The brightness change of the flipping cycle is 1 level. With 1 unit of light source brightness for irradiation, it takes 3 flipping cycles to produce a 4-level grayscale change of the lower 2 bits. The state of the micromirror in each flipping cycle is 1 or 0. In this embodiment, the flip cycle of the micromirror is reduced from 15 to 6, and the projection speed is increased by 2.5 times.
需要说明的是,4位深度图1单位的光源亮度相当于8位深度图1单位的光源亮度的28-4=16倍,因此,4位深度图每阶亮度的变化程度巨大,锯齿非常明显,本发明可以在提升4位深度图投影速度的同时,避免4位深度图的质量进一步下降。It should be noted that the luminance of a light source per unit in a 4-bit depth map is equivalent to 2 8-4 = 16 times the luminance of a light source in 1 unit of an 8-bit depth map. Therefore, the brightness of each level of a 4-bit depth map varies greatly, and the jaggedness is very large. Obviously, the present invention can avoid further degradation of the quality of the 4-bit depth map while increasing the projection speed of the 4-bit depth map.
通过上述实施例可以理解,本发明适用于各种位深度图像的快速投影处理,例如7位深度、10位深度、16位深度等,不同位深度的投影加速操作方法及原理是相同的,区别仅在于n、i的取值,将n、i的取值直接代入本发明的方法即可,在满足n>i≥2的前提下,n为偶数、奇数不影响本发明的实现。此外,由上述实施例可知,原始图像的位深度越大,本发明的投影提速效果越明显。It can be understood from the above embodiments that the present invention is applicable to fast projection processing of various bit depth images, such as 7-bit depth, 10-bit depth, 16-bit depth, etc. The projection acceleration operation methods and principles of different bit depths are the same, and the difference Only in the values of n and i, the values of n and i can be directly substituted into the method of the present invention. Under the premise that n>i≥2, n being an even or odd number does not affect the realization of the present invention. In addition, it can be seen from the above embodiments that the greater the bit depth of the original image, the more obvious the projection speed-up effect of the present invention.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910437733.4A CN110177262B (en) | 2019-05-24 | 2019-05-24 | Projection acceleration method, system and device based on bit depth segmentation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910437733.4A CN110177262B (en) | 2019-05-24 | 2019-05-24 | Projection acceleration method, system and device based on bit depth segmentation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110177262A true CN110177262A (en) | 2019-08-27 |
CN110177262B CN110177262B (en) | 2020-08-04 |
Family
ID=67692020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910437733.4A Active CN110177262B (en) | 2019-05-24 | 2019-05-24 | Projection acceleration method, system and device based on bit depth segmentation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110177262B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117676107A (en) * | 2024-01-31 | 2024-03-08 | 武汉中观自动化科技有限公司 | Image laser projection method and laser projection device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6275271B1 (en) * | 1999-03-04 | 2001-08-14 | Matsushita Electric Industrial Co. Ltd. | Tone display method |
CN104469223A (en) * | 2014-12-02 | 2015-03-25 | 苏州佳世达光电有限公司 | Projection device and projection image splicing method |
CN106154714A (en) * | 2015-04-09 | 2016-11-23 | 深圳市光峰光电技术有限公司 | The method of a kind of spatial light modulator modulation data and optical projection system |
US20170091910A1 (en) * | 2015-09-25 | 2017-03-30 | Intel Corporation | Facilitating projection pre-shaping of digital images at computing devices |
CN109388004A (en) * | 2017-08-04 | 2019-02-26 | 深圳光峰科技股份有限公司 | Optical projection system |
-
2019
- 2019-05-24 CN CN201910437733.4A patent/CN110177262B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6275271B1 (en) * | 1999-03-04 | 2001-08-14 | Matsushita Electric Industrial Co. Ltd. | Tone display method |
CN104469223A (en) * | 2014-12-02 | 2015-03-25 | 苏州佳世达光电有限公司 | Projection device and projection image splicing method |
CN106154714A (en) * | 2015-04-09 | 2016-11-23 | 深圳市光峰光电技术有限公司 | The method of a kind of spatial light modulator modulation data and optical projection system |
US20170091910A1 (en) * | 2015-09-25 | 2017-03-30 | Intel Corporation | Facilitating projection pre-shaping of digital images at computing devices |
CN109388004A (en) * | 2017-08-04 | 2019-02-26 | 深圳光峰科技股份有限公司 | Optical projection system |
Non-Patent Citations (2)
Title |
---|
叶明勤: "DLP数字投影技术的发展", 《现代电视技术》 * |
姜兆华等: "DMD数字微镜驱动控制系统分析及其应用", 《应用激光》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117676107A (en) * | 2024-01-31 | 2024-03-08 | 武汉中观自动化科技有限公司 | Image laser projection method and laser projection device |
CN117676107B (en) * | 2024-01-31 | 2024-05-24 | 武汉中观自动化科技有限公司 | Image laser projection method and laser projection device |
Also Published As
Publication number | Publication date |
---|---|
CN110177262B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100809345B1 (en) | Image generating device and method | |
ES2987869T3 (en) | Displaying DCI and other content on an enhanced dynamic range projector | |
CN114401389B (en) | Image projection system and method | |
US20100110112A1 (en) | Backlight apparatus and display apparatus | |
US20110050861A1 (en) | Stereoscopic image display device and stereoscopic image display method | |
JP4777675B2 (en) | Image processing apparatus, image display apparatus, image processing method, program for causing computer to execute the method, and recording medium | |
CN110770816B (en) | Display system, image processing device, pixel shift display device, image processing method, display method, and program | |
JP2011013458A (en) | Liquid crystal display device | |
CN1607422A (en) | Display system with scrolling color and wobble device | |
CN101039438A (en) | Color correction circuit, image display apparatus including the same | |
CN109429045A (en) | Image processing apparatus, display device, image procossing and display device and method | |
CN110177262A (en) | A kind of projection accelerated method, system and device based on bit depth segmentation | |
JP2005107019A (en) | Image display method and apparatus, and projector | |
CN110941134A (en) | Display apparatus, control method of display apparatus, and computer-readable storage medium | |
JP2010237633A (en) | Projector | |
WO2022017266A1 (en) | Display method and related apparatus therefor | |
JP2009116351A (en) | Image display device | |
TWI245966B (en) | Display device and image processing method therefor | |
CN108845425B (en) | Slice image editing method and projection device | |
JP4461703B2 (en) | projector | |
JP5392345B2 (en) | Projector and projector control method | |
JP2006311003A (en) | On-vehicle image generating apparatus and method | |
JP2000292131A (en) | Three-dimensional information input camera | |
CN113039484A (en) | Image display device | |
JP2019066806A (en) | Projection device and method of controlling the same, program, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |