Closed CsatiZoltan closed 4 years ago
because median_filter treat the rgb image as a 3d image, So do filter in a cube.
you can loop the z channels yourself, or there is a skimage function can help you to go though the channels, (but I forgot the name).
you can see filter's base class, the 'not_channel' note. That's why the filter can fit multi-channels image.
by the way: how to upload image in issue?
how to upload image in issue?
Simply drag&drop the image.
just have a try
@yxdragon Just a tip: you can test whether uploading works without posting a message. After the drag&drop, click on the Preview
tab.
I have an input RGB image:
If I apply Process -> Filter -> Median on it, I obtain the following filtered image:
The median filter in ImagePy inherits from class
Why is it so? How can I keep the original color? My code is:
Filter
. However, if I want to replicate the same process using theSimple
class, I get a different color:Additional information:
Simple
and don't use the already availableMedian
class is because I want to show the filtered image on a new tab, not overwriting the original one. Yes, I know, I could first duplicate the original image and perform the filtering on it, but still, I am curious why this color issue happens.the same color change happens. It means that it is not
IPy.show_img
that causes the issue.