Error Level Analysis Image Processing

9 views (last 30 days)
Muhammad Karimata
Muhammad Karimata on 3 Sep 2015
Commented: Nur Syawal on 20 Jul 2016
excuse me can anybody help me to made a some project which help me to compile an image with output error level of the image that has been compile,,,
i am really newbie as programmer and i had no idea how to convert a java program that successfully compile a Error Level Analysis... there many syntax really made me confuse and i tried to find what syntax in java that had same function in matlab,,
this is what i had been made "So Far" after UiGetfile
function [] = generate_ela(filename,quality)
%if nargin > 2 | nargin < 2
% error('usage: generate_ela(filename,quality)');
%end;
% img_orig = imread(filename);
tempfile = 'E:\img.jpg';
imwrite(img_orig,tempfile,'jpeg','Quality',quality);
temp = imread(tempfile);
delete(tempfile);
idiff = uint8(abs(double(img_orig)-double(temp))*30);
me = max(max(max(idiff)));
idiff = uint8(double(idiff)*255/double(me));
%imwrite(idiff,'ela.jpg');
figure; imshow(idiff);
if that some of syntax was wrong please warn me... thank you...
  1 Comment
Nur Syawal
Nur Syawal on 20 Jul 2016
Skriptnya ada yang error bang bagian line 8 (imwrite(img_orig,tempfile,'jpeg','Quality',quality); kalau bisa dikirim ulang skriptnya yang lengkap bang :)

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!