当前位置:网站首页>LabVIEW pictures look bright or dark after being cast from 16 bits to 8 bits
LabVIEW pictures look bright or dark after being cast from 16 bits to 8 bits
2022-06-10 23:47:00 【LabVIEW development】
LabVIEW The picture is from 16 Bit cast to 8 Look bright or dark after bit
I captured a picture with my camera 16 Bit image , And use IMAQ Cast Image VI Convert it to 8 Bit image . The image looks brighter or darker . The bit depth of the camera is 10 position . Why is that ?
answer :
If you use 10 Bit camera captures the original image , Then we are going to change it from 16 Bit representation is converted to 8 Bit indicates after , There are several reasons why the image looks different .IMAQ Cast Image VI There is one named # Shifts The input of . Although it is I32 Long integer , But its scope is forced in 0 To 8 Between integers of . When LabVIEW take 16 Bit images are converted to 8 Bit image , It shifts the data by the number of bits specified in the input , Then use only low 8 Bit represents a new image .

edit
Add picture comments , No more than 140 word ( Optional )
If the bit depth is 10 Bit camera captures images , There will be an exception . The bit depth of the buffer that holds the image will also be explicit 10 position . When using the conversion function to convert to a 8 Bit image , If # Shifts The input is 0, Then the function will still move the image 2 position . This will make the new 8 Bits indicate that the image looks the same as the original image . If # Shifts Other non 0 Value , Function will shift the specified number of bits to the left . therefore , If the value is 1 Words , The new image will look brighter , The value is 0 or 2 Will make the image look the same as the original image , And when the value is greater than 2 The image will appear darker than the original image .
This is when deciding what target cache to use for the result of the transform function , There's a certain relationship . For example , If you use one 10 The image captured by the bit camera is converted to 8 Bit image , And then back to 16 Bit image , So depending on whether you are reusing the same image buffer , Or create a new buffer , The result will be different . If you reuse buffers , You will keep the original image 10 Bit depth . But before you will 8 Bit images are converted to 16 Bit image , The conversion function does not move the number of bits back . therefore , The values of all pixels are constant , But now their bit depth is 10 instead of 8. When you convert to 8 Bit image , First, shift , But when you switch back , They will not be displaced back . On the other hand , If you use the new buffer as the target of the conversion function , Then the new image will have the same pixel value , And its bit depth will still be 8( Even though it is 16 Bit image ). therefore , It looks the same as the original image .
Here's a VI Examples to demonstrate the phenomena described above . The following tests can be carried out : Change the number of bits shifted , Or decide whether to reuse the buffer ( Be careful : To see more clearly the difference between reusing buffers and using new buffers , take # Shift Set to 0 or 2). This example should be matched with one set in MAX To read 10 Bit monochrome image camera use .
More details , Participate in the introduction of the following annex .
LabVIEW、LabVIEW Development 、LabVIEW Programming 、LabVIEW Program
Examples and information mentioned above , Both in word In the attachment in , Click to download . Learn more , Can you contact us .
边栏推荐
- Why is the kotlin language not popular now?
- Fiddler filtering sessions
- LabVIEW用VISA Read函数来读取USB中断数据
- C语言创建动态二维数组
- Project training 11 - regular backup of database
- LabVIEW错误“内存已满 - 应用程序停止在节点”
- Analysis of Genesis public chain
- Design language testing for functional testing: what tests are included in functional testing? What is the role of each
- 怎么生成自动参考文献(简单 有图)
- 苹果CMS采集站源码-搭建教程-附带源码-全新源码-开发文档
猜你喜欢

Font spider Teaching -- ttf/otf font file compression

This article introduces you to j.u.c's futuretask, fork/join framework and BlockingQueue

一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue

ILRuntime热更框架 安装以及断点调试

PwnTheBox,Pwn:tutorial1

mysql 表机制

Data and information resource sharing platform (IV)

LabVIEW用高速数据流盘

Why is the kotlin language not popular now?

Model Workshop
随机推荐
SQL查询优化原理实例分析
LabVIEW或MAX下的VISA测试面板中串口无法工作
LabVIEW锁相环(PLL)
Ilruntime hotfix framework installation and breakpoint debugging
LabVIEW 禁止其他可多核心处理的应用程序在所有核心上执行
The data file insurance CSV contains 1338 observations, that is, the registered beneficiaries of the insurance plan and the characteristics that represent the characteristics of patients and the total
30 frequently asked questions of 2022 latest software test interview questions [continuous update ~]
数据文件 Insurance csv包含1338条观测,即目前已经登记过的保险计划受益者以及表示病人特点和历年计划入的总的医疗费用的特征。这些特征是
Redis list list common commands
宁愿“大小周”、每天只写 200 行代码、月薪 8k-17k 人群再涨
Excel essential toolbox 17.0 Free Edition
Which securities company does qiniu's securities belong to? Is it safe?
数据文件nc6oa.txt由33个癌细胞系得6830个基因表达数据构成,每一个细胞系都是某种类型的癌细胞的类型。请按照基因表达数据对33个细胞系进行聚类(聚类类别数划是癌细胞的类型个数,比如乳腺癌、肺
Ma8601 pin √ pin replaces Tang Ming fe1.1s without changing the circuit board | perfectly replaces fe1.1s scheme
It is known that the transverse grain pressure resistance of a certain wood obeys n (x, D2). Now ten specimens are tested for transverse grain pressure resistance, and the data are as follows: (unit:
HyperLeger Fabric安装
Postgraduate entrance examination English vocabulary unit1
34. find the first and last positions of elements in the sorted array - binary search, double pointer
easyrecovery15操作简单方便的数据恢复工具
给线程池里面线程添加名称的4种方式