An electronic device (101, 200, 1700), comprising: a memory (130, 260); and a processor (120, 220) electrically connected to the memory (130, 260), wherein, the memory (130, 260) stores instructions that are executable by the processor (120, 220) to cause the electronic device (101, 200, 1700) to: obtain (310, 311, 520, 920, 1220, 1520, 1820, 2010) image data for an image (600, 800, 1100, 1400, 1600, 1730) including a plurality of pixels, set (330, 331, 540, 940, 1240, 1540, 1840), within the image (600, 800, 1100, 1400, 1600, 1730), a region of interest (610, 1410, 1610, 1740) and a background region (620, 1320, 1420, 1620), using depth information associated with each of the plurality of pixels, wherein the region of interest (610, 1410, 1610, 1740) includes one or more first sub-regions, and the background region (620, 1320, 1420, 1620) includes one or more second sub-regions; determine (330, 331, 560, 960, 1260, 1560, 1860) respective bokeh characteristics for the one or more first sub-regions and the one or more second sub-regions based on a first characteristic criterion and a second characteristic criterion, respectively, and process (340, 341, 570, 970, 1270, 1570, 1870, 2040) the image (600, 800, 1100, 1400, 1600, 1730) to apply a bokeh effect to the plurality of pixels based on the respective bokeh characteristics for the one or more first sub-regions and the one or more second sub-regions, characterized in that the instructions are executable by the processor (120, 220) to further cause the electronic device (101, 200, 1700) to: determine a starting position for the bokeh effect within the region of interest (610, 1410, 1610, 1740), wherein the bokeh characteristics are further based at least on the determined starting position. obtain (310, 311, 520, 920, 1220, 1520, 1820, 2010) image data for an image (600, 800, 1100, 1400, 1600, 1730) including a plurality of pixels, set (330, 331, 540, 940, 1240, 1540, 1840), within the image (600, 800, 1100, 1400, 1600, 1730), a region of interest (610, 1410, 1610, 1740) and a background region (620, 1320, 1420, 1620), using depth information associated with each of the plurality of pixels, wherein the region of interest (610, 1410, 1610, 1740) includes one or more first sub-regions, and the background region (620, 1320, 1420, 1620) includes one or more second sub-regions; determine (330, 331, 560, 960, 1260, 1560, 1860) respective bokeh characteristics for the one or more first sub-regions and the one or more second sub-regions based on a first characteristic criterion and a second characteristic criterion, respectively, and process (340, 341, 570, 970, 1270, 1570, 1870, 2040) the image (600, 800, 1100, 1400, 1600, 1730) to apply a bokeh effect to the plurality of pixels based on the respective bokeh characteristics for the one or more first sub-regions and the one or more second sub-regions, characterized in that the instructions are executable by the processor (120, 220) to further cause the electronic device (101, 200, 1700) to: determine a starting position for the bokeh effect within the region of interest (610, 1410, 1610, 1740), wherein the bokeh characteristics are further based at least on the determined starting position.