Connexions

You are here: Home » Content » Intensity Test for Fish Classification
Content Actions
Lenses

What is a lens?

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...
Affiliated with (?)
This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection:"ECE 301 Projects Fall 2003"

    Click the "Rice University ELEC 301 Projects" link to see all content affiliated with them.

    Rice University ELEC 301 Projects
  • This module is included inLens: Rice University OpenCourseWare
    By: OpenCourseWare ConsortiumAs a part of collection:"ECE 301 Projects Fall 2003"

    Click the "Rice University OCW" link to see all content affiliated with them.

    Rice University OCW
Tags

(?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Intensity Test for Fish Classification

Module by: Kyle Clarkson, Jason Sedano, Ian Clark

Summary: This test determines whether a fish is a salmon or a trout based on the relative intensities of the red component versus the blue and green components

This test relys on the fact that salmon get extremely red when they are swimming upstream to spawn. Sockeye salmon, which we were specifically trying to detect are among the brightest of the salmon. The other fish we were trying to classify, steelhead trout, remain silver even during spawning season. This means that it is easy to distinguish between the bright red overall color of the salmon pictures and the relatively even color of the trout.
When Matlab takes in a picture, it stores it as three different matricies, one for each color, red, green, and blue. This test simply looks at the energy in each matrix and compares them. The important thing to test for is whether the red matrix energy is significatnly larger than the blue matrix or the green matrix.
Intensity testing Image
colortest.jpg
Figure 1: Fish intensity testing broken into red, green, and blue.
Example 1: Code for Intensity Test 
% Check to see how much intensity there is in each of the color spectrums
    for i = 1:3
        fishnorm(:,:,i) = fishimage(:,:,i)./norm((fishimage(:,:,i)));
        
        intensitymatrix(:,:,i) = reshape(fishimage(:,:,i), 1, prod(size(fishimage(:,:,1))));
        intensity(:,:,i) = mean(intensitymatrix(:,:,i));
    end
   
    rgintens = intensity(:,:,1)-intensity(:,:,2);
    rbintens = intensity(:,:,1)-intensity(:,:,3);
      

Comments, questions, feedback, criticisms?

Send feedback