Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Grayscale-image/J/grayscale-image-1.j
Normal file
6
Task/Grayscale-image/J/grayscale-image-1.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
NB. converts the image to grayscale according to formula
|
||||
NB. L = 0.2126*R + 0.7152*G + 0.0722*B
|
||||
toGray=: [: <. +/ .*"1&0.2126 0.7152 0.0722
|
||||
|
||||
NB. converts grayscale image to the color image, with all channels equal
|
||||
toColor=: 3 & $"0
|
||||
1
Task/Grayscale-image/J/grayscale-image-2.j
Normal file
1
Task/Grayscale-image/J/grayscale-image-2.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
viewRGB toColor toGray myimg
|
||||
Loading…
Add table
Add a link
Reference in a new issue