Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 7
Member Avatar for Joe689

[code] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] **Point_in_Range;[/COLOR] sub_vol_size_xi =512; sub_vol_size_yi =512; sub_vol_size_zi=512; Point_in_Range=([COLOR=#0000ff]int[/COLOR]**)malloc([COLOR=#0000ff]sizeof[/COLOR]([COLOR=#0000ff]int[/COLOR]*)*(sub_vol_size_xi*sub_vol_size_yi*sub_vol_size_zi)); cout<<"Get Here1"<<endl; [COLOR=#0000ff]for[/COLOR](j=0;j<sub_vol_size_xi*sub_vol_size_yi*sub_vol_size_zi;j++){ cout<<j<<endl; Point_in_Range[j]=([COLOR=#0000ff]int[/COLOR]*)malloc([COLOR=#0000ff]sizeof[/COLOR]([COLOR=#0000ff]int[/COLOR])*3); } [/code] What is the memory problem.... been stuck on this for a little while now. thanks in advance

Member Avatar for Salem
0
171
Member Avatar for Joe689

[COLOR=#0000ff]for[/COLOR][COLOR=#000000] (i = 0; i < length; i++)[/COLOR] { [COLOR=#0000ff]for[/COLOR] (j = 0; j < width; j++) { [COLOR=#0000ff]for[/COLOR] (k = 0; k < height; k++) { interpolated_1D[i* j *height + k] = interpolated_input[i][j][k] ; } } } Doesn't seem to work,,, What am I doing wrong... Everything is allocated …

Member Avatar for Joe689
0
2K