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 e is equal to b, it means that an embedding operation should be performed. The variable count is incremented, and if D_min(count) is equal to 0, the variable mark is assigned the value of e - (a-1), otherwise it is assigned the value of e - a.

  • If e is less than b, it means that a shifting operation should be performed. The variable mark is assigned the value of e - a.

  • If e is less than PK(no) - (a-2) and greater than b, it means that a shifting operation should be performed in the middle part. The variable mark is assigned the value of e - (a-1).

  • If e is greater than PK(no), it means that the value should be kept unchanged. The variable mark is assigned the value of e.

  • If e is greater than or equal to PK(no) - (a-2) and less than or equal to PK(no), it means that an embedding operation should be performed. The code loops through the values from 0 to a-2, and if e is equal to PK(no) - pp, the variable count is incremented, and if D_min(count) is equal to 0, the variable mark is assigned the value of e - pp, otherwise it is assigned the value of e - pp - 1

v=oriPV_I_minij; e=oriPE_I_minij; a=opt1no; b=opt2no;if boole == 0 正常点嵌入平移 if e==b嵌入 count = count + 1;

原文地址: https://www.cveoy.top/t/topic/h6bH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录