Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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. ...

alrededor de 4 años hace | 1

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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),...

alrededor de 4 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 2

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 2

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Cargar más