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 comentario

Walter Roberson
Walter Roberson el 19 de Nov. de 2012
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?

Iniciar sesión para comentar.

Respuestas (2)

Matt J
Matt J el 19 de Nov. de 2012

0 votos

See the accumarray() command

3 comentarios

kash
kash el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
I need to reduce those 7 set of values to around 4 or 5sets ,please can help me
Matt J
Matt J el 19 de Nov. de 2012
Editada: Matt J el 19 de Nov. de 2012
Give a small example of input and the desired output.

Iniciar sesión para comentar.

Matt J
Matt J el 19 de Nov. de 2012

0 votos

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 comentarios

kash
kash el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
Editada: Matt J el 19 de Nov. de 2012
Define a "topic". Also, give a quantitative input/output example (a small one) of the operation you want to perform
kash
kash el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
s it can be combine
kash
kash el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
walter ten how to combine to get atlest 3 to 4 groups as i have posted
Walter Roberson
Walter Roberson el 19 de Nov. de 2012
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 el 19 de Nov. de 2012
walter same values with difference of + or _ 5 can be made into groups
Pat
Pat el 19 de Nov. de 2012
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

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Nov. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by