I have extracted a boundary and plotted the boundary using bwtrace boundary function. now I need to use the coordinates to rotate the boundary when I give an angle.How should i code it in matlab

if true
Protein1_boundary = bwtraceboundary(Protein1_Binary, [Protein1_row, Protein1_col], 'N', connectivity, num_points);
imshow(Protein1_Binary);
Protein2_boundary = bwtraceboundary(Protein2_Binary, [Protein2_row, Protein2_col], 'N', connectivity, num_points);
imshow(Protein2_Binary);
%Making the Proteins Interact
Temp_boundary =Protein2_boundary;
Temp_boundary = Temp_boundary +230;
clf('reset');
hold on;
%Ploting the Interaction
plot(1000,1000,'g','LineWidth',2);
plot(Protein1_boundary(:,2),Protein1_boundary(:,1),'g','LineWidth',2);
plot(Temp_boundary(:,2),Temp_boundary(:,1),'g','LineWidth',2);
end
now keeping Protein1 constant I need to rotate the Temp_boundary when I give an angle and make sure that it doesnt overlap

Answers (0)

This question is closed.

Asked:

on 23 Aug 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!