フィルターのクリア

Write and put notation inside image?

1 回表示 (過去 30 日間)
Biza Ferreira
Biza Ferreira 2014 年 6 月 28 日
コメント済み: Image Analyst 2014 年 7 月 3 日
I people, I have two images and i applied the sift flow code, my images represent the blood flow.through the difference between the two images can obtain the direction of blood flow.this difference results in a single image (matrix), I converted all the values in the array into a vector, my idea is to sort an array positions for the non-repeated values, and adding to the sum of the other array positions repeated, for example:
A=[1 1 0 0 0; 0 0 0 1 1; 1 1 1 1 1]
vector=[1 1 0 0 0 0 0 0 1 1 1 1 1 1 1]
non-repeated=[0 1]
sum_positions=[6 9]
I'm trying to do this in order to group the values in an equal position. So when do imshow () values that have between 0 and 50 can write in the image "background". 51 and 100 "background or not" can someone help me

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 29 日
In your example, what variables do you already have and which do you want to obtain? And what does imshow() have to do with anything? None of your variables have values like 51 or 100 . And how did you obtain sum_positions as 6 and 9? What is being summed????
  9 件のコメント
Biza Ferreira
Biza Ferreira 2014 年 7 月 3 日
my image is in grayscale and I want to group similar pixels and assigning a color to each group. example: between 0 and 25 pixel's color "0" (black)
Image Analyst
Image Analyst 2014 年 7 月 3 日
The code I just showed you does exactly that. Did you try it? It came from my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Run that if you want to see it in action.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by