Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HDD access chaotic speed problem. Pin
Niklas L31-Jan-11 21:09
Niklas L31-Jan-11 21:09 
GeneralRe: HDD access chaotic speed problem. Pin
progDes31-Jan-11 21:28
progDes31-Jan-11 21:28 
Questionwant to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
VCProgrammer31-Jan-11 0:26
VCProgrammer31-Jan-11 0:26 
AnswerRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
User 742933831-Jan-11 0:38
professionalUser 742933831-Jan-11 0:38 
GeneralRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Niklas L31-Jan-11 1:08
Niklas L31-Jan-11 1:08 
GeneralRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Graham Shanks31-Jan-11 2:24
Graham Shanks31-Jan-11 2:24 
AnswerRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Graham Shanks31-Jan-11 2:40
Graham Shanks31-Jan-11 2:40 
QuestionTransparent Color Pin
john563231-Jan-11 0:06
john563231-Jan-11 0:06 
AnswerRe: Transparent Color Pin
Niklas L31-Jan-11 1:17
Niklas L31-Jan-11 1:17 
GeneralRe: Transparent Color Pin
john563231-Jan-11 2:08
john563231-Jan-11 2:08 
AnswerRe: Transparent Color Pin
Cool_Dev31-Jan-11 2:11
Cool_Dev31-Jan-11 2:11 
GeneralRe: Transparent Color Pin
john563231-Jan-11 4:53
john563231-Jan-11 4:53 
QuestionHow to create multiple opengl view In same window? Pin
GAJERA30-Jan-11 23:03
GAJERA30-Jan-11 23:03 
QuestionExtra large (256x256) icon shortcut to the control panel applet (CPL) ? Pin
Maxwell Chen30-Jan-11 21:43
Maxwell Chen30-Jan-11 21:43 
Answer[Resolved]: Extra large (256x256) icon shortcut to the control panel applet (CPL) ? Pin
Maxwell Chen10-Feb-11 21:59
Maxwell Chen10-Feb-11 21:59 
Questionsave structure in file Pin
MKC00230-Jan-11 19:57
MKC00230-Jan-11 19:57 
AnswerRe: save structure in file [modified] Pin
Aescleal30-Jan-11 20:07
Aescleal30-Jan-11 20:07 
AnswerRe: save structure in file Pin
Cool_Dev30-Jan-11 20:07
Cool_Dev30-Jan-11 20:07 
QuestionImage Flickering Pin
john563230-Jan-11 18:39
john563230-Jan-11 18:39 
AnswerRe: Image Flickering Pin
Cool_Dev30-Jan-11 18:59
Cool_Dev30-Jan-11 18:59 
GeneralRe: Image Flickering Pin
john563230-Jan-11 19:16
john563230-Jan-11 19:16 
GeneralRe: Image Flickering Pin
Cool_Dev30-Jan-11 19:31
Cool_Dev30-Jan-11 19:31 
AnswerRe: Image Flickering Pin
S p k 52130-Jan-11 19:28
S p k 52130-Jan-11 19:28 
AnswerRe: Image Flickering Pin
Andrew Brock30-Jan-11 19:35
Andrew Brock30-Jan-11 19:35 
QuestionLarge JPEG/PNG Image Sequence Looping Pin
Golden Lee30-Jan-11 0:57
Golden Lee30-Jan-11 0:57 
Hi,

I have been working on my project about remotely sensed image processing, and image sequence looping. Each resulting image (in JPEG or PNG format) has approximately 8000 * 4000 pixels. Our users usually want to loop an image sequence (more than 50 images) on the basis of region of interest at a time. Thus, I have to extract the required viewing area from the each image according to user's visualization client size. For example, if user's current client view is 640 * 480, I'll have to find a size of 640 * 480 data block from each original image based on the current x (columns) and y (rows) coordinates, and remap to the client view. When user pans to another viewing area by mouse dragging, our program must accordingly re-load regional data out of each original image as soon as possible.

I know neither JPEG library nor PNG library has some built-in data block read routines, such as
long ReadRectangle (long x0, long y0, long x1, long y1, char* RectData);
long ReadInaRectangle (long x0, long y0, short width, short height, char* RectData);

The built-in JPEG decompressor lacks this kind of functionality. I know that JPEG2000 format has provisions for decompressing a specific area of the image. I'm not entirely sure about JEPG.

Someone suggest that I use CreateFileMapping, MapViewOfFile, and CreateDIBSection to commit the number of bytes of a file mapping to map to the view. Unlike the simple flat binary image formats such *.raw, *.img, and *.bmp, JPEG's Blob will contain not only the image data but also the complicated JPG header. So it's not easy to map a block of data view out of the JPEG file.

Someone recommend that I use image tiling or image pyramid technology to generate sub-images, just like mnay popular, image visualization (Google Earth, and etc.), and GIS applications (WebGIS, and etc.) do.

How can I solve this problem?

Thanks for your help.

Golden Lee

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.