More than 1 output for one function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
More than 1 output for one function
As you can see in the picture,
i want to extract the value of white and black, however when I write black= of course it says placeholder is empty because the code "black" was identified in the function.
If I seperate the statemets in two functions I can see the white and black counters but i wanna make the whole process in one function.
Thank you.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Your program creates amatrix the same size as your input matrix with 1's and 0's.
You need to count them. See attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
sorry but i did not understand what you mean.
I want to take 3 different outputs,
such as
1: the matrix I have
2: the number of numbers which are smaller than 10
3. the number of numbers which are bigger than 10
for example my matrix is :
15 9 12 3 6
19 8 7 12 4
1 3 11 15 12
i want to take as output, moreover I want to count that
biggernumbers (this is my counter) = 7
smallernumbers = 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please attach yor worksheet, not screenshots!
And please state clearly what you need as output. Do you really need the matrix with 0's and 255's which your program would return if you use correct syntax. Or do you just need those two numbers which counts black and white dots?
In any case what you are asking for could be achieved in a much simpler way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thank you for your answer, it is obvious.
and also thanks to others
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This should help.
If you are doing image processing you should go to Help - E-books and then open "Image Processing". You will see that this pack offers a lot of useful routines, one of them is binarize.
