I am working on a watermarking project using dwt and dct . The embedding seems to be correct, but after the embedding using alpha equation, the resulted watermarked image has a mix of negative and positive values, when I converted to uint8 the watermark can not be extracted. If I save it as double image (tif format),the watermark is extracted correctly, But if I attacked the double image , the watermark is lost completely because matlab convert it in the range[0,1],
What is the correct way to save and manipulate watermarked image to extract the watermark with any data loss(without attack) and how to extract it with attacks?
plz help me I do not have any time more
thanks