Community Profile # tabw

Active since 2014

#### Statistics

• • #### Content Feed

View by

Question

How to rotate a 3D object?
I have a 3D object which is reconstructed from stacks of images. 3D object size : 512 x 512 x 50 roughly. how to rotate th...

7 years ago | 2 answers | 0

### 2

Question

How to rotate an image by applying rotational matrix
I guess rotating 3D image is same as rotating 2D image,right? for example, I have a 240x 240 2D image R = [0 -1;-1 0]; %...

7 years ago | 1 answer | 0

### 1

Question

Problem about Output in a txt file?How to solve it
x = 0:.1:1; A = [x; exp(x)]; fileID = fopen('exp.txt','w'); fprintf(fileID,'%6s %12s\n','x','exp(x)'); fprintf(fil...

7 years ago | 1 answer | 0

### 1

Question

How to solve a set of equations?
[ cos(phi)*cos(theta), -sin(theta), -cos(theta)*sin(phi)]= 1 [ cos(phi)*sin(theta), cos(theta), -sin(phi)*sin(theta)]=0 ...

7 years ago | 0 answers | 0

### 0

Question

How to do the iterative work?
for example, matrix(1,1,1)=0; next matrix(1,2,1)=1 ... matrix(1,100,1)=215; Next matrix(2,1,1)= 124; until matrix(10...

7 years ago | 1 answer | 0

### 1

Question

How to find max in a matrix (1,N,2)&& matrix (1,N,3)?
matrix (1,1:10,2)= 1 2 3 4 5 6 7 8 9 10 matrix (1,1:10,3)= 2 5 9 2 5 6 2 5 7 5 Is that a way can find out matrix (1,9,:)...

7 years ago | 1 answer | 0

### 1

Question

How to compress the image ?
for example, I have a 3D image in grayscale, 512X512X300. I just want to compress it in X and Y plane. I want 4 pixels to ...

7 years ago | 2 answers | 0

### 2

Question

sin cos problem. How to solve it
why sind(45)=-0.707 it should be 0.707 and sind(18)=-0.9511 it should be 0.309 what's wrong with it

7 years ago | 1 answer | 0

### 1

Question

How to put vectors inside a matrix
For example, I have 100 vectors. I want to put all 100 vectors inside a 10X10 matrix.

7 years ago | 2 answers | 0

### 2

Question

How to smooth the rough edge on 2D image?
I tried erode followed by a dilate. The effect is not good as I want it to be. I want the edge without any curve. It bette...

8 years ago | 1 answer | 0

### 1

Question

How to Check dimension mismatch of an element?
My question is a not very clear. EG let s say, q , 1X2 array. q(1)=1 q(2)=2 q(3) does not exist What I want is that I n...

8 years ago | 1 answer | 0

### 1

Question

Function call problem. How to solve it?
I have a function, sliceobject(im). I used another m file to compute the input im. After that I used sliceobject(im) But the ...

8 years ago | 1 answer | 0

### 1

Question

Debug mode problem. How to solve it?
I used Debug mode to test my code. it is okay If I set break points and press F10 many many times. let 's say, variable q...

8 years ago | 0 answers | 0

### 0

Question

Structure problem? How to write a loop to solve it?
I have a 1x N Structure called Structure.data Structure(1).data and Structure(i).data have different dimensions. I want St...

8 years ago | 0 answers | 0

### 0

Question

Anyone know the algorithum of bwconncomp/bwlabel ?/Coding problem
I have wrote my own code. However, too many bugs there. %% number=0; abc=[]; abcd=[]; N=300; k=1...

8 years ago | 2 answers | 0

### 2

Question

How to eliminate the repeated number?
For example, number= 1: 10; t=[1 3 5 7]; What I want to keep is [2 4 6 7 10]; how to do that? assuming t and numb...

8 years ago | 2 answers | 0

### 2

Question

how to do subtraction inside Structure
1xN Structure call Structure.result Structure(1).result=1x5 Array ,[ 1 2 3 4 5] Structure(2).result=1x7 Array,[1 2 3 4 5 6 7...

8 years ago | 2 answers | 0

### 2

Question

How to conbine the array inside the structure?
For example, 1X10 Struct Structure(1)=1X5 array Structure(2)=1X10 array Is there a way to combine it into 1X15 array? ...

8 years ago | 1 answer | 0

### 1

Question

Structure inside a while loop && pixel distance
I want to create a structure that stores my array inside a loop for Example Every time it will generate a data stored in res...

8 years ago | 2 answers | 0

### 2

Question

Anyone has bwconncomp source code? Or its algorithm
I want to know the algorithm behind. However, edit .m just show some code but most of the code are missing. Anyone has the sour...

8 years ago | 1 answer | 0

### 1

Question

How to write object connectivity code?
Actually I am writing a code for detecting a line and its size.But I encountered some problems. Can=im2bw(imread('Ims.png')...

8 years ago | 1 answer | 0

### 1

Question

Could anyone explain the code for me ?
file_path = dir(''); fid = fopen(''); pattern_col = 0; while ~feof(fid) pattern_col = pattern_col + 1; %coloum in...

8 years ago | 3 answers | 0

### 3

Question

how to revise the embedded code
Is there a way to revise the code inside the embedded function? actually, I want to use the regionprops function to calculate...

8 years ago | 0 answers | 0

### 0

Question

how to get the position of the pixel?
for example I have an 256x256 image,called A. any method to get every pixel position? actually, I try to find the longest...

8 years ago | 1 answer | 0

### 1

Question

How to read 3D .raw volume file ?
Is that a way to read the 3D .raw volume data directly in matlab? If not, Is it the best way to convert it to other formal in...

8 years ago | 1 answer | 0

### 1

Question

How to estimate Major/Minor Axis length and Orientation in 3D image?
I have tried the regonprops function. However, It did not work on 3D images. Thanks

8 years ago | 0 answers | 0

### 0

Question

3D volume image reconstruction
I have stacks of 2D images. Every slice has its thickness,0.7mm. how to reconstruct 3D Volume image? What I want is like t...

8 years ago | 1 answer | 0

### 1

Question

How to add thickness to 2D images?
Anyone can help? actually, I am doing the 3D Volume image. However, I combined the 2D slices into 3D image and showed them w...

8 years ago | 0 answers | 0

### 0

Question

Anyone Knows the 3D volume iamge reconstruction from 2D slices?Thanks
I have 630 slices and I want to combine it into 3D volume image. Actually, I have use Cat(3,slice1,slice2) function to obtain t...

8 years ago | 0 answers | 1