fury icon indicating copy to clipboard operation
fury copied to clipboard

Wrong boys2rgb colormap

Open zhenchen-jay opened this issue 1 year ago • 11 comments

Description

I think there is a typo in the function boys2rgb

https://github.com/fury-gl/fury/blob/master/fury/colormap.py#L118

it is actually should be: z4 = z2 * z2

This can be also seen in the initial matlab code: https://cagataydemiralp.io/projects/boys/line2rgb.m

Way to reproduce

  • [ ] Code example
import numpy as np
from fury import colormap

if __name__ == '__main__':
    v = np.array([[0.0183422, 0.00418003, 0.999823], [-0.0183422, -0.00418003, -0.999823]])
    print(colormap.boys2rgb(v))
  • [ ] Result
[[0.49262681 0.48131988 0.05134322]
 [0.49262681 0.48131988 0.87099833]]

zhenchen-jay avatar Jan 10 '24 20:01 zhenchen-jay

Hi, I would love to work on this issue

DanonymousCoder avatar Jan 12 '24 17:01 DanonymousCoder

@zhenchen-jay

DanonymousCoder avatar Jan 12 '24 17:01 DanonymousCoder

cool. Which additional information I need to provide?

zhenchen-jay avatar Jan 12 '24 17:01 zhenchen-jay

Pls, kindly assign me this issue to work on @zhenchen-jay @skoudoro

DanonymousCoder avatar Jan 13 '24 18:01 DanonymousCoder

I am not able to do that since I don't have the necessary permission. @DanonymousCoder

zhenchen-jay avatar Jan 13 '24 20:01 zhenchen-jay

Hey @zhenchen-jay , Thanks for pointing this out.

@DanonymousCoder if you interested, please feel free to go on and create a PR.

ganimtron-10 avatar Jan 19 '24 05:01 ganimtron-10

Already created a pull request @ganimtron-10 . Pls, kindly check.

DanonymousCoder avatar Jan 20 '24 06:01 DanonymousCoder

Cool @skoudoro @guaje would give a look.

ganimtron-10 avatar Jan 20 '24 07:01 ganimtron-10

will look into it this week, thanks for the review @ganimtron-10

skoudoro avatar Jan 22 '24 16:01 skoudoro

hello is this issue active?CAn I work on it? @skoudoro @ganimtron-10

Preetam-Das26 avatar Jan 27 '24 05:01 Preetam-Das26

@Preetam-Das26 This is already picked up by @DanonymousCoder

ganimtron-10 avatar Jan 27 '24 05:01 ganimtron-10