Hi Gang,
We modifed the CAC mat lab script to python script , Using the script we have the shift arrays
cac_shift_1 = np.array([
[ 0, 0],
[ 400, 0],
[ 600, -2],
[ 800, -4],
[ 1000, -6],
[ 1100, -8],
[ 1300, -11],
])
cac_shift_2 = np.array([
[ 0, 0],
[ 400, 0],
[ 600, 2],
[ 800, 4],
[ 1000, 6],
[ 1100, 8],
[ 1300, 11],
])
The output from step 1, is block_s=40.
# Step 1: Find the optimal down-sampling block size.
block_s = find_block_s(im_sz)
The meshgrid dimensions are (height=40, width=47).
Question here is?
1. Can you confirm the correct values for the variables in the TDA are:
blkSize = 40
blkGridSize:
hCnt = 40
vCnt = 47
2. Since our image is of size 1536x1824, it appears the downsample size is 38x38.
However, this scaling don't give the same meshgrid size since
1536x1824 => 1/38 => 40x48
rather than 40x47 as given above, is this expected?
3. What is the correct values for displacementLut? - Currently it is set to 0.
Note: I tried to attach the python file but i am not able to attach the same.
Regards,
Swetha