new patch
This commit is contained in:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 935 KiB After Width: | Height: | Size: 1.8 MiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 2.6 MiB |
@@ -115,9 +115,9 @@ def generate_color_pattern(h, w, d, r):
|
||||
def main():
|
||||
# Parameters for the pattern.
|
||||
# For example, using 100x100 pixels image with patches of 3x3 pixels.
|
||||
height = 1000
|
||||
width = 1000
|
||||
patch_size = 20
|
||||
height = 2750
|
||||
width = 1950
|
||||
patch_size = 12
|
||||
# Set r to a value that gives sufficient difference.
|
||||
# Note: r is the threshold for squared difference per channel, and the condition is
|
||||
# |c - c_neighbor| >= sqrt(r). Very high r may make it impossible to satisfy.
|
||||
|
||||
Reference in New Issue
Block a user