Error Level Analysis Image Processing

조회 수: 12 (최근 30일)
Muhammad Karimata
Muhammad Karimata 2015년 9월 3일
댓글: Nur Syawal 2016년 7월 20일
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