Problem with data class when working in GUI...... plz help....
이전 댓글 표시
I am working in image watermarking, I m embedding a BMP image in Blue component of color image,
for ii=1:Mm
for jj=1:Nm
array2D(ii,jj) = bitget(blue_component(ii,jj),1);
save('array.mat','array2D');
watermarked_image(ii,jj)=bitset(blue_component(ii,jj),1,message1(ii,jj));
array2Dafter(ii,jj) = bitget(watermarked_image(ii,jj),1);
save('array2.mat','array2Dafter');
end
end
I m collecting the lsb of original blue panel in array2D to be inserted back later.
when i m running the code without making a GUI interface using Guide, array2D is of class uint8 while when i run some as a part of a pushbutton callback it is saved as class double, now while the second bitget after embedding is recovered same as uint8 both times,.. I want to get bLue_component as uint8 with gui.... i m not able to find the issue ...... plz plz plz help
댓글 수: 3
Walter Roberson
2012년 12월 22일
How are you initializing array2D() ?
ankita
2012년 12월 22일
Walter Roberson
2012년 12월 22일
Saving array2D and array2Dafter in every iteration of the "for" loop does not seem to be efficient.
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 12월 22일
array2D = zeros(Mm, Nm, 'uint8');
댓글 수: 3
ankita
2012년 12월 22일
Walter Roberson
2012년 12월 22일
How are you opening the array2D ?
What does
whos -file array.mat
show?
ankita
2012년 12월 22일
카테고리
도움말 센터 및 File Exchange에서 Watermarking에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!