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

question about preprocessing_img #15

Open
charlesyou999648 opened this issue Nov 7, 2018 · 0 comments
Open

question about preprocessing_img #15

charlesyou999648 opened this issue Nov 7, 2018 · 0 comments

Comments

@charlesyou999648
Copy link

Hi,
I am pretty interested in your work!
During my implementation, I have a question about preprocess_img in seg_liver.py

def preprocess_img(image, x_bb, y_bb, ids=None):
    in_ = np.array(images)
    in_ = in_.transpose((0,2,3,1))
    in_ = np.subtract(in_, np.array((104.00699, 116.66877, 122.67892), dtype=np.float32))

I applied the following procedures: 1. clip and normalize the image; 2. time 255; 3. subtract the mean for three channels of the images. Then I validated the image but found the image shown below which is not like the usual image as i see before. I am wondering whether my processing is true, could you please leave me some comments? Thanks!
screen shot 2018-11-06 at 11 08 56 pm

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

1 participant