You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%%% 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: