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

ConvertDICMToAVI #29

Open
1995Emma opened this issue Apr 28, 2021 · 1 comment
Open

ConvertDICMToAVI #29

1995Emma opened this issue Apr 28, 2021 · 1 comment

Comments

@1995Emma
Copy link

1995Emma commented Apr 28, 2021

Thank you for the code, but I have two questions about the preprocessing code.
1.yCrop = np.where(mean<1)[0][0] in code #2,why the mean<1, what is the reason for chossing 1 instead of other numbers?
2.What is the function difference between #1 and #2?
code#1smallOutput = outputA[int(height/10):(height - int(height/10)), int(height/10):(height - int(height/10))]

code#2 ```
frame0 = testarray[0]
mean = np.mean(frame0, axis=1)
mean = np.mean(mean, axis=1)
yCrop = np.where(mean<1)[0][0]
testarray = testarray[:, yCrop:, :, :]

        bias = int(np.abs(testarray.shape[2] - testarray.shape[1])/2)
        if bias>0:
            if testarray.shape[1] < testarray.shape[2]:
                testarray = testarray[:, :, bias:-bias, :]
            else:
                testarray = testarray[:, bias:-bias, :, :]
@milktea-1
Copy link

i used mean<1 on my dataset not work

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

2 participants