hed icon indicating copy to clipboard operation
hed copied to clipboard

Trouble with PostprocessHED.m parameters

Open AndroXD opened this issue 5 years ago • 0 comments

If I run "PostprocessHED.m" ( https://github.com/phillipi/pix2pix/blob/master/scripts/edges/PostprocessHED.m ) in MATLAB I get an error because I need to define these parameters:

%%% parameters % hed_mat_dir: the hed mat file directory (the output of 'batch_hed.py') % edge_dir: the output HED edges directory % image_width: resize the edge map to [image_width, image_width] % threshold: threshold for image binarization (default 25.0/255.0) % small_edge: remove small edges (default 5)

Usually in python I would do something like this: python script.py --hed_mat_dir C:\folder\hed --edge_dir C:\folder\edge --image_width 256,256 --threeshold 25.0/255.0 --small_edge 0 But I have no idea how to do the same with MATLAB, can you show me an example, please? Sorry for the noobish question.

AndroXD avatar Mar 09 '19 03:03 AndroXD