v=oriPV_I_minij; e=oriPE_I_minij; a=opt1no; b=opt2no;if boole == 0 正常点嵌入平移 if e==b嵌入 count = count + 1;
The code snippet is written in MATLAB.
In the code, the variable v is assigned the value of oriPV_I_min(i,j), and the variable e is assigned the value of oriPE_I_min(i,j). The variables a and b are assigned the values of opt(1,no) and opt(2,no) respectively.
If the variable boole is equal to 0, the code performs the following operations:
-
If
eis equal tob, it means that an embedding operation should be performed. The variablecountis incremented, and ifD_min(count)is equal to 0, the variablemarkis assigned the value ofe - (a-1), otherwise it is assigned the value ofe - a. -
If
eis less thanb, it means that a shifting operation should be performed. The variablemarkis assigned the value ofe - a. -
If
eis less thanPK(no) - (a-2)and greater thanb, it means that a shifting operation should be performed in the middle part. The variablemarkis assigned the value ofe - (a-1). -
If
eis greater thanPK(no), it means that the value should be kept unchanged. The variablemarkis assigned the value ofe. -
If
eis greater than or equal toPK(no) - (a-2)and less than or equal toPK(no), it means that an embedding operation should be performed. The code loops through the values from 0 toa-2, and ifeis equal toPK(no) - pp, the variablecountis incremented, and ifD_min(count)is equal to 0, the variablemarkis assigned the value ofe - pp, otherwise it is assigned the value ofe - pp - 1
原文地址: https://www.cveoy.top/t/topic/h6bH 著作权归作者所有。请勿转载和采集!