Skip to main content
17 events
when toggle format what by license comment
Jun 10, 2020 at 0:47 history protected Jamal
Jun 9, 2020 at 21:00 history tweeted twitter.com/StackCodeReview/status/1270460684103491591
Jun 9, 2020 at 16:03 comment added Roya Rafati I have a problem with your code I don't know why it has an error of sort function for me.and also in this code same error in line 18 (for a, b in window) "The truth value of an array with more than one element is ambiguous." can you help me with that plz?
Apr 29, 2018 at 3:01 review Close votes
Apr 30, 2018 at 2:48
Apr 14, 2018 at 17:36 vote accept MeteHan
Apr 14, 2018 at 6:58 history edited 200_success
edited tags
Apr 14, 2018 at 6:35 answer added Cris Luengo timeline score: 5
Apr 13, 2018 at 15:45 history edited Sᴀᴍ Onᴇᴌᴀ CC BY-SA 3.0
fix grammar, add tag
Apr 13, 2018 at 15:15 review Close votes
Apr 13, 2018 at 15:45
Apr 13, 2018 at 15:11 answer added Peilonrayz timeline score: 3
Apr 13, 2018 at 14:55 review Close votes
Apr 13, 2018 at 15:05
Apr 13, 2018 at 14:47 comment added MeteHan I check the rows and columns going out of bounds with different if statements. So if a columns value is negative, I append zeros to the temp array. Adding zeros in the situation of an out bound, is a common approach. And if row value is not negative , I check the column value. And append zeros if out of bounds again. And about "i+z-indexer", with this way I put the current pixel in the hotspot(basically center of the array) and I check its surrounding pixels. For 3x3 median filter, lets say we got the [0][0] pixel. So program will check [-1][-1], [-1][0], [-1][1], [0][-1], [0][0], [0][1] so on
Apr 13, 2018 at 14:40 comment added Peilonrayz could you answer my second question? I don't really understand how you handle those median filters going out of bounds.
Apr 13, 2018 at 14:37 comment added MeteHan Sure, Median filter is usually used to reduce noise in an image. My code basically takes the array of the image which is corrupted by salt and pepper noise and remove the noise. I loop through "filter_size" because there are different sized median filters, like 3x3, 5x5. So there is more pixels that need to be considered. You can take a look at the GitHub repo, github.com/MeteHanC/Python-Median-Filter
Apr 13, 2018 at 14:19 comment added Peilonrayz Your code doesn't make the complete sense to me. Could you explain a little what it does? Why do you loop through filter_size on two of the three options in the for z in range(filter_size) loop?
Apr 13, 2018 at 14:10 history edited Peilonrayz CC BY-SA 3.0
Fix C&P error
Apr 13, 2018 at 14:04 history asked MeteHan CC BY-SA 3.0