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

Some lines in code are not so clear #3

Open
samieti02 opened this issue Jul 14, 2019 · 0 comments
Open

Some lines in code are not so clear #3

samieti02 opened this issue Jul 14, 2019 · 0 comments

Comments

@samieti02
Copy link

samieti02 commented Jul 14, 2019

Hello dear Sir,

and thanks for sharing the code. I have some questions about the code. There are some lines that are not so clear like

num_examples = 1000 # number of examples per image to use for training model

Why do you take just 1000, what does this number represents? Which examples?

What are h_neigh and h_ind ? which role they play here?

h_ind = int((h_neigh - 1)/ 2)
label = label[h_ind:-h_ind, h_ind:-h_ind]

Why do you use patch (11,11)? You can also direct process the whole image?

cal_haralick gives back 13 features. Why do you take just the first 9 and leave the rest?

Why does the border is increased here ?

img = cv2.copyMakeBorder(img, top=border, bottom=border, \
                                  left=border, right=border, \
                                  borderType = cv2.BORDER_CONSTANT, \
                                  value=[0, 0, 0])

Thanks

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