Answered
Colormap with different color transition
If you want to have a color table with multiple breakpoints, It's easier to just use interp1(). % new color table length nco...

3 years ago | 0

Answered
How to reconstruct a corrupted image?
You can start by cleaning up a large part of the work like so: inpict = imread('https://www.mathworks.com/matlabcentral/answers...

3 years ago | 0

Answered
I want to rounding selected data with Looping and If else
It's not really clear what the desired conditions are. If what you want is to constrain values to the interval [0 10], you ca...

3 years ago | 1

Answered
How to apply Gaussian blur to a specific area (oval) in an image?
ideally, you'd do this during composition instead of afterwards. Doing it afterwards is double the work. Here is one example ...

3 years ago | 1

| accepted

Answered
While Downsampling 4:4:4 YCbCr image to 4:2:0 using imresize inbuilt function should we scale it by 0.5 or 0.25
Let me preface this answer by saying that I am not familiar with the conventions used for various file encodings. How exactly t...

3 years ago | 1

| accepted

Answered
convert grayscale image into RGB
OP's code example is remarkably correct, but for one likely problem. The likelihood of a JPG image being a single channel I im...

3 years ago | 0

Answered
i am converting a RGB image to ycbcr image for processing. but when i try to convert the ycbcr image back to RGB image there is an error in the original image what should i do to remove or altease furthur reduce the image?
For a start, we can clean this up. RGB = imread('board.tif'); % read image % converting RGB image to YCbCr color space yc...

3 years ago | 0

Answered
increasing gray shades of image display
Shade: a pure color mixed with black. Increase: to become greater in quantity or value. Gray: any color of neutral hue betwee...

3 years ago | 0

Answered
Removing Text/watermark from Open-Source Image
Let's start from a particular nominal solution and work backwards. Let's say we had some information about the composition whic...

3 years ago | 0

Answered
how can i read or open a .hdr file using Matlab?
This is exactly what happens when you name your file image.m, shadowing the built-in image.m necessary for displaying images. U...

3 years ago | 0

Answered
Issue with Y, Cb and Cr image. Only Y (luma) image looks red, Cb looks green and Cr looks red. But converting the YCbCr image using ycbcr2rgb, give original image
This answer shows one way to represent the YCbCr channels in pseudocolor, https://www.mathworks.com/matlabcentral/answers/5802...

3 years ago | 1

Answered
How to multiply mask matrix and original image matrix?
The problem with not getting the expected results is that unless it's clear what you're expecting, nobody will know. I'm going ...

3 years ago | 0

Answered
How to use median filter to remove salt and pepper noise?
See the examples and links here: https://www.mathworks.com/matlabcentral/answers/1895235-hello-i-need-you-to-help-me-with-an-ex...

3 years ago | 0

Answered
Gaussian Filter without using any special function
Here is one example. % specify input parameter as a scalar or 2-element vector sigma = [4 5]; % [y x] % expand if necessary...

3 years ago | 0

Answered
How can I sketch the result of morphological operation: (A ⊖ SE1) ⊕ SE2 ?
This is yet another one of those homework questions that could have been simple, but in the process of trying to make it simple,...

3 years ago | 0

Answered
To apply a median filter on a coloured image, why do I have to use 'medfilt2' on each channel separately rather than use 'medfilt3'?
When calling medfilt3() without any window size argument, the default 3x3x3 window is used. Besides the fact that a 3x3 window ...

3 years ago | 0

Answered
how to blend an image that is a non-rectangular mask with a background image?
A big part of the confusion here is from attempting to use imadd() and immultiply() as image blending tools when they are not ...

3 years ago | 0

Answered
SWIRL IMAGE CODE, How can I change the swirl direction?
This is how I'd do it. This will work on grayscale or RGB images. % parameters center = [0.25 0.25]; % in normalized image ...

3 years ago | 0

Answered
In Color-Based Segmentation Using the L*a*b* Color Space how regioncoordinates has been calculated?
See the answer here. https://www.mathworks.com/matlabcentral/answers/224698-help-in-understanding-color-based-segmentation-usin...

3 years ago | 0

Answered
Help in understanding Color-Based Segmentation Using the L*a*b* Color Space Example
The line: load regioncoordinates; loads the file regioncoordinates.mat. This file contains a variable called region_coordinat...

3 years ago | 0

Answered
section divider or %% is not working
It's also worth noting that having open scopes, imbalanced parentheses/brackets, or other gross errors can break the handling of...

3 years ago | 1

Answered
rgb2xyz whitepoint illuminant 'e' bug
While the rgb2xyz() docs do list the E illuminant in R2015b, it wasn't actually added until sometime after R2015b. I don't know ...

3 years ago | 0

Answered
How to get pixel value around objects in greyscale image?
I have no idea what's going on with the filtering, but considering this filtim = ~filtim % invert the mask filtim = 1-filtim %...

3 years ago | 0

| accepted

Answered
Use brightest pixels for combined image with AlphaBlender
You could use the binary masking option to combine two single-channel images. % test images are unit ramps x = linspace(0,1,25...

3 years ago | 0

Answered
Can this plot be recreated in matlab?
There are no built-in plotting tools that perform 2D colormapping. You'll have to do it yourself. See this thread. https://...

3 years ago | 0

Answered
Sir, I wish to get matlab code for image enhancement by multi-scale retinex method. Please help me.Here I am attach a paper related to this.
This FEX submission is probably of interest: https://www.mathworks.com/matlabcentral/fileexchange/71386-multiscale-retinex Thi...

3 years ago | 0

Answered
Color space YCBCR to RGB problem: resulting image is PINK
Without knowing what processing was being performed, it's hard to say exactly what's going on. Even having the original image w...

3 years ago | 1

Answered
One-row PNG files
This was a bug in R2010a - R2012a https://www.mathworks.com/support/bugreports/details/822019

3 years ago | 0

| accepted

Answered
what is matlab code for histogram equalization of colored(jpg image)
I'm sure there are plenty of other answers, but these were ones I had bookmarked. https://www.mathworks.com/matlabcentral/answe...

3 years ago | 0

Answered
Image Enhancement with imfilter
IPT imfilter() is a linear spatial filter (convolution or correlation). On the other hand, histeq() applies a nonlinear value t...

3 years ago | 0

Load more