Extract a hidden message from image
이전 댓글 표시
I'm trying to write a matlab code to extract a hidden message from a given image. The hidden message is the first half of the odd part of this image. Whenever I run my code I get a black image. Any suggestions?
image=imread('hidden.png');
new=fliplr(image);
odd=(image-new)/2 ;
imshow(odd);
댓글 수: 3
Walter Roberson
2016년 5월 3일
What does "the odd part of this image" mean?
Is the "first half" in terms of rows, or in terms of columns?
Nemo
2016년 5월 4일
채택된 답변
추가 답변 (2개)
Walter Roberson
2016년 5월 4일
I am going to guess here:
wid = size(YourImage,2);
hwid = floor(wid/2);
odd = (double(YourImage(:,1:hwid)) - double( fliplr(YourImage(:,end-hwid+1:end)) )) / 2;
shifted_odd = odd - min(odd(:));
scaled_odd = shifted_odd ./ max(shifted_odd(:));
imshow(scaled_odd);
댓글 수: 2
Nemo
2016년 5월 4일
Walter Roberson
2016년 5월 4일
You might need
imshow(scaled_odd, [])
Remember, though, that the hidden image cannot be a colored image, because colored images require 3 dimensional arrays but you are working with two dimensional arrays.
Ashton M Spillman
2020년 10월 18일
0 개 추천
bro idk
댓글 수: 1
Image Analyst
2020년 10월 19일
편집: Image Analyst
2020년 10월 19일
Then don't feel compelled to post an answer.
Anyway, I posted a full complete demo 4 and a half years ago for Nemo, which worked despite him not accepting any answer.
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
