Answered
GUIDE brightness/contrast function explained
I wouldn't say the code "works perfectly", since it doesn't do what is implied that it does -- though in its defense, its lack o...

4 years ago | 0

Answered
How do I get the value of C and ws in adaptive thresholding?
You have to select them based on the image content and your own intent. Refer to the documentation: https://homepages.inf.ed.a...

4 years ago | 0

Answered
add a moving image over a plotted trajectory
Assuming you actually want it to move in real time, this should be a start x = 0:pi/100:2*pi; y = sin(x); plot(x, y); hold on...

4 years ago | 1

| accepted

Answered
How to calculate the total pixel value in volume segmentation
I'm not quite sure if this is what you're after, but this: pnz = nnz(P); will give you the total number of nonzero elements in...

4 years ago | 0

| accepted

Answered
one of my nested functions isnt recognising a function made in another function? i know the codes messy and could be improved but i just want to make it work first
Since I don't even know how to call the function or what it's supposed to do, I can't really do much but point out problems and ...

4 years ago | 0

Answered
How to access images(like Image1,Image2...)from a folder and pass through a code in Matlab?
You created a variable called imgName, but you're not using it. input_image = imread(imgName,'.jpg'); Of course, since this ...

4 years ago | 0

Answered
How do I add "color" to an image?
There really isn't anything in base MATLAB or IPT for doing color adjustment. I'm not familiar with Photoshop, and don't have...

4 years ago | 0

Answered
How can I change the color of the hair such that it has the same texture as the original hair?
There are a number of things going wrong here. I kind of wish this were active. Let's start with OP's example. Since the or...

4 years ago | 0

Answered
pixelation
It can be simple enough: inpict = imread('peppers.png'); sz = size(inpict); blocksize = [10 10]; outpict = imresize(inpict...

4 years ago | 0

Answered
How to display Y, Cb and Cr components of an image?
While I agree with Image Analyst that grayscale representations of the chroma channels are accurate, easier to read, and should ...

4 years ago | 0

Answered
How to change 1 channel image to 3 channel
Alternative to using cat(), the same can also be done a couple other ways. You can use repmat() rgbpict = repmat(graypict,[1...

4 years ago | 0

Answered
how to preserve RGB values of an image while making it gray image
You don't. When you convert a color image to grayscale, you are discarding the color information. It's gone. If you want to...

4 years ago | 1

| accepted

Answered
someone who can help me to correct my problem please????
Since n is defined, and you're using cell mode, then I have to assume the problem is that you're running the last code section b...

4 years ago | 0

Answered
how to convert a gray scale image to color image using matlab
To answer the original intent of the question, there is no trivial way to return a grayscale image back to its original color. ...

4 years ago | 1

Answered
switch between colors on image
A lot of people are looking at this old thread, so I assume their needs are not necessarily the same as the OP. I think when mo...

4 years ago | 0

| accepted

Answered
How to get all possible permutations in binary format?
I'm not sure, but are you thinking of something like this? B = [0,1,0;0,0,1;1,1,0;0,1,1;1,0,1;1,0,0]; % all permutations of ...

4 years ago | 0

| accepted

Answered
How to avoid color repetition in plotting lines
The colors used by line plots are drawn from the 'colororder' property of the parent axes. By default, this is set to lines(7),...

4 years ago | 1

| accepted

Answered
Index in position 1 exceeds array bounds. Erroy when trying to plot rectangle.
I don't know why you decided to suddenly abandon your indexing scheme. Replace all this: n = numberRooms(1,1); for i = 1:1:n ...

4 years ago | 1

| accepted

Answered
How to find closest values within a matirx
I'm not really sure what you mean by "closest values". Maybe you're talking about inpainting? A = [NaN NaN NaN 7 8 9; NaN...

4 years ago | 0

Answered
How to delete a file I submitted on File Exchange ?
If you just want to delete the whole submission, there should be a button on the upper right. If you have a submission cons...

4 years ago | 0

Answered
Red channel compensation in underwater images in-order to implement in matlab?
As far as I understand it, there isn't one equation; there are various techniques of differing complexity. I don't see any that...

4 years ago | 2

| accepted

Answered
How do I assign colours to every plotted dot if I have the colours as cell arrays
Normally, you'd do this by using a colortable (or a list of indices into a color table) with scatter(). x = 1:4; y = 1:4; c...

4 years ago | 0

Answered
2D Graph Scaling
I don't see why you can't just use semilogy() or loglog() to do the plot. https://www.mathworks.com/help/matlab/ref/semilogy.ht...

4 years ago | 1

| accepted

Answered
Isolate low contrast rectangle of known size from image
This might be an idea for a way. With only one test case, it's hard to tell if this is even remotely robust. I imagine it can...

4 years ago | 0

| accepted

Answered
Populate a 1000x1000 array with rows where a value is added every second, then third etc. column
If you were getting a bunch of ones, you were probably pretty close. N = 1000; everyN = zeros(N); for n = 1:N everyN(n...

4 years ago | 2

Answered
how to change specific color define by the user to black in matlab?
I answered a similar question earlier: https://www.mathworks.com/matlabcentral/answers/1706905-how-can-i-change-the-red-chips-t...

4 years ago | 0

Answered
Bar Fill Pattern problem in plot
There are tools on the File Exchange for doing that. https://www.mathworks.com/matlabcentral/fileexchange/53593-hatchfill2 Se...

4 years ago | 1

| accepted

Answered
How can I change the red chips to black as the red and orange overlap a lot and the edges and shadows are still red/orange with my code.
Continuing from this question, I suppose that the masking can be better done in something other than RGB. Getting perfect fits ...

4 years ago | 0

| accepted

Answered
Can an RGB image be stored as 2D matrix without converting to greyscale image?
I imagine another obvious interpretation of the question would be "can I store a color image in a 2D array?" with no stipulation...

4 years ago | 0

Answered
how to reduce the brightness of an image?
There are many different ways, using both simplistic direct methods and purpose-built tools. The answers in this related questi...

4 years ago | 0

Load more