Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: Large JPEG/PNG Image Sequence Looping Pin
Chris Losinger31-Jan-11 6:04
professionalChris Losinger31-Jan-11 6:04 
QuestionHow to use CTabCtrl::GetCurSel Pin
Tiffanie Jones29-Jan-11 9:48
Tiffanie Jones29-Jan-11 9:48 
AnswerRe: How to use CTabCtrl::GetCurSel Pin
User 742933829-Jan-11 10:46
professionalUser 742933829-Jan-11 10:46 
GeneralRe: How to use CTabCtrl::GetCurSel Pin
Tiffanie Jones29-Jan-11 16:26
Tiffanie Jones29-Jan-11 16:26 
AnswerRe: How to use CTabCtrl::GetCurSel Pin
User 742933829-Jan-11 20:37
professionalUser 742933829-Jan-11 20:37 
QuestionSaving an image Pin
softwaremonkey29-Jan-11 9:15
softwaremonkey29-Jan-11 9:15 
AnswerRe: Saving an image Pin
CPallini29-Jan-11 10:24
mveCPallini29-Jan-11 10:24 
GeneralRe: Saving an image Pin
softwaremonkey30-Jan-11 8:55
softwaremonkey30-Jan-11 8:55 
GeneralRe: Saving an image Pin
CPallini30-Jan-11 9:10
mveCPallini30-Jan-11 9:10 
QuestionCDBException because access file table item have value like "#Error". Pin
Le@rner28-Jan-11 19:32
Le@rner28-Jan-11 19:32 
AnswerRe: CDBException because access file table item have value like "#Error". Pin
Richard MacCutchan28-Jan-11 21:24
mveRichard MacCutchan28-Jan-11 21:24 
QuestionStepper Motor Control through Parallel Port [modified] Pin
saleheh28-Jan-11 19:10
saleheh28-Jan-11 19:10 
AnswerRe: Stepper Motor Control through Parallel Port Pin
Richard MacCutchan28-Jan-11 21:22
mveRichard MacCutchan28-Jan-11 21:22 
GeneralRe: Stepper Motor Control through Parallel Port Pin
Niklas L28-Jan-11 22:20
Niklas L28-Jan-11 22:20 
GeneralRe: Stepper Motor Control through Parallel Port Pin
CPallini28-Jan-11 22:36
mveCPallini28-Jan-11 22:36 
AnswerRe: Stepper Motor Control through Parallel Port Pin
Luc Pattyn29-Jan-11 1:22
sitebuilderLuc Pattyn29-Jan-11 1:22 
AnswerRe: Stepper Motor Control through Parallel Port Pin
Roger Allen31-Jan-11 2:14
Roger Allen31-Jan-11 2:14 

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.