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

Use of index to assignment #10

Open
sandeep-25 opened this issue Dec 25, 2018 · 3 comments
Open

Use of index to assignment #10

sandeep-25 opened this issue Dec 25, 2018 · 3 comments

Comments

@sandeep-25
Copy link

Can you please tell the use of the following code:-
assign_0 = value // Col + pad_length
assign_1 = value % Col + pad_length
new_assign[counter] = [assign_0, assign_1]

@zilongzhong
Copy link
Owner

These snippets are used for indexing newly sampled HSI cuboids.

@TanmDL
Copy link

TanmDL commented Jan 17, 2019

okay, I got it.
You are just converting the selected indices into specific image location in row and coloumn space.
for an example,
t = np.arange(16).reshape(4,4)
indices = 7 # was selected for train
the original image location of 7 values (1,3)
now indexToAssignment function will give the (row, column) position. Is it so? or am I missing somthing?

@zilongzhong
Copy link
Owner

zilongzhong commented Jan 17, 2019 via email

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

3 participants