Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

2 次查看(过去 30 天)
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

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by