Compute image gradient in specific region

8 ビュー (過去 30 日間)
jakeoung koo
jakeoung koo 2015 年 11 月 18 日
There is a binary mask representing specific region. I want to compute gradient and divergence only in this specific region. My gradient code is following:
ux = circshift( u_bar, [0 -1]) - u_bar;
uy = circshift( u_bar, [-1 0]) - u_bar;
ux(:,end) = 0; uy(end,:)=0;
I know the indices for the region
idxMask = find(R==1);

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by