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

Try out smaller patch size for CHM tomography #25

Open
coleslaw481 opened this issue Dec 13, 2016 · 2 comments
Open

Try out smaller patch size for CHM tomography #25

coleslaw481 opened this issue Dec 13, 2016 · 2 comments

Comments

@coleslaw481
Copy link
Member

This idea was pulled from Jira and is a suggestion from Mehran cause Alex was asking about it:

So in order to change the patch sizes you will have to make the following changes in the code(I am explaining on the chm-source-2.1.367.tar.gz version which is on http://sci.utah.edu/download/chm/)
In the ConstructNeighborhoodsS function in lines 4 and 9, you have to make changes(This function extract patches from the predictions made from the lower levels in CHM as features for the current level's classifier). 7 here means you are extracting patches of size(27+1) by (27+1). if you want a patch of size 11 by 11 you have to set new_size to 5.
(4) offset = StencilNeighborhood(7); ===> offset = StencilNeighborhood(new_size);
(7) II = padReflect(I(:,:,i),7); ===> II = padReflect(I(:,:,i),new_size);
In function Filterbank make the following changes in lines 7 and 9(This functions generates features from the original image for the classifier. 10 here means the patches extracted from the original image are (210+1) by (210+1)).
(7) offset = StencilNeighborhood(10); ===> offset = StencilNeighborhood(new_size);
(9) I = padReflect(I,10); ===> I = padReflect(I,new_size);
Note that there is a ConstructNeighborhoods(NOT ConstructNeighborhoodsS) function. You don't have to make changes to that.
Let me know if you have any questions or concerns.
Best,
Mehran

@coderforlife
Copy link
Member

coderforlife commented Dec 15, 2016 via email

@coleslaw481
Copy link
Member Author

Not sure and he is no longer here to ask.

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

No branches or pull requests

2 participants