Interpolation problem (B-mode printer driver development)
Source: Internet
Author: User
Interpolation problem (B-mode printer driver development)-Linux general technology-Linux programming and kernel information, the following is a detailed description. When the B-mode ultrasound image is printed 100%, the image is printed normally,
You need to zoom in by 150%. you can use manual write interpolation to zoom in, but the disadvantage is that it is much slower. the method is as follows:
The ScreenBuffer of the 800X576 image is increased by 1.5 times, and each two bytes are inserted in the middle. you need to insert (800X576)/2 bytes, which slows down the printing speed.
I connected the USB printer to a PC and printed the file (. prn file), seeking for how the machine interpolation achieves the amplification function, the results found that before printing, the machine sent an interpolation table, the length is 1280 bytes (20X64 ), that is, 64 times the characters below,
0x01,0x80, 0x01, 0x2a, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x55,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
I printed the image with the same 1280 characters in B-ultrasound. The result shows that the image contains two half images, one of which is 1.5 times and the other is 1.5X1.5,
I would like to ask experts to give a fast and effective printing method to achieve a 1.5-fold magnification of B-ultrasound images,
Now the key is how to fix this interpolation table. This is an interpolation table inside the printer.
Thank you!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service