mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 02:01:00 +08:00
remoce sr,sc from cores
This commit is contained in:
@@ -94,8 +94,6 @@ char shift_x, char shift_y,int bitdepth):
|
||||
cdef int n_se_n, n_se_s, n_se_e, n_se_w
|
||||
|
||||
cdef int selem_num = np.sum(selem != 0)
|
||||
cdef int* sr = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* sc = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* histo = <int*>malloc(maxbin * sizeof(int))
|
||||
cdef int* se_e_r = <int*>malloc(max_se * sizeof(int))
|
||||
cdef int* se_e_c = <int*>malloc(max_se * sizeof(int))
|
||||
@@ -263,8 +261,6 @@ char shift_x, char shift_y,int bitdepth):
|
||||
# kernel -------------------------------------------
|
||||
|
||||
# release memory allocated by malloc
|
||||
free(sr)
|
||||
free(sc)
|
||||
|
||||
free(se_e_r)
|
||||
free(se_e_c)
|
||||
|
||||
@@ -95,8 +95,6 @@ char shift_x, char shift_y,int bitdepth, int s0, int s1):
|
||||
cdef int n_se_n, n_se_s, n_se_e, n_se_w
|
||||
|
||||
cdef int selem_num = np.sum(selem != 0)
|
||||
cdef int* sr = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* sc = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* histo = <int*>malloc(maxbin * sizeof(int))
|
||||
cdef int* se_e_r = <int*>malloc(max_se * sizeof(int))
|
||||
cdef int* se_e_c = <int*>malloc(max_se * sizeof(int))
|
||||
@@ -264,8 +262,6 @@ char shift_x, char shift_y,int bitdepth, int s0, int s1):
|
||||
# kernel -------------------------------------------
|
||||
|
||||
# release memory allocated by malloc
|
||||
free(sr)
|
||||
free(sc)
|
||||
|
||||
free(se_e_r)
|
||||
free(se_e_c)
|
||||
|
||||
@@ -91,8 +91,6 @@ char shift_x, char shift_y,int bitdepth, float p0, float p1):
|
||||
cdef int n_se_n, n_se_s, n_se_e, n_se_w
|
||||
|
||||
cdef int selem_num = np.sum(selem != 0)
|
||||
cdef int* sr = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* sc = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* histo = <int*>malloc(maxbin * sizeof(int))
|
||||
cdef int* se_e_r = <int*>malloc(max_se * sizeof(int))
|
||||
cdef int* se_e_c = <int*>malloc(max_se * sizeof(int))
|
||||
@@ -260,8 +258,6 @@ char shift_x, char shift_y,int bitdepth, float p0, float p1):
|
||||
# kernel -------------------------------------------
|
||||
|
||||
# release memory allocated by malloc
|
||||
free(sr)
|
||||
free(sc)
|
||||
|
||||
free(se_e_r)
|
||||
free(se_e_c)
|
||||
|
||||
@@ -84,8 +84,6 @@ char shift_x, char shift_y):
|
||||
cdef int n_se_n, n_se_s, n_se_e, n_se_w
|
||||
|
||||
cdef int selem_num = np.sum(selem != 0)
|
||||
cdef int* sr = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* sc = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* histo = <int*>malloc(256 * sizeof(int))
|
||||
cdef int* se_e_r = <int*>malloc(max_se * sizeof(int))
|
||||
cdef int* se_e_c = <int*>malloc(max_se * sizeof(int))
|
||||
@@ -248,8 +246,6 @@ char shift_x, char shift_y):
|
||||
# kernel -------------------------------------------
|
||||
|
||||
# release memory allocated by malloc
|
||||
free(sr)
|
||||
free(sc)
|
||||
|
||||
free(se_e_r)
|
||||
free(se_e_c)
|
||||
|
||||
@@ -81,8 +81,6 @@ char shift_x, char shift_y, float p0, float p1):
|
||||
cdef int n_se_n, n_se_s, n_se_e, n_se_w
|
||||
|
||||
cdef int selem_num = np.sum(selem != 0)
|
||||
cdef int* sr = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* sc = <int*>malloc(selem_num * sizeof(int))
|
||||
cdef int* histo = <int*>malloc(256 * sizeof(int))
|
||||
cdef int* se_e_r = <int*>malloc(max_se * sizeof(int))
|
||||
cdef int* se_e_c = <int*>malloc(max_se * sizeof(int))
|
||||
@@ -245,8 +243,6 @@ char shift_x, char shift_y, float p0, float p1):
|
||||
# kernel -------------------------------------------
|
||||
|
||||
# release memory allocated by malloc
|
||||
free(sr)
|
||||
free(sc)
|
||||
|
||||
free(se_e_r)
|
||||
free(se_e_c)
|
||||
|
||||
Reference in New Issue
Block a user