Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with PostprocessHED.m parameters #79

Open
AndroXD opened this issue Mar 9, 2019 · 0 comments
Open

Trouble with PostprocessHED.m parameters #79

AndroXD opened this issue Mar 9, 2019 · 0 comments

Comments

@AndroXD
Copy link

AndroXD commented Mar 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant