Click here to Skip to main content
16,014,392 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: conversion of jpg to data ie. txt Pin
Lowki3-Jan-07 23:20
Lowki3-Jan-07 23:20 
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 
Hi,

In general you can compare uncompressed JPEG images. JPEG is a lossy compression scheme, but, don't forget, the intent of it is to compress with minimal visual loss. So, all you have to do, is a visual comparator.

The visual comparator is diferent from a normal comparator in the sence that it must tolerate local deviations. For example, maybe you can consider that 2 images are the same if their JPEG comparison results in a 1% overall difference.

The visual comparator should focus mainly on luminance (the average of the three RGB components). This is because JPEG dedicates about 80% of the resulting bits to luminance and only about 20% to chrominance. So, in general, color looses much more in JPEG than brightness.

Another thing your comparator must take into account is that edges usually lose accuracy on JPEG. So, your comparator should take into account that large pixel diferences should tolerate a larger diference in the comparison not only for the pixel being compared but also for the surrounding pixels.

Also bear in mind that if your comparator is visual then you can even align misaligned JPEG's. The key when using decompressed JPEG's for analysis or comparison is to always be tolerant to local diferences while paying more atention (and being more intolerant) to wide-scale diferences.

I hope this helps,

Rogério Rilhas
GeneralRe: conversion of jpg to data ie. txt Pin
Rilhas30-Jan-07 12:46
Rilhas30-Jan-07 12:46 
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 

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.