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

cannot understand the function of code 'data_np=data_np/200.0' #14

Open
lsq117 opened this issue Apr 27, 2021 · 0 comments
Open

cannot understand the function of code 'data_np=data_np/200.0' #14

lsq117 opened this issue Apr 27, 2021 · 0 comments

Comments

@lsq117
Copy link

lsq117 commented Apr 27, 2021

in dataset_lits_train.py, def get_np_data_3d(),line44:
def get_np_data_3d(self, filename, resize_scale=1):
data_np = sitk.GetArrayFromImage(sitk.ReadImage(self.dataset_path + '/data/' + filename, sitk.sitkInt16))
if self.resize_scale !=1.0:
data_np = ndimage.zoom(data_np, zoom=self.resize_scale, order=3)
data_np = data_np.astype(np.float32) # --------不理解的地方二
data_np=data_np/200.0 #--------------不理解的地方一

i cannot understand the function of this code:'data_np=data_np/200.0',why 200 divided by 3, how do we get the parameter 200? assign at random?or other reason?
Could anyone answer my question?

@lsq117 lsq117 changed the title cannot understand the function of code 'seg_array[seg_array > 0] = 1' cannot understand the function of code 'data_np=data_np/200.0' Apr 28, 2021
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