Applied-Materials-Technology / dalmatian-trainer

A self teaching toolbox for learning digital image correlation.
MIT License
1 stars 1 forks source link

EX1,2,3: Python speckle pattern generator #9

Open ScepticalRabbit opened 3 weeks ago

ScepticalRabbit commented 3 weeks ago

Create a python script that can generate a DIC speckle pattern and save it as a *.tiff:

Getting started and hints:

ScepticalRabbit commented 3 weeks ago

Example speckle image to show what we want to achieve: SpeckleExCrop

mikesmic commented 3 weeks ago

@meganasampson have you started on this? I was going to make something quickly

mikesmic commented 3 weeks ago

I've made a noddy speckle generation script on the speckle branch. Feel free to improve

lvkestrel commented 3 weeks ago

Write the script as a function, which may then be called either by importing it, or through an 'if name == "main"' statement. need to check incoming parameters. Do we need this different for the two methods of operation

lvkestrel commented 3 weeks ago

there should be demo files 'light.png' and 'dark.png' for light and dark backgrounds. .gitignore is set to ignore all other .png files in the scripts folder

lvkestrel commented 3 weeks ago

script input is of the form speckle-gen.py Filename X Y -s Size -b Blur -i Bits -k Background -w Balance