How to display large images and large images

Source: Internet
Author: User

How to display large images and large images

1: Anyone who has performed Image Display knows that most of our images are compressed, most of which are jpeg png bmp. The BMP format is in the lattice format, after the image is translated to the memory, it will be converted into the memory in BMP format no matter whether it is compressed or not. In this process, the image data will increase several times, such as JPEG, A 1 Mbit/s JPEG image may be about 7 times as translated into memory, that is, 7 Mbit/s will be placed in the computer memory. If a Mbit/s JPEG image is displayed, if you put it into the memory, it may become 1 GB. If it is a 1 GB image, will your computer memory be enough? Yes, you can. You can say that my computer has a high configuration of 16 GB memory ,, if I want you to display a 4G image, remember to compress it and translate it into memory for nearly 28 GB. You said I can buy a 28G memory, yes, brother, you have a lot of money. Hahaha, if you want to do this, you don't have to read this article. You can bow to the local tyrants. If I want to use a 2G memory to show that there are still 4G images compressed, and I want to generate this image, for example, I use a microscope to take a slice, or the texture structure of a material. Although a slice may have only a few CM, the resolution of the microscope is very high, I just want to zoom in the image several thousand times with a microscope. Well, the problem is that the camera may have to take thousands of images and splice them into a large image, then it is displayed on the computer that it is very convenient for all doctors to point in front of the computer. However, when the problem arises again and the computer memory is insufficient, you cannot generate such a large picture, the generation process is also in the computer memory. Well, I don't need to talk about it anymore. Let's take a look at the demo below.

1: Prepare a 54889x80315 image. Of course, not many people may have such a large image. If they do not know this technology, they cannot generate such a large image.

The size of this image is 54889x80315. How big is the data size? I forget it, it is about 4.2041 GB. Careful netizens may notice why the image size is only 399 MB ,, haha, this is another technology. The friends you want to hear will decrypt it in subsequent articles.

2: Now, if we all have this image, we want to display it below: First of all, we will think of it. I will try it in a regular browser, we will first use the image browser that comes with Microsoft. Don't underestimate the windows Image Viewer. It's a smart and efficient user. Never think of him as a small program, sometimes I can open my image. Even if my image has a special data structure and compression format designed by me, PS cannot open my image. This guy can open it, so here I still admire this image browser.

How about it? Hahaha, the computer memory is not enough. Of course, this browser will be suspended again. It is just a silly and crude way to show this picture. Of course, the memory is not enough. I also tried it on my friend's 8 GB memory computer. It's just like a dead end !!! The display cannot be displayed. What else do you want to create this image.

3: But I can open this picture with my own software. Of course, I also know how to generate this picture before. This is a complete process; the effects of opening my software are:

To make a global image:

 

As a matter of fact, the overall effect of the image will grow like this. In fact, the effect is no different from that of displaying a small image, the smoothness, and the additional features that many other browsers have, however, the implementation process of these additional functions is also very painful. Why? It is because this is a large image, which is too big and the display mechanism is different. Therefore, all traditional methods have to be overturned.

 

I have been working on this project for two years. It is difficult to complete this software. Because I am a mechanical engineer and I am still a graduate student at school, the level of code writing cannot keep up with the class background. I plan to write down the entire process of this technology. From how do you generate the largest image so far, let your image stitching break through the computer restrictions, let you show how, how to translate, how to zoom, how to mark, etc. There are too many content, and I have a complete project file, including compiled library files, decompress the compressed package and use it directly. I wrote it in WPF. In fact, WPF is similar to C #. In fact, he is a brother. The number of codes exceeds tens of thousands. But it took me a lot of effort. If you are interested, you can use Baidu's Aperio and MOTIC companies. The Aperio software is sold together with its instruments. It is said that a single instruments have millions of users, and its function is to scan a sliced microscope, then open the browsing slice, mainly to facilitate the doctor to carry out the slice examination, and reduce the workload of the doctor, you know, without this instrument, the doctor can use the eyes to view the slice one by one, tens of thousands of slices. This is exhausting doctors !!! Blind eyes !!! Aperio scans a slice for a few seconds, then enters it into the computer, and displays it with software. This is the core function of the software, that is, the functionality of my software .......

The technologies involved in the entire software include TIFF image technology, quad-tree, virtual display technology, virtual container technology, memory ing file technology, image pyramid technology, etc, XML document management, thumbnail display, UI layout, and so on.

Interested friends can follow the subsequent articles, you need this software can contact me, my mailbox nanshanyi@sjtu.edu.cn, you can discuss. This is what I wrote today ......

 

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.