SSRN icon indicating copy to clipboard operation
SSRN copied to clipboard

Use of index to assignment

Open sandeep-25 opened this issue 5 years ago • 3 comments

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]

sandeep-25 avatar Dec 25 '18 17:12 sandeep-25

These snippets are used for indexing newly sampled HSI cuboids.

zilongzhong avatar Jan 11 '19 09:01 zilongzhong

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?

TanmDL avatar Jan 17 '19 01:01 TanmDL

That's correct.

On Wed, 16 Jan 2019 at 20:06, TanmDL [email protected] wrote:

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/10#issuecomment-455003559, or mute the thread https://github.com/notifications/unsubscribe-auth/APQzzq8g4aFFG6knZn9eSjPiFkfu3G-Dks5vD8yMgaJpZM4ZhLFe .

zilongzhong avatar Jan 17 '19 21:01 zilongzhong