Skip to content

Commit ab6bb19

Browse files
authored
Update quantization.m
1 parent d48e8d2 commit ab6bb19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Quantization/quantization.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77

88
for i = 1:size(input_image,1)
99
for j = 1:size(input_image,2)
10-
out_image(i,j) = round((input_image(i,j)/cluster_size-cluster_size)/2);
10+
out_image(i,j) = (((round(input_image(i,j))/cluster_size)-cluster_size)/2);
1111
end
1212
end
1313

1414
out_image = uint8(out_image);
1515
end
16-

0 commit comments

Comments
 (0)