Error Level Analysis Image Processing

10 次查看(过去 30 天)
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 个评论
Nur Syawal
Nur Syawal 2016-7-20
Skriptnya ada yang error bang bagian line 8 (imwrite(img_orig,tempfile,'jpeg','Quality',quality); kalau bisa dikirim ulang skriptnya yang lengkap bang :)

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by