how to develop a matlab coding on watermarking for medical images

i am studing biomedical engineering, i doing my final year project on watermarking in medical images.
my approach: patient details(name, age,disease etc...) to be watermarked in image boundaries.
pls any one give ideas and example matlab codings

1 Comment

Duplicate is at http://www.mathworks.com/matlabcentral/answers/12446-how-do-i-develop-matlab-code-for-adding-a-cryptowatermark-in-medical-images

Sign in to comment.

Answers (2)

V = load('mri');
V = squeeze(V.D);
V(3:5,3:80,:) = 255*ones(3,78,size(V,3)); %Add 3x78 block of white to top of matrix
implay(V)
All you need to do is change the 255*ones to an image of writing and make sure the dimensions line up. I sure hope this isn't all of your senior project. It should take 45 minutes start to finish to have a generalized working algorithm that you type in an expression/name/birth date/etc. and the rest is done.

3 Comments

Thank you sir.... I executed the code...By the way what does that 'D' stand for in the above code?? PL reply asap. . . .
Sean has written the code under the assumption that you have a file named mri.mat which has in it a variable named D which contains the data. If your data is stored in a different variable name in your data file, use that other variable name instead of D. For example, it might be V = squeeze(V.p73x19Q4zL) if the variable in the file happens to be named p73x19Q4zL
Yes, mri.mat is stock with the IPT. D, is, I assume short for data, it contains 8bit integer intensities derived from the output of the MRI. There is also a colormap that, which is why I also assume the data is 4d with a singleton 3rd dimension, to remove that squeeze it.

Sign in to comment.

I agree with Sean that this is too trivial for a senior project. Hopefully there's a lot more to it than this. There is a textinserter object in the Computer Vision Toolbox that will let you do this (burn text into an image) in one line.

2 Comments

Finally found a use for a toolbox I don't have!
Well, since it is supposed to be a cryptographic watermark, there is at least the encrypting step more -- that and the challenge of solving The Key Distribution Problem.
And since the project will include the patient information in the image itself, the project should document how to defend yourself from a HIPPA and HITECH lawsuits.... http://en.wikipedia.org/wiki/Health_Insurance_Portability_and_Accountability_Act#HITECH_Act:_Privacy_Requirements

Sign in to comment.

Products

Asked:

on 22 Aug 2011

Community Treasure Hunt

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

Start Hunting!