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

1 回表示 (過去 30 日間)
Nisha Rajiv
Nisha Rajiv 2012 年 8 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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