This subject is discussed under indexing in MATLAB. Basic script, Img (Img=0) = 1 (All zero intensities changed to one), or can use Img>200, depending on the aforementioned tech. used (one can be replaced by a range of numbers).
You can simply do
img(img==0) = 1
img(img>200) = a % a being a value
img(some condition) take all value where the condition is True.
You can type these commands:
img(img>200) = a
img(some condition)
If by indexing you mean the coordinates, then the "find " will list the indices of the pixel intensity of a particular value .
Eg: Ids=find(img
This is a very interesting question. In addition to the helpful answers already given, there is a bit more to add.
A good discussion on logical indexing from a Matlab perspective is given in
http://blogs.mathworks.com/loren/2013/02/20/logical-indexing-multiple-conditions/
especially in
http://blogs.mathworks.com/steve/2008/02/25/neighbor-indexing-2/
A detailed example of logical indexing is given in a eye analysis system is given in
https://www.researchgate.net/profile/Edmundas_Zavadskas/publication/257392355_Student_progress_assessment_with_the_help_of_an_intelligent_pupil_analysis_system/links/54b13a800cf28ebe92dff766.pdf
See Algorithm 1.1, starting on page 67.
Article Student progress assessment with the help of an intelligent ...
Combination of morphometric and colorimetric has been applied for feature extraction in detection algorithm. In noisy background, this CV technique facing wrong identification results as well as...
07 August 2018 7,661 7 View
Filtering dataset quality is very important prior to segmentation analysis. A single channel of an image is applied before convolve it with the Laplacian kernel.
31 December 2017 9,824 0 View
This is specific to the face recognition in unconstrained environment, generalization capability of the face recognition systems with large training datasets and generation of additional synthetic...
11 December 2017 960 2 View
The same strel is apply for dilation and erosion operation in morphological operator.
11 December 2017 494 0 View
It was reported as a basic procedure in the software eCognition for objectoriented image analysis (Delphi2 Creative Technologies, Munich).
03 April 2017 3,254 0 View
It is more realistic to model pixels in an images with some degree or type of correlation, because due to the point spread function and the intensity of a pixel may contain info from its...
03 April 2017 2,158 0 View
If a part of the energy that an electron carries is transferred to the specimen, several processes might occur leading to the generation of the above signals.
31 December 2016 5,573 0 View
Is there any formula or specific program?
11 December 2016 530 6 View
To understand basic of various spectroscopy techniques, type of detector of electron with characteristic kinetic energy is important to be explained.
11 December 2016 319 0 View
According to nhbs, actinic or mercury vapour electrics can be applied since it is incorporated and supported by 240V (mains powered) or 12V (battery powered) control boxes.
01 February 2015 4,524 10 View
Hello, good day! I am trying to simulate similar bimorph piezoelectric harvester with below commands. However, the output power doesn't change with resistor value. Please help to find the reason. ET,10,CIRCU94,0 !SET UP RESISTOR R,1,100000 !RESISTANCE VALUE TYPE,10 !SET ELEMENT TYPE E,1,2 !CREATE RESISTOR BETWEEN NODES 1 AND 2 Thanks in advance Regards,
02 March 2021 0 0 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
Which is suitable for use with Python? MySQL or SQL Server? What is your suggestion?
01 March 2021 3,422 3 View
Hi dear researchers I connected a rigid body into the part of my structure by tie constraint and then I added displacement to rigid body, in static general step every thing is fine and these two...
28 February 2021 3,442 2 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
I am looking for the suggestion among which one to pick from the above two categories for a research work.
27 February 2021 10,025 1 View
Dear colleagues, I have found that many authors have a concern regarding their missing citation in RG because often citation in RG is lower than google scholars. I also missed some citation...
26 February 2021 928 6 View
Both are very repetitive indexing agencies.
26 February 2021 9,455 4 View
In R-studio, there are many commands of Gumbel package. Arguments are also different. I`m asking about the alpha parameter of the Copula which must be greater than 1. If this is the one used to...
25 February 2021 5,229 3 View