LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calculate color mask

Solved!
Go to solution

Hi alex,

           I had tried it.Output from your's color mask file is better than mine.when class 1 is given as input.

 

Thank you

 

0 Kudos
Message 21 of 31
(1,520 Views)

Madhubalan,

please mark your thread as solved and say 'thank you' with kudos Smiley Wink

 

 

 

Regards,
Alex

0 Kudos
Message 22 of 31
(1,515 Views)

Hi alex,

           can you please create percentage determination of the dominant color in your color mask vi file.

Do you have any source code for object detection?.

 

Thank you.

0 Kudos
Message 23 of 31
(1,508 Views)

ok, I've to admit "percentage determination of the dominant color" might not be that trivial as I first thought, re-reading your question more carefully.


why?

the k-means algorithm gives you a centroid,

whose specific color - due to averaging - mustn't necessarialy be part of the original color ramp.

 

what do you "percentage of dominant color" expect to be?

 

 

 

Do you have any source code for object detection?.

 

this is a completly different topic; what do you consider an object to be?

 

it looks like you do have the vision toolkit; object detection should be feasible with this toolkit. but I can't tell you how.

You should post another thread for this new topic!

 

0 Kudos
Message 24 of 31
(1,495 Views)
Hi Alex ,
In the color output,we are getting a color,for example,the file which I had sent previously(attached file,color percentage),in which pink is the dominant color of the input image,I would like to know how much percentage of pink color present in the image.

Object is a printer to be detected from an image( I.e printer has to be detected when placed in a shelf or on a table)
Or even screw from the input image I had attached in the previous post.

Thank you
0 Kudos
Message 25 of 31
(1,486 Views)

@Madhubalan wrote:
Hi Alex ,
In the color output,we are getting a color,for example,the file which I had sent previously(attached file,color percentage),in which pink is the dominant color of the input image,I would like to know how much percentage of pink color present in the image.

Object is a printer to be detected from an image( I.e printer has to be detected when placed in a shelf or on a table)
Or even screw from the input image I had attached in the previous post.

Thank you

listen,

there is not just ONE pink color in the image, there are a few hundred different shades of pinkish-red color.

 

k-means does NOT give you a scattering parameter


k-means gives you a centroid or mean which is a location parameter

 

In the following picture, µ is the location parameter and σ is the scatter parameter

 

 

 

 

0 Kudos
Message 26 of 31
(1,476 Views)

Hi Alex,

           Can you please send the source code for that graph,it will be very helpful for me.

 

Thank you

0 Kudos
Message 27 of 31
(1,470 Views)

hi,

 

the picture in the post above was from a wikipedia-entry about normal distribution

 

the easiest way to create a histogramgraph in labview would be to use

 

http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/histogram_discrete/

 

or the mor generic

 

http://zone.ni.com/reference/en-XX/help/371361H-01/gmath/general_histogram_vi/

 

from the  Probability & Statistics VIs palette

Message 28 of 31
(1,464 Views)

Hi Alex,

           Your code works very very fine.Thank you so much.

            How to perform color histogram matching((matching the object from the original input image with the obtained binary(output) image)) like in this picture((example Color histogram matching attached)) on your color mask.vi file.

I have attached my input file image.

 

Thank you.

 

 

 

 

Download All
0 Kudos
Message 29 of 31
(1,451 Views)

Please define "matching";

 

do you want to hi-light certain areas on your input image via superposition of an overlay?

 

0 Kudos
Message 30 of 31
(1,442 Views)