Click here to Skip to main content
15,906,463 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: conversion of jpg to data ie. txt Pin
Ed.Poore3-Jan-07 23:44
Ed.Poore3-Jan-07 23:44 
GeneralRe: conversion of jpg to data ie. txt Pin
Lowki4-Jan-07 0:37
Lowki4-Jan-07 0:37 
GeneralRe: conversion of jpg to data ie. txt Pin
Ed.Poore4-Jan-07 3:36
Ed.Poore4-Jan-07 3:36 
GeneralRe: conversion of jpg to data ie. txt Pin
Lowki5-Jan-07 4:12
Lowki5-Jan-07 4:12 
GeneralRe: conversion of jpg to data ie. txt Pin
Ed.Poore5-Jan-07 4:37
Ed.Poore5-Jan-07 4:37 
GeneralRe: conversion of jpg to data ie. txt Pin
El Corazon5-Jan-07 6:04
El Corazon5-Jan-07 6:04 
GeneralRe: conversion of jpg to data ie. txt Pin
Rilhas30-Jan-07 12:39
Rilhas30-Jan-07 12:39 
GeneralRe: conversion of jpg to data ie. txt Pin
Rilhas30-Jan-07 12:46
Rilhas30-Jan-07 12:46 
By the way: a JPEG can usually be decompressed to a raw bitmap format (a format where each pixel is represented by a 8-bit intensity red value, an 8-bit green value, and an 8-bit blue value). So, your decompressed image of say 200x300 pixels will, usually, result in a linear sequential flat array of 200x300x3 bytes.

To access the pixel at column 70 in line 20 you access the bytes (20*200+70)*3, (20*200+70)*3+1, and (20*200+70)*3+2. A luminance-only black and white decompression will usually result in a flat array of 200x300x1 (grayscale intensity value of 8 bits). There are variations when considering if line 70 is counted from the top or from the bottom. Also, the blue component may be the first of the 3 bytes and not the last. A good JPEG decompression will let you specify the resulting oientation and endian.

These can be considered raw formats, and comparisons can, thus, be made on a component-by-component basis.

Let me know if you need a way to decompress JPEG's to raw bitmap.

Rogério Rilhas
QuestionRe: conversion of jpg to data ie. txt Pin
Maximilien5-Jan-07 5:40
Maximilien5-Jan-07 5:40 
AnswerRe: conversion of jpg to data ie. txt Pin
Lowki8-Jan-07 1:51
Lowki8-Jan-07 1:51 
GeneralRe: conversion of jpg to data ie. txt Pin
Jeremy Falcon31-Jan-07 6:03
professionalJeremy Falcon31-Jan-07 6:03 
QuestionMoving window along a cosine path Pin
Tommy Svensson28-Dec-06 4:50
Tommy Svensson28-Dec-06 4:50 
AnswerRe: Moving window along a cosine path Pin
Kacee Giger28-Dec-06 7:52
Kacee Giger28-Dec-06 7:52 
Questionhow to change wave file frequency Pin
hserver25-Dec-06 21:37
hserver25-Dec-06 21:37 
AnswerRe: how to change wave file frequency Pin
Rilhas22-Jan-07 12:57
Rilhas22-Jan-07 12:57 
QuestionPuzzle Challenge Site Pin
Are Jay22-Dec-06 21:47
Are Jay22-Dec-06 21:47 
AnswerRe: Puzzle Challenge Site Pin
PIEBALDconsult26-Dec-06 6:47
mvePIEBALDconsult26-Dec-06 6:47 
GeneralRe: Puzzle Challenge Site Pin
Luc Pattyn26-Dec-06 7:38
sitebuilderLuc Pattyn26-Dec-06 7:38 
GeneralRe: Puzzle Challenge Site Pin
PIEBALDconsult26-Dec-06 9:28
mvePIEBALDconsult26-Dec-06 9:28 
GeneralRe: Puzzle Challenge Site Pin
Luc Pattyn26-Dec-06 9:47
sitebuilderLuc Pattyn26-Dec-06 9:47 
GeneralRe: Puzzle Challenge Site Pin
PIEBALDconsult26-Dec-06 10:21
mvePIEBALDconsult26-Dec-06 10:21 
GeneralRe: Puzzle Challenge Site Pin
Luc Pattyn26-Dec-06 11:41
sitebuilderLuc Pattyn26-Dec-06 11:41 
GeneralRe: Puzzle Challenge Site Pin
Are Jay26-Dec-06 18:01
Are Jay26-Dec-06 18:01 
GeneralRe: Puzzle Challenge Site Pin
PIEBALDconsult27-Dec-06 8:20
mvePIEBALDconsult27-Dec-06 8:20 
AnswerRe: Puzzle Challenge Site Pin
Luc Pattyn26-Dec-06 8:00
sitebuilderLuc Pattyn26-Dec-06 8:00 

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.