c# - How to load a specific patch/rectangle from an image? -
We have an application that shows large image files (satellite imagery) from local network resources. To speed up image rendering, we split the image into smaller patch (like 6x6 cm) and app tiles them properly. But each time the satellite image is being updated, the split pre-process should be done, which is a time consuming task.
I wonder how can we load patches from the original file?
PS1: I know, but we need an open source solution.
PS2: App N.T.T. C # in
EDIT 1: The format is not a point for us, but currently it can be considered to replace the JPG format, but the BMP format is not acceptable in large quantities is.
I mention a beautiful effort to answer your question, but my browser has eaten it ...: (< / P>
Actually what I tried to say was:
1.- Since JPEG (and most compression format) uses a secuitive compression, you can always use all those bits You need to decode which you need.
2.- Solutions that I want to share with each format you need There are many open source JPEG decoders that you can modify. The JPEG decoder needs to define the blocks of bits (the size of the variable) which converts to 8x8 pixel blocks of size What you can do is modify only the code and all others do not need to save the blocks you just need (basically as soon as they are decoded With those memory-saved blocks, you create your desired image.BR> 4.- Sin CE works with JPEG 8x8 block, if you work with patches of multiples of 8 pixels. , Then your work can be easy.
5.- The modification made for JPIG decoder can be used in place of preprocessing of your pictures if you save the patch and discards the blocks as soon as you complete them. It will actually consume faster and less memory.
I know that it requires a lot of work and there are so many details to take into consideration (especially if you work with color images), but if you need to perform I belive you Always fight with the bytes or play (as you want it to be seen) will end.
Hope it helps.
Comments
Post a Comment