|
Turn The Screws! Open your eyes, look in front, look at the back, look at any angle and you will see something that is an engineer's creation. Engineers have been making things possible that others could only imagine. It perfectly makes sense to have a common place for engineers from around the world where they can share ideas, innovate, & help each other. Engineers are eternal, with the younger at 62 & the youngest at 17, the CEan gang consists of working professionals, students, entrepreneurs, CEOs, professors, geeks & nerds. Need we say more? Click Here To Join The Gang! |
![]() |
| Sponsored links | |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
Quote:
I really did not understand your problem. Better give an example how you use this and where. Do you actually mean? Quote:
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
||
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
wow, ok, nice one
Well, I cannot answer this really soon, but I have worked with Matlabs Image Toolbox. So we can try some ideas here...lets see... There are several considerations here: 1. It is NEARLY impossible (not 100% impossible i guess) to find out if an image is tampered with just by looking at the physical structure (Analyzing pixels). this is because present day photo editors are very very good!! 2. One way is to look at the raw file header. Because if the image is taken by a commercial camera then the file itself .jpeg or .raw or anything will have information inside the file which a user cannot normally access. This place also has information on DATE, TIME last modified and also CAMERAMODES. So this is a good place to look if its been edited after been taken. 3. I know for sure, after editing a picture with Photoshop, the file header will contain a signature from Photoshop, and a date (i think). So you can also know it from there if it has been edited. Now as for MATLAB analyzing the actual pixels... I dont think you can know...cuz how can I know if a newly opened box contained 4 appels or someone opened it and removed 5...or if it was opened at all, or even if I know someone opened it, how much they have taken? Again, this is one argument: However(!), in some types it can be possible. For example, you have a security camera which takes only one picture of a place which has constant color lighting. If this is the case then we can use MATLAB to analyze a portion of the image and calculate pixel changes. This heavily depends on your image and color scheme used. since some color schemes are difficult to modify and replicate. So you can know which part of the image has the highest variation of changes! Here are some operations (some ways, you can make your own too) that can be performed on an image: Morphological Operations: These are Image Processing operations done on binary images based on certain morphologies or shapes. The value of each pixel in the output is based on the corresponding input pixel and its neighbors. By choosing appropriately shaped neighbors one can construct an operation that is sensitive to a certain shape in the input image. a) Bridge - bridges unconnected pixels. b) Clean - removes isolated pixels. c) Fill - fills isolated interior pixels. d) Majority - sets a pixel 1 if five or more pixels in 3x3 neighborhood are 1’s. e) Remove - removes interior pixels by setting pixels to zero if its 4 neighbors are 1, thus leaving only boundary pixels on. f) Shrink - shrinks object to a point. g) Diagonal Fill - fills diagonal elements to eliminate 8 connectivity with background. h) Skeletonize - It creates skeleton of an object, by removing pixels on the boundaries but does not allow objects to break apart. i) Dilation - if any pixel in the input pixel’s neighborhood is on, the output pixel is set otherwise cleared. It removes the small holes in the object. j) Erosion - if every pixel in the input pixel’s neighborhood is on, the output pixel is set otherwise cleared. It results in shrinking the object’s area, thus small isolated regions disappear. If you are really unsure, give me an original image and a modified, I will try writing a MATLAB algo for it..
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|
| Sponsored links | |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
Exactly, but we can say that with 90% surety, because in certain situations it may be possible to find if the image has been tampered with. In an image where you "Already know" what color codes you are using.
Like in a place where you have taken a picture with certain shades of red embedded in the image...you know how much is added. So if someone tried to change the color with photoshop, it WILL certainly introduce new shades of red. Again here you do need information of previous image (but not explicitly the actual file...just some math formulas you know were applied to your originals before hand). Hope you have understood, and this discussion has helped!
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
Thanks for that information coolsank!! I didnt know its called Steganography!
Yea, this is probably a good method for hbk's use too. If hbk is writing a report he can include all this information bytheway, if possible do thank crazyengineers in the Acknowledgments!
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|
| Sponsored links | |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
Exactly as Elric said, and my above post. Its not possible, unless they guy is modifying the picture using Microsoft Paint.
Your best bet it to have your originals made in a way that only you know the brightness and stuff continuum (unless you are doing tamper detection on many other sources of which you have no idea of the original) Secondly, You can "visually" try to see the changes with your own eyes! Much better if used in combination with MATLABS feature extraction etc...
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|
|
CE - Newbie
![]()
I'm a Crazy Imaging Engineer
Join Date: 23rd June 2008
Posts: 1
|
I know two basic approaches to do this. The first method processes the suspect image region by region and looks for similarities that might have been caused by the 'cloning' tool, or coping image regions.
Have a look at the paper by J. Fridrich, 'Detection of Copy-Move Forgery in Digital Images with D. Soukal and J. Lukáš' The other, and probably more difficult approach is the following. A digital camera with a sensor with a so called bayer pattern, only measures R, G or B values per cell. That means that per RGB pixel, there are two missing values that need to be interpolated. This is also called demosaicking. There are various algorithms do to this, but the key idea, is that interpolated pixel values are related to each other. A relation that might be disrupted by image tampering. Everything and more on this subject can be found at the university of Dartmouth. |
|
|
|
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Communications Engineer
Join Date: 12th July 2007 Location: IIUM, Malaysia
Posts: 1,256
|
Whoa.. this is interesting stuff!
I don't know much about image processing, but you also have to remember that random noise will invariably affect the picture too. So its quite hard to know if variations are caused by deliberate morphing or noise. Is it possible to take pictures and output it as vector images? I bet that will take a lot of resources and mathematical power to do so
__________________
Keep it simple. Keep it real. | New to CE? Click here! | Join our CE Bot project! | Problems? Questions? PM or mail me at ash{at]crazyengineers{dot]com |
|
|
|
|
| Sponsored links | |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 559
|
Quote:
The link you have given is invaluable to this discussion!! And ash, yea noise will effect a picture and must be considered in ALL our assumptions. As for vector thats a good idea
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|