how to develop a matlab coding on watermarking for medical images

4 views (last 30 days)
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
Walter Roberson
Walter Roberson on 22 Aug 2011
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)

Sean de Wolski
Sean de Wolski on 22 Aug 2011
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
Walter Roberson
Walter Roberson on 23 Aug 2011
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
Sean de Wolski
Sean de Wolski on 23 Aug 2011
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.


Image Analyst
Image Analyst on 23 Aug 2011
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
Walter Roberson
Walter Roberson on 23 Aug 2011
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

Community Treasure Hunt

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

Start Hunting!