How can I embedd data to an image

조회 수: 1 (최근 30일)
Vishnu M S
Vishnu M S 2013년 1월 17일
I have an M X N image with each pixel grayscale value x∈[0,255]. I need to embedd some binary data to this image. For that I need to perform the following operations.
1. Scan the image, once meet the pixel (whose grayscale value is a), check the to-be-embedded bit. If the to-beembedded bit is “1”, the pixel grayscale value is changed to a+1. If the bit is “0”, the pixel value remains a.
  댓글 수: 2
Jan
Jan 2013년 1월 17일
These are detailed instructions. But what is your question? What have you tried so far and which problems occurred?
What kind of help do you expect from a forum?
Vishnu M S
Vishnu M S 2013년 1월 17일
I found the peak point in the histogram. I need to shift the histogram (from the location of that peak point up to location 255) towards right by 1 unit.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 17일
% Shift histogram right by one bin:
[maxCounts, indexOfMax] = max(counts) % counts is your histogram
counts(indexOfMax:end) = count(indexOfMax-1:end-1);

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by