Suppose after extracting 5colors i only want to show the pixels which are in black color.How to do it? I used this logic .Can you tell me why this logic is wrong?
Doubt in extracting only 1 color from the 5 colors
hey @Sid10 ,
can you please provide me with your full code file ? i am unable to understand from the above code.
hey @Sid10 ,
i am really sorry to be so late ,
but have a look at this https://ide.codingblocks.com/s/268254.
i have updated your code a bit , just view this.
If there is any confusion , i will help you out of it.
Thank You.
Why is this function used
def comp(one,two):
for i in range(len(one)):
if one[i]!=two[i]:
return False
return True
Also i am not getting the final output its not showing the output image.
that function is just used to check the pixel values that if a particular pixel matches the required color.
I have updated the code for this.
check it here. https://ide.codingblocks.com/s/268254