Pset4 Blur, I was wondering how I might CS50 pset4 blur function doesn't calculate edges and corners correctly Asked 3 years, 6 months ago Modified 3 years, 6 months ago Viewed 540 times CS50 pset4 Blur [closed] Ask Question Asked 3 years, 5 months ago Modified 3 years, 5 months ago I'm working my way through CS50 on edx. In your solution, did you consider using pointers ? cheers,\al. org, I've come to pset4 - Filter (less) and have become absolutely stuck. '. But my output image is black, or it simply doesn't give the correct output. I've tried tinkering PSet4, Filter-less blurs but gets a lot darker and doesn't match output I'm having an issue with the blur filter; when working with Duck to understand how to structure my code, I was able Hey guys, anyone faced this problem and managed to solve it? Code seems to compile fine and the blur filter seems to be working, it also seems like the returned value is correct (expected "70 85 95\n80 So I've somehow managed to get this far, but I can't seem to make blur pass check50 even though the image is successfully blurred. I wrote a printf to see if it returns 4, 6, or 9. The filters are designed to manipulate and process BMP images, providing various visual effects. The task is part of Harvard's CS50 course Pset 4 filter - blur almost works but has a few errors and I just can't figure out why Ask Question Asked 5 years, 11 months ago Modified 3 months ago Hey, Been stuck on Pset4 filter (more) for a while now, blur is driving me mad. Social, but educational. Grayscale, Sepia, and reflect were easy to understand and do. The way the code works is we check where the pixel-box is positioned. My code is like this, and the resulting "blur filtered" image is not any close to what is CS50 Pset4 (Filter) - blur function in filter Ask Question Asked 3 years, 7 months ago Modified 3 years, 7 months ago CS50 Pset4 (Filter) - blur function in filter Ask Question Asked 3 years, 7 months ago Modified 3 years, 7 months ago PSet4, Filter-less blurs but gets a lot darker and doesn't match output Ask Question Asked 2 years, 1 month ago Modified 2 years, 1 month ago CS50 PSET4 - Image Filters This repository contains the solutions to the CS50 Problem Set 4 - Image Filters. Therefore, change "i" and For some reason, my CS50 pset4 blur function is not returning the proper pixel values for a 3x3 or a 4x4 image. Then, I paste NULL Explore related questions pset4 cs50x pset4filter blur pset4blur See similar questions with these tags. I'm a starter on coding, I started learning with cs50, but I have a problem, I wrote the blur function, and it seems worked fine, the image actually blurred, but when I use test50(code Blur - Where to start? Hi! I've finally reached the blur function in pset4's filter, and right away I'm stuck. I'm trying to run this code, but I don't know why, it creates black images. But every I wrote a code for the blur function, but it returns a wrong output for reason which is not known for me (it just looks fine for me), here is an example (always same): Because the blur is supposed to be based on the original values, if you input the blurred values in the pixels immediately then you don't have the original values available anymore As we all learn in the short videos that in order to blur an image we have to iterate through each individual pixel (which each have R,G and B values) and then check the surrounding Oh, it’s a new Problem set 4 Filter, where we are required to edit a Bitmap picture and apply different filters such as Grayscale, Sepia, Reflect and Blur to it through code traditionally. My blur somehow don't work. I am stuck at the blur function in filter less. I keep running into this problem. Unfortunately it does not Can any body explain me pset4 filter blur, I have no idea what to do. MembersOnline • Prayas03 When trying to implement the blur function in pset4, the image ends up blurred, but with odd star shapes in the middle of the image Ask Question Asked 1 year, 4 months ago Modified 3 months ago It feels like there is probably some better way of doing this without writing out all this code though? My code passed all the verifications and works as intended. My problem is the image blurred correctly but does not pass check50. This is I'm no expert but I think what you're missing here is that every pixel's "blurred" RGB values have to be based on the original colour values for the pixels that surround it. It passes the other check50 tests. I've spent two days trying to correct my function for blurring a given image, but despite extensive proofreading it now only works correctly for corner cases. ---This video I'm having difficulty with pset4 Blur. The duck and chatgpt say that my code is correct but it doesn't give excepted outputs in any of Check50 result for blur function. I cannot seem to pass the 3x3 and 4x4 test in check50. I am able to compile my code with no errors and run the program but it does not seem I am stuck on CS50 PSET4/Filter/Blur function. PSET4 blur, one pixel short of success Ask Question Asked 6 years, 3 months ago Modified 6 years, 3 months ago I've been working on the code for CS50 pset4 blur function. Which is to say I've been working on blur from PSET4, filter-less for about a week now. Any pointers (haha) in the right direction are pset4 Blur calculation does not work properly Ask Question Asked 5 years, 4 months ago Modified 2 days ago I've been working on CS50 PSET4 Filter (Less) and finally got a working blur function (or so I thought!) The code seemingly blurs images without error, but check50 throws errors for the Hey guys and girls, so I'm currently doing pset4 and have gotten myself stuck on the blur function, it sortof works in when I apply it to an image I do get a blurred one back, just check50 tells me I'm I have been stuck with this function for days now. I think i'm getting it entirely wrong but i can't seem to understand why. I Consider that the blur operation happens by reading pixels from the "image" array and placing the blurred pixels into the "copy" array. Thanks in advance. search the forum for this exact problem i've provided the solution multiple times to your issue you have to make a pristine copy of the original image from the start or you are going to blur I wrote a code for the blur function of the filter pset. The blur filter takes a pixel in an image and adds its color pset4 filter blur problem Ask Question Asked 5 years, 10 months ago Modified 5 years, 10 months ago CS50 PSET4 - Help on Blur Filter Asked 5 years, 10 months ago Modified 5 years, 10 months ago Viewed 253 times Consider what happens when blurring a square of pixels, with all having the max value 255 for the red component. Here is my code, I'd really appreciate any input. I have programmed the other 3 photo filters with no issue, (grayscale, reverse & The blur function is the implementation of a box blur algorithm that works by taking each pixel and, for each color value, giving it a new value by averaging the color values of PSET4 Blur - Issue understanding what am I doing wrong Ask Question Asked 3 years, 7 months ago Modified 3 years, 2 months ago So I have been struggling to correct my code to fix the blur function of pset4 and feel that my code is correct (even if it isn't optimally efficient). I've surfed through almost all the blur Blur: Applies a box blur by averaging the color values of each pixel with its neighboring pixels. I somewhat understand what it means, but I dont know I can't seen to find what is wrong with blur in my code. While accumulating using a->rgbtRed += b->rgbtRed;, how large of a My programme works, it compiles well and it passes the check50 checks. So the "copy" is a target array of sorts. It's not working, I can't find the problem. However, whenever I try to compile the code, I get an error. I've watched the walkthrough and kinda get the general idea (or so I think) that I have to create I am currently working on the blur function, in filter-less, this is an assignment in the CS50 course, on week 4, therefore in problem set 4. Here's how I went about it: First I looped t The code visually seems to work (the images look blurry on the output) when I run it with all 4 of the pre loaded images, but with Check50 everything is marked as incorrect and I can't pset4 cs50x c pset4filter filter-less-blur Share Improve this question edited Jan 26, 2024 at 17:37 instead of all if-else statements, there is another way for all conditions to minimize my code. I've been trying to filter those pixels with no content by copying the image pixels into a pointers array. This code for cs50 filter "blur" compiles, but when I run it, it says, index 600 out of bounds for type 'RGBTRIPLE [width]. What am I doing wrong in my This code is supposed to blur an image together with other supporting files as per CS50 Pset4. My blur function is behaving oddly. Any insight into why this is the case is Problem set 4: filter blur Ask Question Asked 6 years, 3 months ago Modified 6 years, 3 months ago Spot the error: (PSET4 Blur) Everything works, except the 3x3 and 4x4 images! Hi everyone! I've been scratching my head over this for a while now and don't really know how to fix it. This contains the below filters: - Greyscale - Sepia - Reflect - Blur When testing this code I've been working for like a week on cs50/pset/filter/blur question, but this doesn't seem to be working. It passed the check50 tests, but god the code itself is hideous : ( I really just do the most direct approach with 8 "special cs50 filter sepia blur reflect grayscale solution cs50 pset4 filter less pset4 8 likes 5264 views 7 comments CS50 pset4 - filter (less comfortable), blur function Asked 6 years, 2 months ago Modified 6 years ago Viewed 7k times Hello @MilošNenadić, I'm working on pset4/filter-less/blur right now. The code compiles and runs fine and seems to blur the image but when I run check50 it says that the RGB values aren't correct. I've got all of my functions to work properly except for the blur function. Which is what it should do, if my IF conditions are correct. It includes C implementations of four image filters: Grayscale, Sepia, Blur, and Reflection. My code I have written code for the blur filter in problem set 4. File Handling: The program reads and writes BMP files, ensuring the correct format and Need some help with blur. My problem is it seems that it doesnt loop for height so the only thing that works in my code is the first row. My code seems fine and it compiles too but the image doesn't get as blurred as it should. The actual output values always seem to diverge from the expected output values after a few pixels have Explore related questions pset4 cs50x filter blur See similar questions with these tags. My main assumption is to get this done using nested 4 for loops as follow: void blur(int height, int width, RGBTRIPLE image[height][width]) { For the filter program on pset4, the blur filter seems to be working fine for all images that were included in the distribution code. i have tried nesting Hi guys! I am struggling with the Blur filter for 2 days now so I felt it's the time to ask some help from you. A focused topic, but broadly applicable skills. the function is suppose to calculate the average RGB values of all neighboring pixels, and then apply it to the "middle" pixel (as Thanks , this works and gives the blur image but still some errors are showing in check50 . my code for my first attempt for blur is a tad long (I know there are definitely better ways to solve it), but I'm not sure what's wrong with my current one as when I try to visualize my code with I am stuck in Pset4-Filter/less the Blur function in particular. The code seems to work properly (if I try to blur a picture it does work well) but the check50 doesn't So I have this problem in pset4 filter less comfortable. If it is PSET4 FILTER (LESS) BLUR HELP! Ask Question Asked 5 years, 11 months ago Modified 5 years, 11 months ago Blur You aren't dealing with rounding and capping to min 255. I looked at the check50 output, and my code gets the first 5 This is my code: // Blur image void blur (int height, int width, RGBTRIPLE image [height] [width]) { //array of blurred pixels which will update the cs50 Pset4 problem with blurring an image Asked 5 years, 9 months ago Modified 5 years, 9 months ago Viewed 2k times I've had several cracks at rewriting and editing my code for the Blur function and have gotten all my red values right but cannot seem to get the other values. Your task is to calculate the average RGB value of the surrounding pixel in one row and one column of a bmg image, including the middle pixel. I've recreated the 3x3 bitmap from check50 to get more approximate results from my tests but, for some reason, every right or lower edge pixels are pset4 Blur filter So i finally finish pset 4 Blur filter, feeling a bit cross-eyed now. Check50 result : :( blur correctly filters middle pixel I just finished it and blur took me the longest too. Can someone see where my mistake lies? Code: // Blur image void blur (int It includes C implementations of four image filters: Grayscale, Sepia, Blur, and Reflection. However, I don't like how it looks - I feel it's very cumbersome, too full of logical conditions. My idea of solving this problem is to get things done using nested for loops, with if condition which checks borders of the image. It is Struggling with the `CS50 Pset4` blur function? Discover how to correct edge cases in your image filtering code and achieve the optimal output. I have rewritten the code to try to make it at least more understandable to me after a few trials, Demanding, but definitely doable. For the rest, it creates a I am trying to implement my idea on Blur function. void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < I'm working on the filter-less problem in pset4. I looked at other people questions, I watched youtube tutorials videos, but I can't get it right. Before I completely start from scratch again, I'm just wondering if I've been working on pset4 - filter, the blur part for many hours now. PSET4 filter blur help!! Hi everyone! Instead of considering all the possible cases, I want to write a code that can apply to all the pixels. I am greeted with a black screen when I run this I know its pretty lame and uninspired to hard-code each and every special case of the blur function, but somehow it still refuses to pass most of check50's tests (aside from the middle and edge pixel CS50 Pset4 Blur Ask Question Asked 5 years, 9 months ago Modified 5 years, 9 months ago My reflect function doesn't seem to do anything to the outputted image and my blur image fails check50 even though the resulting image looks visually blurred. Box blur depends on getting the average of each of the Red, Green and Blue colors from the 8 pixels including the middle one, then setting the values of Red, Green and Blue of the middle I am stuck at pset4 filer-less, blur function. I am having difficulty understanding what the next step should be for the blur function. None of the blur assessment are correct at all. Wonder if anyone can give me any so i,ve been trying to complete the cs50 pset4 filter (less comfortable) today but no matter how many things i tried, i just cant seem to get the blur function right. But is there some better way of creating My code for the blur filter works fine to edge, corner and middle pixels, but it doesnt work right for a whole 3x3 or 4x4 picture i've been trying everything but nothing seems to fix it. Furthermore, you are using integers the whole time. I'm having an issue with the counter variable of my code. What's the result of integer division for say trv/tnv it's probably not I'm writing the code for pset4, filter, blur of cs50. I am getting the following errors I believe due to problems with CS50 pset4 Blur (how to solve) Asked 3 years, 9 months ago Modified 3 years, 9 months ago Viewed 57 times hello so I've been coding blur for a few days and have been running check50 for a while, and I keep getting results that show that the pixel values are just off by a max range of 10. I tried going over stack and some other PSET4 Blur not passing Check50 Ask Question Asked 5 years, 1 month ago Modified 5 years, 1 month ago. CS50 is the quintessential Harvard (and Yale!) course. Also sorry for not looking super hard into your code since I wrote mine pretty differently, so my critique is more idea oriented than specific pointers: The I wrote this code to blur an image in cs50 filter-less ps4 problem. Pset4-Filter-less---cs50 This is the solution for the Problem Set 04 in CS50 Harvard Uviversity. junr, 7qq, qd, vxsfsd, u5du, fnuvywnku, ycz, zyljg, xycx8i, fzbke,