Combinining the values from a image

I have 7 matrix(30x30 in which there are only 3values) ,and i have used tabulate command for finding the percentage so for each matrix i get percentage values such as
50.1%A
31.7%B
18.2%C these 3 for 1st matrix
11.5%A
19.8%B
68.8%C for 2nd matrix and so on
now i want to combine all A's ,B's ,C's if values are sane or +-5,i want to make it as single value instead of many,i want to reduce the number of values
please help

댓글 수: 1

Walter Roberson
Walter Roberson 2012년 11월 19일
Suppose you have 10 and 14 and 18. Should those all get merged together, even though 10 is more than 5 away from 18 ?
Also, what should the output look like?

댓글을 달려면 로그인하십시오.

답변 (2개)

Matt J
Matt J 2012년 11월 19일

0 개 추천

See the accumarray() command

댓글 수: 3

kash
kash 2012년 11월 19일
Matt can you please provide a example for above i went throygh documentation bu could not get any right opt for my question of using it
kash
kash 2012년 11월 19일
I need to reduce those 7 set of values to around 4 or 5sets ,please can help me
Matt J
Matt J 2012년 11월 19일
편집: Matt J 2012년 11월 19일
Give a small example of input and the desired output.

댓글을 달려면 로그인하십시오.

Matt J
Matt J 2012년 11월 19일

0 개 추천

HISTC may also be what you want, but it seems like you've already used a similar command to histogram the ABC values. If so, it's not clear what further reduction you're looking for.

댓글 수: 11

if there are 7 images or matrices, imagine we get 7 topics like this
img1: 80.1%,9.9%,10%
img2: 80%,10%,10%
img3: 79.5%,10%,10.5%
img4: 65%,20%,15%
img5: 67%,19%,14%
img6: 73%,17%,10%
img7: 72%,16%,12%
now we can club these probabilities to create topics for this example we can create 3 topics
img1,img2,img3 can be combined and we can give 1 topic for it
img 4,img 5 can be combined to form one topic
img6,img 7 can be combined to form one topic
therefore totally 3 topics
Matt J
Matt J 2012년 11월 19일
편집: Matt J 2012년 11월 19일
Define a "topic". Also, give a quantitative input/output example (a small one) of the operation you want to perform
now i want to combine images which are similiar or with a difference of + or - 5,after combining i will get 3 or 4 sets of values
the output will be for example
60.5%Green land
25.5%Others
14 %Others1..like these need 3 or 4 sets of values
Walter Roberson
Walter Roberson 2012년 11월 19일
Suppose you have 10 and 14 and 18. Should those all get merged together, even though 10 is more than 5 away from 18 ?
kash
kash 2012년 11월 19일
s it can be combine
kash
kash 2012년 11월 19일
i have following values in command window as
33.2%Green land
26.1%Others
40.7%Others1
41.3%Green land
22.9%Others
35.7%Others1
25.3%Green land
8.5%Others
66.1%Others1
23.2%Green land
40.3%Others
36.5%Others1
35.5%Green land
35.5%Others
29.0%Others1
19.1%Green land
20.5%Others
60.3%Others1
now i want to combine images which are similiar or with a difference of + or - 5,after combining i will get 3 or 4 sets of values
the output will be for example
60.5%Green land
25.5%Others
14 %Others1..like these need 3 or 4 sets of values
Walter Roberson
Walter Roberson 2012년 11월 19일
If 10, 14, 18 should all be combined, then the implication is that all groups are potentially combined into a single group even though the top and bottom values might differ substantially. You would allow 1:5:36 to all combine into a single group.
kash
kash 2012년 11월 19일
walter ten how to combine to get atlest 3 to 4 groups as i have posted
Walter Roberson
Walter Roberson 2012년 11월 19일
Your values might all be the same, making it impossible to split them into 3 to 4 groups.
Not enough of your values might be within 5 of each other in order to split into as few as 4 groups.
Pat
Pat 2012년 11월 19일
walter same values with difference of + or _ 5 can be made into groups
Pat
Pat 2012년 11월 19일
ok walter can we do in this way ,take means of all values so we get seven means values ,then find mean with greater difference and display those 3 values

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

태그

질문:

2012년 11월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by